Class SubscriptionInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.SubscriptionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubscriptionInner>
public final class SubscriptionInner
extends Object
implements com.azure.json.JsonSerializable<SubscriptionInner>
Subscription information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the authorizationSource property: The authorization source of the request.Get the displayName property: The subscription display name.static SubscriptionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SubscriptionInner from the JsonReader.id()Get the id property: The fully qualified ID for the subscription.Get the managedByTenants property: An array containing the tenants managing 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: The tags attached to the subscription.tenantId()Get the tenantId property: The subscription tenant ID.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuthorizationSource(String authorizationSource) Set the authorizationSource property: The authorization source of the request.withManagedByTenants(List<ManagedByTenant> managedByTenants) Set the managedByTenants property: An array containing the tenants managing the subscription.withSubscriptionPolicies(SubscriptionPolicies subscriptionPolicies) Set the subscriptionPolicies property: The subscription policies.Set the tags property: The tags attached to the subscription.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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/8d65815f-a5b6-402f-9298-045155da7d74.- 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.
-
tenantId
Get the tenantId property: The subscription tenant ID.- Returns:
- the tenantId value.
-
state
Get the state property: The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.- Returns:
- the state value.
-
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.
-
managedByTenants
Get the managedByTenants property: An array containing the tenants managing the subscription.- Returns:
- the managedByTenants value.
-
withManagedByTenants
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
Get the tags property: The tags attached to the subscription.- Returns:
- the tags value.
-
withTags
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SubscriptionInner>- Throws:
IOException
-
fromJson
Reads an instance of SubscriptionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SubscriptionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the SubscriptionInner.
-