RepresentationContract Class
- java.
lang. Object - com.
azure. resourcemanager. apimanagement. models. RepresentationContract
- com.
Implements
public final class RepresentationContract
implements JsonSerializable<RepresentationContract>
Operation request/response representation details.
Constructor Summary
| Constructor | Description |
|---|---|
| RepresentationContract() |
Creates an instance of Representation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
contentType()
Get the content |
|
Map<String,Parameter |
examples()
Get the examples property: Exampled defined for the representation. |
|
List<Parameter |
formParameters()
Get the form |
|
static
Representation |
fromJson(JsonReader jsonReader)
Reads an instance of Representation |
| String |
schemaId()
Get the schema |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
typeName()
Get the type |
| void |
validate()
Validates the instance. |
|
Representation |
withContentType(String contentType)
Set the content |
|
Representation |
withExamples(Map<String,ParameterExampleContract> examples)
Set the examples property: Exampled defined for the representation. |
|
Representation |
withFormParameters(List<ParameterContract> formParameters)
Set the form |
|
Representation |
withSchemaId(String schemaId)
Set the schema |
|
Representation |
withTypeName(String typeName)
Set the type |
Methods inherited from java.lang.Object
Constructor Details
RepresentationContract
public RepresentationContract()
Creates an instance of RepresentationContract class.
Method Details
contentType
public String contentType()
Get the contentType property: Specifies a registered or custom content type for this representation, e.g. application/xml.
Returns:
examples
public Map<String,ParameterExampleContract> examples()
Get the examples property: Exampled defined for the representation.
Returns:
formParameters
public List<ParameterContract> formParameters()
Get the formParameters property: Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
Returns:
fromJson
public static RepresentationContract fromJson(JsonReader jsonReader)
Reads an instance of RepresentationContract from the JsonReader.
Parameters:
Returns:
Throws:
schemaId
public String schemaId()
Get the schemaId property: Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
Returns:
toJson
typeName
public String typeName()
Get the typeName property: Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
Returns:
validate
public void validate()
Validates the instance.
withContentType
public RepresentationContract withContentType(String contentType)
Set the contentType property: Specifies a registered or custom content type for this representation, e.g. application/xml.
Parameters:
Returns:
withExamples
public RepresentationContract withExamples(Map<String,ParameterExampleContract> examples)
Set the examples property: Exampled defined for the representation.
Parameters:
Returns:
withFormParameters
public RepresentationContract withFormParameters(List<ParameterContract> formParameters)
Set the formParameters property: Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
Parameters:
Returns:
withSchemaId
public RepresentationContract withSchemaId(String schemaId)
Set the schemaId property: 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 the typeName property: Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
Parameters:
Returns: