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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationSummaryItemfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ValidationSummaryItem from the JsonReader.messages()Get the messages property: Validation messages.state()Get the state property: Validation status for migration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Validation type.voidvalidate()Validates the instance.withMessages(List<ValidationMessage> messages) Set the messages property: Validation messages.withState(ValidationState state) Set the state property: Validation status for migration.Set the type property: Validation type.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
-
ValidationSummaryItem
public ValidationSummaryItem()Creates an instance of ValidationSummaryItem class.
-
-
Method Details
-
type
-
withType
Set the type property: Validation type.- Parameters:
type- the type value to set.- Returns:
- the ValidationSummaryItem object itself.
-
state
Get the state property: Validation status for migration.- Returns:
- the state value.
-
withState
Set the state property: Validation status for migration.- Parameters:
state- the state value to set.- Returns:
- the ValidationSummaryItem object itself.
-
messages
Get the messages property: Validation messages.- Returns:
- the messages value.
-
withMessages
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
- Specified by:
toJsonin interfacecom.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.
-