Class OrchestrationServiceStateInput
java.lang.Object
com.azure.resourcemanager.compute.models.OrchestrationServiceStateInput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OrchestrationServiceStateInput>
public final class OrchestrationServiceStateInput
extends Object
implements com.azure.json.JsonSerializable<OrchestrationServiceStateInput>
The input for OrchestrationServiceState.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OrchestrationServiceStateInput class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: The action to be performed.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OrchestrationServiceStateInput from the JsonReader.Get the serviceName property: The name of the service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the action property: The action to be performed.withServiceName(OrchestrationServiceNames serviceName) Set the serviceName property: The name of the service.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
-
OrchestrationServiceStateInput
public OrchestrationServiceStateInput()Creates an instance of OrchestrationServiceStateInput class.
-
-
Method Details
-
serviceName
Get the serviceName property: The name of the service.- Returns:
- the serviceName value.
-
withServiceName
Set the serviceName property: The name of the service.- Parameters:
serviceName- the serviceName value to set.- Returns:
- the OrchestrationServiceStateInput object itself.
-
action
Get the action property: The action to be performed.- Returns:
- the action value.
-
withAction
Set the action property: The action to be performed.- Parameters:
action- the action value to set.- Returns:
- the OrchestrationServiceStateInput 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<OrchestrationServiceStateInput>- Throws:
IOException
-
fromJson
public static OrchestrationServiceStateInput fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OrchestrationServiceStateInput from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OrchestrationServiceStateInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OrchestrationServiceStateInput.
-