Class VMScaleSetScaleOutInput

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

public final class VMScaleSetScaleOutInput extends Object implements com.azure.json.JsonSerializable<VMScaleSetScaleOutInput>
The input for ScaleOut.
  • Constructor Details

    • VMScaleSetScaleOutInput

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

    • capacity

      public long capacity()
      Get the capacity property: Specifies the number of virtual machines in the scale set.
      Returns:
      the capacity value.
    • withCapacity

      public VMScaleSetScaleOutInput withCapacity(long capacity)
      Set the capacity property: Specifies the number of virtual machines in the scale set.
      Parameters:
      capacity - the capacity value to set.
      Returns:
      the VMScaleSetScaleOutInput object itself.
    • properties

      public VMScaleSetScaleOutInputProperties properties()
      Get the properties property: The input properties for ScaleOut.
      Returns:
      the properties value.
    • withProperties

      public VMScaleSetScaleOutInput withProperties(VMScaleSetScaleOutInputProperties properties)
      Set the properties property: The input properties for ScaleOut.
      Parameters:
      properties - the properties value to set.
      Returns:
      the VMScaleSetScaleOutInput 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<VMScaleSetScaleOutInput>
      Throws:
      IOException
    • fromJson

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