Class ObjectRecommendationPropertiesImplementationDetails

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.ObjectRecommendationPropertiesImplementationDetails
All Implemented Interfaces:
com.azure.json.JsonSerializable<ObjectRecommendationPropertiesImplementationDetails>

public final class ObjectRecommendationPropertiesImplementationDetails extends Object implements com.azure.json.JsonSerializable<ObjectRecommendationPropertiesImplementationDetails>
Implementation details for the recommended action.
  • Constructor Details

    • ObjectRecommendationPropertiesImplementationDetails

      public ObjectRecommendationPropertiesImplementationDetails()
      Creates an instance of ObjectRecommendationPropertiesImplementationDetails class.
  • Method Details

    • method

      public String method()
      Get the method property: Method of implementation for recommended action.
      Returns:
      the method value.
    • withMethod

      Set the method property: Method of implementation for recommended action.
      Parameters:
      method - the method value to set.
      Returns:
      the ObjectRecommendationPropertiesImplementationDetails object itself.
    • script

      public String script()
      Get the script property: Implementation script for the recommended action.
      Returns:
      the script value.
    • withScript

      Set the script property: Implementation script for the recommended action.
      Parameters:
      script - the script value to set.
      Returns:
      the ObjectRecommendationPropertiesImplementationDetails 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<ObjectRecommendationPropertiesImplementationDetails>
      Throws:
      IOException
    • fromJson

      public static ObjectRecommendationPropertiesImplementationDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ObjectRecommendationPropertiesImplementationDetails from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ObjectRecommendationPropertiesImplementationDetails 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 ObjectRecommendationPropertiesImplementationDetails.