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 Details

    • MetadataSchemaProperties

      public MetadataSchemaProperties()
      Creates an instance of MetadataSchemaProperties class.
  • Method Details

    • schema

      public String schema()
      Get the schema property: The schema defining the type.
      Returns:
      the schema value.
    • withSchema

      public MetadataSchemaProperties withSchema(String schema)
      Set the schema property: The schema defining the type.
      Parameters:
      schema - the schema value to set.
      Returns:
      the MetadataSchemaProperties object itself.
    • assignedTo

      public List<MetadataAssignment> assignedTo()
      Get the assignedTo property: The assignees.
      Returns:
      the assignedTo value.
    • withAssignedTo

      public MetadataSchemaProperties withAssignedTo(List<MetadataAssignment> assignedTo)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.