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 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

      Set the state property: State of the customized accelerator validation result.
      Parameters:
      state - the state value to set.
      Returns:
      the CustomizedAcceleratorValidateResultInner object itself.
    • errorMessage

      public String errorMessage()
      Get the errorMessage property: The detail validation results.
      Returns:
      the errorMessage value.
    • withErrorMessage

      public CustomizedAcceleratorValidateResultInner withErrorMessage(String errorMessage)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.