Class ServiceProperties

java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceProperties
Direct Known Subclasses:
Service, ServiceResourceProperties

public class ServiceProperties extends Object
The properties of a service.
  • Constructor Details

    • ServiceProperties

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

    • targetLocation

      public String targetLocation()
      Get the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.
      Returns:
      the targetLocation value.
    • withTargetLocation

      public ServiceProperties withTargetLocation(String targetLocation)
      Set the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.
      Parameters:
      targetLocation - the targetLocation value to set.
      Returns:
      the ServiceProperties object itself.
    • targetSubscriptionId

      public String targetSubscriptionId()
      Get the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.
      Returns:
      the targetSubscriptionId value.
    • withTargetSubscriptionId

      public ServiceProperties withTargetSubscriptionId(String targetSubscriptionId)
      Set the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.
      Parameters:
      targetSubscriptionId - the targetSubscriptionId value to set.
      Returns:
      the ServiceProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.