RepresentationContract Class
- java.
lang. Object - com.
microsoft. azure. management. apimanagement. v2019_01_01.RepresentationContract
- com.
public class RepresentationContract
Operation request/response representation details.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| RepresentationContract() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
contentType()
Get specifies a registered or custom content type for this representation, e. |
|
java.util.List<Parameter |
formParameters()
Get collection of form parameters. |
| java.lang.String |
sample()
Get an example of the representation. |
| java.lang.String |
schemaId()
Get schema identifier. |
| java.lang.String |
typeName()
Get type name defined by the schema. |
|
Representation |
withContentType(String contentType)
Set specifies a registered or custom content type for this representation, e. |
|
Representation |
withFormParameters(List<ParameterContract> formParameters)
Set collection of form parameters. |
|
Representation |
withSample(String sample)
Set an example of the representation. |
|
Representation |
withSchemaId(String schemaId)
Set schema identifier. |
|
Representation |
withTypeName(String typeName)
Set type name defined by the schema. |
Methods inherited from java.lang.Object
Constructor Details
RepresentationContract
public RepresentationContract()
Method Details
contentType
public String contentType()
Get specifies a registered or custom content type for this representation, e.g. application/xml.
Returns:
formParameters
public List<ParameterContract> formParameters()
Get collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
Returns:
sample
public String sample()
Get an example of the representation.
Returns:
schemaId
public String schemaId()
Get schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
Returns:
typeName
public String typeName()
Get type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
Returns:
withContentType
public RepresentationContract withContentType(String contentType)
Set specifies a registered or custom content type for this representation, e.g. application/xml.
Parameters:
Returns:
withFormParameters
public RepresentationContract withFormParameters(List<ParameterContract> formParameters)
Set collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
Parameters:
Returns:
withSample
public RepresentationContract withSample(String sample)
Set an example of the representation.
Parameters:
Returns:
withSchemaId
public RepresentationContract withSchemaId(String schemaId)
Set schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
Parameters:
Returns:
withTypeName
public RepresentationContract withTypeName(String typeName)
Set type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
Parameters:
Returns: