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 Details

    • OrchestrationServiceStateInput

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

    • serviceName

      public OrchestrationServiceNames serviceName()
      Get the serviceName property: The name of the service.
      Returns:
      the serviceName value.
    • withServiceName

      public OrchestrationServiceStateInput withServiceName(OrchestrationServiceNames serviceName)
      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

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