Interface Subscription
-
- All Superinterfaces:
HasInnerModel<SubscriptionInner>,Indexable
public interface Subscription extends Indexable, HasInnerModel<SubscriptionInner>
An immutable client-side representation of an Azure subscription.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringdisplayName()LocationgetLocationByRegion(com.azure.core.management.Region region)Gets the data center location for the specified region, if the selected subscription has access to it.com.azure.core.http.rest.PagedIterable<Location>listLocations()List the locations the subscription has access to.SubscriptionStatestate()StringsubscriptionId()SubscriptionPoliciessubscriptionPolicies()-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
-
-
-
Method Detail
-
subscriptionId
String subscriptionId()
- Returns:
- the UUID of the subscription
-
displayName
String displayName()
- Returns:
- the name of the subscription for humans to read
-
state
SubscriptionState state()
- Returns:
- the state of the subscription.
-
subscriptionPolicies
SubscriptionPolicies subscriptionPolicies()
- Returns:
- the policies defined in the subscription
-
listLocations
com.azure.core.http.rest.PagedIterable<Location> listLocations()
List the locations the subscription has access to.- Returns:
- the lazy list of locations
-
getLocationByRegion
Location getLocationByRegion(com.azure.core.management.Region region)
Gets the data center location for the specified region, if the selected subscription has access to it.- Parameters:
region- an Azure region- Returns:
- an Azure data center location, or null if the location is not accessible to this subscription
-
-