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 Summary
ConstructorsConstructorDescriptionCreates an instance of ObjectRecommendationPropertiesImplementationDetails class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ObjectRecommendationPropertiesImplementationDetails from the JsonReader.method()Get the method property: Method of implementation for recommended action.script()Get the script property: Implementation script for the recommended action.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMethod(String method) Set the method property: Method of implementation for recommended action.withScript(String script) Set the script property: Implementation script for the recommended action.Methods inherited from class 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
-
ObjectRecommendationPropertiesImplementationDetails
public ObjectRecommendationPropertiesImplementationDetails()Creates an instance of ObjectRecommendationPropertiesImplementationDetails class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-