Class MetadataSchemaProperties
java.lang.Object
com.azure.resourcemanager.apicenter.models.MetadataSchemaProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetadataSchemaProperties>
public final class MetadataSchemaProperties
extends Object
implements com.azure.json.JsonSerializable<MetadataSchemaProperties>
Metadata schema properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MetadataSchemaProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the assignedTo property: The assignees.static MetadataSchemaProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MetadataSchemaProperties from the JsonReader.schema()
Get the schema property: The schema defining the type.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAssignedTo
(List<MetadataAssignment> assignedTo) Set the assignedTo property: The assignees.withSchema
(String schema) Set the schema property: The schema defining the type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MetadataSchemaProperties
public MetadataSchemaProperties()Creates an instance of MetadataSchemaProperties class.
-
-
Method Details
-
schema
Get the schema property: The schema defining the type.- Returns:
- the schema value.
-
withSchema
Set the schema property: The schema defining the type.- Parameters:
schema
- the schema value to set.- Returns:
- the MetadataSchemaProperties object itself.
-
assignedTo
Get the assignedTo property: The assignees.- Returns:
- the assignedTo value.
-
withAssignedTo
Set the assignedTo property: The assignees.- Parameters:
assignedTo
- the assignedTo value to set.- Returns:
- the MetadataSchemaProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MetadataSchemaProperties>
- Throws:
IOException
-
fromJson
public static MetadataSchemaProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MetadataSchemaProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MetadataSchemaProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the MetadataSchemaProperties.
-