Class GlobalSchemaContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.GlobalSchemaContractProperties
-
public final class GlobalSchemaContractProperties extends Object
Schema create or update contract Properties.
-
-
Constructor Summary
Constructors Constructor Description GlobalSchemaContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
Get the description property: Free-form schema entity description.Object
document()
Get the document property: Global Schema document object for json-based schema formats(e.g.SchemaType
schemaType()
Get the schemaType property: Schema Type.void
validate()
Validates the instance.Object
value()
Get the value property: Json-encoded string for non json-based schema.GlobalSchemaContractProperties
withDescription(String description)
Set the description property: Free-form schema entity description.GlobalSchemaContractProperties
withDocument(Object document)
Set the document property: Global Schema document object for json-based schema formats(e.g.GlobalSchemaContractProperties
withSchemaType(SchemaType schemaType)
Set the schemaType property: Schema Type.GlobalSchemaContractProperties
withValue(Object value)
Set the value property: Json-encoded string for non json-based schema.
-
-
-
Method Detail
-
schemaType
public SchemaType schemaType()
Get the schemaType property: Schema Type. Immutable.- Returns:
- the schemaType value.
-
withSchemaType
public GlobalSchemaContractProperties withSchemaType(SchemaType schemaType)
Set the schemaType property: Schema Type. Immutable.- Parameters:
schemaType
- the schemaType value to set.- Returns:
- the GlobalSchemaContractProperties object itself.
-
description
public String description()
Get the description property: Free-form schema entity description.- Returns:
- the description value.
-
withDescription
public GlobalSchemaContractProperties withDescription(String description)
Set the description property: Free-form schema entity description.- Parameters:
description
- the description value to set.- Returns:
- the GlobalSchemaContractProperties object itself.
-
value
public Object value()
Get the value property: Json-encoded string for non json-based schema.- Returns:
- the value value.
-
withValue
public GlobalSchemaContractProperties withValue(Object value)
Set the value property: Json-encoded string for non json-based schema.- Parameters:
value
- the value value to set.- Returns:
- the GlobalSchemaContractProperties object itself.
-
document
public Object document()
Get the document property: Global Schema document object for json-based schema formats(e.g. json schema).- Returns:
- the document value.
-
withDocument
public GlobalSchemaContractProperties withDocument(Object document)
Set the document property: Global Schema document object for json-based schema formats(e.g. json schema).- Parameters:
document
- the document value to set.- Returns:
- the GlobalSchemaContractProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-