Share via


SchemaCreateOrUpdateContract Class

  • java.lang.Object
    • com.microsoft.azure.ProxyResource
      • com.microsoft.azure.management.apimanagement.v2019_01_01.SchemaCreateOrUpdateContract

public class SchemaCreateOrUpdateContract
extends com.microsoft.azure.ProxyResource

Schema Contract details.

Constructor Summary

Constructor Description
SchemaCreateOrUpdateContract()

Method Summary

Modifier and Type Method and Description
java.lang.String contentType()

Get must be a valid a media type used in a Content-Type header as defined in the RFC 2616.

java.lang.String value()

Get json escaped string defining the document representing the Schema.

SchemaCreateOrUpdateContract withContentType(String contentType)

Set must be a valid a media type used in a Content-Type header as defined in the RFC 2616.

SchemaCreateOrUpdateContract withValue(String value)

Set json escaped string defining the document representing the Schema.

Methods inherited from com.microsoft.azure.ProxyResource

com.microsoft.azure.ProxyResource.id com.microsoft.azure.ProxyResource.name com.microsoft.azure.ProxyResource.type

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

SchemaCreateOrUpdateContract

public SchemaCreateOrUpdateContract()

Method Details

contentType

public String contentType()

Get must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`.

Returns:

the contentType value

value

public String value()

Get json escaped string defining the document representing the Schema.

Returns:

the value value

withContentType

public SchemaCreateOrUpdateContract withContentType(String contentType)

Set must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`.

Parameters:

contentType - the contentType value to set

Returns:

the SchemaCreateOrUpdateContract object itself.

withValue

public SchemaCreateOrUpdateContract withValue(String value)

Set json escaped string defining the document representing the Schema.

Parameters:

value - the value value to set

Returns:

the SchemaCreateOrUpdateContract object itself.

Applies to