Class ContentFormat

java.lang.Object
com.azure.core.util.ExpandableStringEnum<ContentFormat>
com.azure.resourcemanager.apimanagement.models.ContentFormat
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class ContentFormat extends com.azure.core.util.ExpandableStringEnum<ContentFormat>
Format of the Content in which the API is getting imported. New formats can be added in the future.
  • Field Details

    • WADL_XML

      public static final ContentFormat WADL_XML
      Static value wadl-xml for ContentFormat.
    • SWAGGER_JSON

      public static final ContentFormat SWAGGER_JSON
      Static value swagger-json for ContentFormat.
    • WSDL

      public static final ContentFormat WSDL
      Static value wsdl for ContentFormat.
    • OPENAPI

      public static final ContentFormat OPENAPI
      Static value openapi for ContentFormat.
    • OPENAPI_JSON

      public static final ContentFormat OPENAPI_JSON
      Static value openapi+json for ContentFormat.
    • ODATA

      public static final ContentFormat ODATA
      Static value odata for ContentFormat.
    • GRPC

      public static final ContentFormat GRPC
      Static value grpc for ContentFormat.
  • Constructor Details

    • ContentFormat

      @Deprecated public ContentFormat()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of ContentFormat value.
  • Method Details

    • fromString

      public static ContentFormat fromString(String name)
      Creates or finds a ContentFormat from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding ContentFormat.
    • values

      public static Collection<ContentFormat> values()
      Gets known ContentFormat values.
      Returns:
      known ContentFormat values.