Class ServiceResourceProperties

java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceProperties
com.azure.resourcemanager.deploymentmanager.fluent.models.ServiceResourceProperties

public final class ServiceResourceProperties extends ServiceProperties
The properties that define a service in a service topology.
  • Constructor Details

    • ServiceResourceProperties

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

    • withTargetLocation

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

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

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