共用方式為


Subscription Interface

Implements

public interface Subscription
extends Indexable, HasInnerModel<SubscriptionInner>

An immutable client-side representation of an Azure subscription.

Method Summary

Modifier and Type Method and Description
abstract String displayName()

Gets the name of the subscription for humans to read.

abstract Location getLocationByRegion(Region region)

Gets the data center location for the specified region, if the selected subscription has access to it.

abstract PagedIterable<Location> listLocations()

List the locations the subscription has access to.

abstract SubscriptionState state()

Gets the state of the subscription.

abstract String subscriptionId()

Gets the UUID of the subscription.

abstract SubscriptionPolicies subscriptionPolicies()

Gets the policies defined in the subscription.

Method Details

displayName

public abstract String displayName()

Gets the name of the subscription for humans to read.

Returns:

the name of the subscription for humans to read

getLocationByRegion

public abstract Location getLocationByRegion(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

listLocations

public abstract PagedIterable listLocations()

List the locations the subscription has access to.

Returns:

the lazy list of locations

state

public abstract SubscriptionState state()

Gets the state of the subscription.

Returns:

the state of the subscription.

subscriptionId

public abstract String subscriptionId()

Gets the UUID of the subscription.

Returns:

the UUID of the subscription

subscriptionPolicies

public abstract SubscriptionPolicies subscriptionPolicies()

Gets the policies defined in the subscription.

Returns:

the policies defined in the subscription

Applies to