SchemaCreateOrUpdateContract Class
- java.
lang. Object - com.
microsoft. azure. ProxyResource - com.
microsoft. azure. management. apimanagement. v2019_01_01.SchemaCreateOrUpdateContract
- com.
- com.
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. |
|
Schema |
withContentType(String contentType)
Set must be a valid a media type used in a Content-Type header as defined in the RFC 2616. |
|
Schema |
withValue(String value)
Set json escaped string defining the document representing the Schema. |
Methods inherited from com.microsoft.azure.ProxyResource
Methods inherited from java.lang.Object
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:
value
public String value()
Get json escaped string defining the document representing the Schema.
Returns:
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:
Returns:
withValue
public SchemaCreateOrUpdateContract withValue(String value)
Set json escaped string defining the document representing the Schema.
Parameters:
Returns: