SubscriptionInner Class
- java.
lang. Object - com.
azure. resourcemanager. resources. fluent. models. SubscriptionInner
- com.
Implements
public final class SubscriptionInner
implements JsonSerializable<SubscriptionInner>
Subscription information.
Constructor Summary
Constructor | Description |
---|---|
SubscriptionInner() |
Creates an instance of Subscription |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
authorizationSource()
Get the authorization |
String |
displayName()
Get the display |
static
Subscription |
fromJson(JsonReader jsonReader)
Reads an instance of Subscription |
String |
id()
Get the id property: The fully qualified ID for the subscription. |
List<Managed |
managedByTenants()
Get the managed |
Subscription |
state()
Get the state property: The subscription state. |
String |
subscriptionId()
Get the subscription |
Subscription |
subscriptionPolicies()
Get the subscription |
Map<String,String> |
tags()
Get the tags property: The tags attached to the subscription. |
String |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Subscription |
withAuthorizationSource(String authorizationSource)
Set the authorization |
Subscription |
withManagedByTenants(List<ManagedByTenant> managedByTenants)
Set the managed |
Subscription |
withSubscriptionPolicies(SubscriptionPolicies subscriptionPolicies)
Set the subscription |
Subscription |
withTags(Map<String,String> tags)
Set the tags property: The tags attached to the subscription. |
Methods inherited from java.lang.Object
Constructor Details
SubscriptionInner
public SubscriptionInner()
Creates an instance of SubscriptionInner class.
Method Details
authorizationSource
public String authorizationSource()
Get the authorizationSource property: The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
Returns:
displayName
public String displayName()
Get the displayName property: The subscription display name.
Returns:
fromJson
public static SubscriptionInner fromJson(JsonReader jsonReader)
Reads an instance of SubscriptionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The fully qualified ID for the subscription. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74.
Returns:
managedByTenants
public List
Get the managedByTenants property: An array containing the tenants managing the subscription.
Returns:
state
public SubscriptionState state()
Get the state property: The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: The subscription ID.
Returns:
subscriptionPolicies
public SubscriptionPolicies subscriptionPolicies()
Get the subscriptionPolicies property: The subscription policies.
Returns:
tags
public Map
Get the tags property: The tags attached to the subscription.
Returns:
tenantId
public String tenantId()
Get the tenantId property: The subscription tenant ID.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAuthorizationSource
public SubscriptionInner withAuthorizationSource(String authorizationSource)
Set the authorizationSource property: The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
Parameters:
Returns:
withManagedByTenants
public SubscriptionInner withManagedByTenants(List
Set the managedByTenants property: An array containing the tenants managing the subscription.
Parameters:
Returns:
withSubscriptionPolicies
public SubscriptionInner withSubscriptionPolicies(SubscriptionPolicies subscriptionPolicies)
Set the subscriptionPolicies property: The subscription policies.
Parameters:
Returns:
withTags
public SubscriptionInner withTags(Map
Set the tags property: The tags attached to the subscription.
Parameters:
Returns:
Applies to
Azure SDK for Java