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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.Get the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.void
validate()
Validates the instance.withLocation
(String location) withTargetLocation
(String targetLocation) Set the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.withTargetSubscriptionId
(String targetSubscriptionId) Set the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ServiceResourceInner
public ServiceResourceInner()Creates an instance of ServiceResourceInner class.
-
-
Method Details
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
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
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
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
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.
-