Class DeploymentResourceProperties

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

public final class DeploymentResourceProperties extends Object implements com.azure.json.JsonSerializable<DeploymentResourceProperties>
Deployment resource properties payload.
  • Constructor Details

    • DeploymentResourceProperties

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

    • source

      public UserSourceInfo source()
      Get the source property: Uploaded source information of the deployment.
      Returns:
      the source value.
    • withSource

      public DeploymentResourceProperties withSource(UserSourceInfo source)
      Set the source property: Uploaded source information of the deployment.
      Parameters:
      source - the source value to set.
      Returns:
      the DeploymentResourceProperties object itself.
    • deploymentSettings

      public DeploymentSettings deploymentSettings()
      Get the deploymentSettings property: Deployment settings of the Deployment.
      Returns:
      the deploymentSettings value.
    • withDeploymentSettings

      public DeploymentResourceProperties withDeploymentSettings(DeploymentSettings deploymentSettings)
      Set the deploymentSettings property: Deployment settings of the Deployment.
      Parameters:
      deploymentSettings - the deploymentSettings value to set.
      Returns:
      the DeploymentResourceProperties object itself.
    • provisioningState

      public DeploymentResourceProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the Deployment.
      Returns:
      the provisioningState value.
    • status

      public DeploymentResourceStatus status()
      Get the status property: Status of the Deployment.
      Returns:
      the status value.
    • active

      public Boolean active()
      Get the active property: Indicates whether the Deployment is active.
      Returns:
      the active value.
    • withActive

      public DeploymentResourceProperties withActive(Boolean active)
      Set the active property: Indicates whether the Deployment is active.
      Parameters:
      active - the active value to set.
      Returns:
      the DeploymentResourceProperties object itself.
    • instances

      public List<DeploymentInstance> instances()
      Get the instances property: Collection of instances belong to the Deployment.
      Returns:
      the instances value.
    • 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<DeploymentResourceProperties>
      Throws:
      IOException
    • fromJson

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