Class DbLevelValidationStatus

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

public final class DbLevelValidationStatus extends Object implements com.azure.json.JsonSerializable<DbLevelValidationStatus>
Validation status summary for a database.
  • Constructor Details

    • DbLevelValidationStatus

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

    • databaseName

      public String databaseName()
      Get the databaseName property: Name of database.
      Returns:
      the databaseName value.
    • withDatabaseName

      public DbLevelValidationStatus withDatabaseName(String databaseName)
      Set the databaseName property: Name of database.
      Parameters:
      databaseName - the databaseName value to set.
      Returns:
      the DbLevelValidationStatus object itself.
    • startedOn

      public OffsetDateTime startedOn()
      Get the startedOn property: Start time of a database level validation.
      Returns:
      the startedOn value.
    • withStartedOn

      public DbLevelValidationStatus withStartedOn(OffsetDateTime startedOn)
      Set the startedOn property: Start time of a database level validation.
      Parameters:
      startedOn - the startedOn value to set.
      Returns:
      the DbLevelValidationStatus object itself.
    • endedOn

      public OffsetDateTime endedOn()
      Get the endedOn property: End time of a database level validation.
      Returns:
      the endedOn value.
    • withEndedOn

      public DbLevelValidationStatus withEndedOn(OffsetDateTime endedOn)
      Set the endedOn property: End time of a database level validation.
      Parameters:
      endedOn - the endedOn value to set.
      Returns:
      the DbLevelValidationStatus object itself.
    • summary

      public List<ValidationSummaryItem> summary()
      Get the summary property: Summary of database level validations.
      Returns:
      the summary value.
    • withSummary

      public DbLevelValidationStatus withSummary(List<ValidationSummaryItem> summary)
      Set the summary property: Summary of database level validations.
      Parameters:
      summary - the summary value to set.
      Returns:
      the DbLevelValidationStatus 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<DbLevelValidationStatus>
      Throws:
      IOException
    • fromJson

      public static DbLevelValidationStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DbLevelValidationStatus from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DbLevelValidationStatus 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 DbLevelValidationStatus.