Class ValidateResponseInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.ValidateResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ValidateResponseInner>
public final class ValidateResponseInner
extends Object
implements com.azure.json.JsonSerializable<ValidateResponseInner>
Describes the result of resource validation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerror()
Get the error property: Error details for the case when validation fails.static ValidateResponseInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ValidateResponseInner from the JsonReader.status()
Get the status property: Result of validation.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withError
(ValidateResponseError error) Set the error property: Error details for the case when validation fails.withStatus
(String status) Set the status property: Result of validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ValidateResponseInner
public ValidateResponseInner()Creates an instance of ValidateResponseInner class.
-
-
Method Details
-
status
Get the status property: Result of validation.- Returns:
- the status value.
-
withStatus
Set the status property: Result of validation.- Parameters:
status
- the status value to set.- Returns:
- the ValidateResponseInner object itself.
-
error
Get the error property: Error details for the case when validation fails.- Returns:
- the error value.
-
withError
Set the error property: Error details for the case when validation fails.- Parameters:
error
- the error value to set.- Returns:
- the ValidateResponseInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ValidateResponseInner>
- Throws:
IOException
-
fromJson
public static ValidateResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ValidateResponseInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ValidateResponseInner 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 ValidateResponseInner.
-