Class ValidationSummaryItem

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.ValidationSummaryItem
All Implemented Interfaces:
com.azure.json.JsonSerializable<ValidationSummaryItem>

public final class ValidationSummaryItem extends Object implements com.azure.json.JsonSerializable<ValidationSummaryItem>
Validation summary object.
  • Constructor Details

    • ValidationSummaryItem

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

    • type

      public String type()
      Get the type property: Validation type.
      Returns:
      the type value.
    • withType

      public ValidationSummaryItem withType(String type)
      Set the type property: Validation type.
      Parameters:
      type - the type value to set.
      Returns:
      the ValidationSummaryItem object itself.
    • state

      public ValidationState state()
      Get the state property: Validation status for migration.
      Returns:
      the state value.
    • withState

      public ValidationSummaryItem withState(ValidationState state)
      Set the state property: Validation status for migration.
      Parameters:
      state - the state value to set.
      Returns:
      the ValidationSummaryItem object itself.
    • messages

      public List<ValidationMessage> messages()
      Get the messages property: Validation messages.
      Returns:
      the messages value.
    • withMessages

      public ValidationSummaryItem withMessages(List<ValidationMessage> messages)
      Set the messages property: Validation messages.
      Parameters:
      messages - the messages value to set.
      Returns:
      the ValidationSummaryItem 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<ValidationSummaryItem>
      Throws:
      IOException
    • fromJson

      public static ValidationSummaryItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ValidationSummaryItem from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ValidationSummaryItem if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ValidationSummaryItem.