Class ActiveDeploymentCollection

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

public final class ActiveDeploymentCollection extends Object implements com.azure.json.JsonSerializable<ActiveDeploymentCollection>
Object that includes an array of Deployment resource name and set them as active.
  • Constructor Details

    • ActiveDeploymentCollection

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

    • activeDeploymentNames

      public List<String> activeDeploymentNames()
      Get the activeDeploymentNames property: Collection of Deployment name.
      Returns:
      the activeDeploymentNames value.
    • withActiveDeploymentNames

      public ActiveDeploymentCollection withActiveDeploymentNames(List<String> activeDeploymentNames)
      Set the activeDeploymentNames property: Collection of Deployment name.
      Parameters:
      activeDeploymentNames - the activeDeploymentNames value to set.
      Returns:
      the ActiveDeploymentCollection 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<ActiveDeploymentCollection>
      Throws:
      IOException
    • fromJson

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