RepresentationContract Class

  • java.lang.Object
    • com.microsoft.azure.management.apimanagement.v2019_01_01.RepresentationContract

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.g.

java.util.List<ParameterContract> 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.

RepresentationContract withContentType(String contentType)

Set specifies a registered or custom content type for this representation, e.g.

RepresentationContract withFormParameters(List<ParameterContract> formParameters)

Set collection of form parameters.

RepresentationContract withSample(String sample)

Set an example of the representation.

RepresentationContract withSchemaId(String schemaId)

Set schema identifier.

RepresentationContract withTypeName(String typeName)

Set type name defined by the schema.

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

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:

the contentType value

formParameters

public List formParameters()

Get collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..

Returns:

the formParameters value

sample

public String sample()

Get an example of the representation.

Returns:

the sample value

schemaId

public String schemaId()

Get schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.

Returns:

the schemaId value

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:

the typeName value

withContentType

public RepresentationContract withContentType(String contentType)

Set specifies a registered or custom content type for this representation, e.g. application/xml.

Parameters:

contentType - the contentType value to set

Returns:

the RepresentationContract object itself.

withFormParameters

public RepresentationContract withFormParameters(List formParameters)

Set collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..

Parameters:

formParameters - the formParameters value to set

Returns:

the RepresentationContract object itself.

withSample

public RepresentationContract withSample(String sample)

Set an example of the representation.

Parameters:

sample - the sample value to set

Returns:

the RepresentationContract object itself.

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:

schemaId - the schemaId value to set

Returns:

the RepresentationContract object itself.

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:

typeName - the typeName value to set

Returns:

the RepresentationContract object itself.

Applies to