Class SubscriptionInner
- java.lang.Object
-
- com.azure.resourcemanager.resources.fluent.models.SubscriptionInner
-
public final class SubscriptionInner extends Object
Subscription information.
-
-
Constructor Summary
Constructors Constructor Description SubscriptionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringauthorizationSource()Get the authorizationSource property: The authorization source of the request.StringdisplayName()Get the displayName property: The subscription display name.Stringid()Get the id property: The fully qualified ID for the subscription.List<ManagedByTenant>managedByTenants()Get the managedByTenants property: An array containing the tenants managing the subscription.SubscriptionStatestate()Get the state property: The subscription state.StringsubscriptionId()Get the subscriptionId property: The subscription ID.SubscriptionPoliciessubscriptionPolicies()Get the subscriptionPolicies property: The subscription policies.Map<String,String>tags()Get the tags property: The tags attached to the subscription.StringtenantId()Get the tenantId property: The subscription tenant ID.voidvalidate()Validates the instance.SubscriptionInnerwithAuthorizationSource(String authorizationSource)Set the authorizationSource property: The authorization source of the request.SubscriptionInnerwithManagedByTenants(List<ManagedByTenant> managedByTenants)Set the managedByTenants property: An array containing the tenants managing the subscription.SubscriptionInnerwithSubscriptionPolicies(SubscriptionPolicies subscriptionPolicies)Set the subscriptionPolicies property: The subscription policies.SubscriptionInnerwithTags(Map<String,String> tags)Set the tags property: The tags attached to the subscription.
-
-
-
Method Detail
-
id
public String 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
public String subscriptionId()
Get the subscriptionId property: The subscription ID.- Returns:
- the subscriptionId value.
-
displayName
public String displayName()
Get the displayName property: The subscription display name.- Returns:
- the displayName value.
-
tenantId
public String tenantId()
Get the tenantId property: The subscription tenant ID.- Returns:
- the tenantId value.
-
state
public SubscriptionState state()
Get the state property: The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.- Returns:
- the state value.
-
subscriptionPolicies
public SubscriptionPolicies subscriptionPolicies()
Get the subscriptionPolicies property: The subscription policies.- Returns:
- the subscriptionPolicies value.
-
withSubscriptionPolicies
public SubscriptionInner withSubscriptionPolicies(SubscriptionPolicies subscriptionPolicies)
Set the subscriptionPolicies property: The subscription policies.- Parameters:
subscriptionPolicies- the subscriptionPolicies value to set.- Returns:
- the SubscriptionInner object itself.
-
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:
- the authorizationSource value.
-
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:
authorizationSource- the authorizationSource value to set.- Returns:
- the SubscriptionInner object itself.
-
managedByTenants
public List<ManagedByTenant> managedByTenants()
Get the managedByTenants property: An array containing the tenants managing the subscription.- Returns:
- the managedByTenants value.
-
withManagedByTenants
public SubscriptionInner withManagedByTenants(List<ManagedByTenant> managedByTenants)
Set the managedByTenants property: An array containing the tenants managing the subscription.- Parameters:
managedByTenants- the managedByTenants value to set.- Returns:
- the SubscriptionInner object itself.
-
tags
public Map<String,String> tags()
Get the tags property: The tags attached to the subscription.- Returns:
- the tags value.
-
withTags
public SubscriptionInner withTags(Map<String,String> tags)
Set the tags property: The tags attached to the subscription.- Parameters:
tags- the tags value to set.- Returns:
- the SubscriptionInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-