Class SubscriptionInner
java.lang.Object
com.azure.resourcemanager.subscription.fluent.models.SubscriptionInner
Subscription information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the authorizationSource property: The authorization source of the request.Get the displayName property: The subscription display name.id()
Get the id property: The fully qualified ID for the subscription.state()
Get the state property: The subscription state.Get the subscriptionId property: The subscription ID.Get the subscriptionPolicies property: The subscription policies.tags()
Get the tags property: Tags for the subscription.tenantId()
Get the tenantId property: The tenant ID.void
validate()
Validates the instance.withAuthorizationSource
(String authorizationSource) Set the authorizationSource property: The authorization source of the request.withSubscriptionPolicies
(SubscriptionPolicies subscriptionPolicies) Set the subscriptionPolicies property: The subscription policies.Set the tags property: Tags for the subscription.
-
Constructor Details
-
SubscriptionInner
public SubscriptionInner()Creates an instance of SubscriptionInner class.
-
-
Method Details
-
id
Get the id property: The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.- Returns:
- the id value.
-
subscriptionId
Get the subscriptionId property: The subscription ID.- Returns:
- the subscriptionId value.
-
displayName
Get the displayName property: The subscription display name.- Returns:
- the displayName value.
-
state
Get the state property: The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.- Returns:
- the state value.
-
tenantId
Get the tenantId property: The tenant ID. For example, 00000000-0000-0000-0000-000000000000.- Returns:
- the tenantId value.
-
tags
Get the tags property: Tags for the subscription.- Returns:
- the tags value.
-
withTags
Set the tags property: Tags for the subscription.- Parameters:
tags
- the tags value to set.- Returns:
- the SubscriptionInner object itself.
-
subscriptionPolicies
Get the subscriptionPolicies property: The subscription policies.- Returns:
- the subscriptionPolicies value.
-
withSubscriptionPolicies
Set the subscriptionPolicies property: The subscription policies.- Parameters:
subscriptionPolicies
- the subscriptionPolicies value to set.- Returns:
- the SubscriptionInner object itself.
-
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:
- the authorizationSource value.
-
withAuthorizationSource
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:
authorizationSource
- the authorizationSource value to set.- Returns:
- the SubscriptionInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-