Class CustomizedAcceleratorValidateResultInner
java.lang.Object
com.azure.resourcemanager.appplatform.fluent.models.CustomizedAcceleratorValidateResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomizedAcceleratorValidateResultInner>
public final class CustomizedAcceleratorValidateResultInner
extends Object
implements com.azure.json.JsonSerializable<CustomizedAcceleratorValidateResultInner>
Validation result for customized accelerator properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomizedAcceleratorValidateResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the errorMessage property: The detail validation results.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomizedAcceleratorValidateResultInner from the JsonReader.state()Get the state property: State of the customized accelerator validation result.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withErrorMessage(String errorMessage) Set the errorMessage property: The detail validation results.Set the state property: State of the customized accelerator validation result.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
-
CustomizedAcceleratorValidateResultInner
public CustomizedAcceleratorValidateResultInner()Creates an instance of CustomizedAcceleratorValidateResultInner class.
-
-
Method Details
-
state
Get the state property: State of the customized accelerator validation result.- Returns:
- the state value.
-
withState
public CustomizedAcceleratorValidateResultInner withState(CustomizedAcceleratorValidateResultState state) Set the state property: State of the customized accelerator validation result.- Parameters:
state- the state value to set.- Returns:
- the CustomizedAcceleratorValidateResultInner object itself.
-
errorMessage
Get the errorMessage property: The detail validation results.- Returns:
- the errorMessage value.
-
withErrorMessage
Set the errorMessage property: The detail validation results.- Parameters:
errorMessage- the errorMessage value to set.- Returns:
- the CustomizedAcceleratorValidateResultInner 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<CustomizedAcceleratorValidateResultInner>- Throws:
IOException
-
fromJson
public static CustomizedAcceleratorValidateResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CustomizedAcceleratorValidateResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomizedAcceleratorValidateResultInner 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 CustomizedAcceleratorValidateResultInner.
-