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 Summary
ConstructorsConstructorDescriptionCreates an instance of DbLevelValidationStatus class. -
Method Summary
Modifier and TypeMethodDescriptionGet the databaseName property: Name of database.endedOn()Get the endedOn property: End time of a database level validation.static DbLevelValidationStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DbLevelValidationStatus from the JsonReader.Get the startedOn property: Start time of a database level validation.summary()Get the summary property: Summary of database level validations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDatabaseName(String databaseName) Set the databaseName property: Name of database.withEndedOn(OffsetDateTime endedOn) Set the endedOn property: End time of a database level validation.withStartedOn(OffsetDateTime startedOn) Set the startedOn property: Start time of a database level validation.withSummary(List<ValidationSummaryItem> summary) Set the summary property: Summary of database level validations.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DbLevelValidationStatus
public DbLevelValidationStatus()Creates an instance of DbLevelValidationStatus class.
-
-
Method Details
-
databaseName
Get the databaseName property: Name of database.- Returns:
- the databaseName value.
-
withDatabaseName
Set the databaseName property: Name of database.- Parameters:
databaseName- the databaseName value to set.- Returns:
- the DbLevelValidationStatus object itself.
-
startedOn
Get the startedOn property: Start time of a database level validation.- Returns:
- the startedOn value.
-
withStartedOn
Set the startedOn property: Start time of a database level validation.- Parameters:
startedOn- the startedOn value to set.- Returns:
- the DbLevelValidationStatus object itself.
-
endedOn
Get the endedOn property: End time of a database level validation.- Returns:
- the endedOn value.
-
withEndedOn
Set the endedOn property: End time of a database level validation.- Parameters:
endedOn- the endedOn value to set.- Returns:
- the DbLevelValidationStatus object itself.
-
summary
Get the summary property: Summary of database level validations.- Returns:
- the summary value.
-
withSummary
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
- Specified by:
toJsonin interfacecom.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.
-