Class ServiceResourceInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.deploymentmanager.fluent.models.ServiceResourceInner

public final class ServiceResourceInner extends com.azure.core.management.Resource
The resource representation of a service in a service topology.
  • Constructor Details

    • ServiceResourceInner

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

    • withLocation

      public ServiceResourceInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public ServiceResourceInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • 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 ServiceResourceInner 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 ServiceResourceInner 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 ServiceResourceInner 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 ServiceResourceInner object itself.
    • validate

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