Class ValidateSecretOutputInner
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.ValidateSecretOutputInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ValidateSecretOutputInner>
public final class ValidateSecretOutputInner
extends Object
implements com.azure.json.JsonSerializable<ValidateSecretOutputInner>
Output of the validated secret.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ValidateSecretOutputInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidateSecretOutputInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ValidateSecretOutputInner from the JsonReader.message()Get the message property: Detailed error message.status()Get the status property: The validation status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMessage(String message) Set the message property: Detailed error message.withStatus(Status status) Set the status property: The validation status.Methods inherited from class java.lang.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
-
ValidateSecretOutputInner
public ValidateSecretOutputInner()Creates an instance of ValidateSecretOutputInner class.
-
-
Method Details
-
status
Get the status property: The validation status.- Returns:
- the status value.
-
withStatus
Set the status property: The validation status.- Parameters:
status- the status value to set.- Returns:
- the ValidateSecretOutputInner object itself.
-
message
Get the message property: Detailed error message.- Returns:
- the message value.
-
withMessage
Set the message property: Detailed error message.- Parameters:
message- the message value to set.- Returns:
- the ValidateSecretOutputInner 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<ValidateSecretOutputInner>- Throws:
IOException
-
fromJson
public static ValidateSecretOutputInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ValidateSecretOutputInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ValidateSecretOutputInner 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 ValidateSecretOutputInner.
-