Partager via


SubscriptionInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.fluent.models.SubscriptionInner

Implements

public final class SubscriptionInner
implements JsonSerializable<SubscriptionInner>

Subscription information.

Constructor Summary

Constructor Description
SubscriptionInner()

Creates an instance of SubscriptionInner class.

Method Summary

Modifier and Type Method and Description
String authorizationSource()

Get the authorizationSource property: The authorization source of the request.

String displayName()

Get the displayName property: The subscription display name.

static SubscriptionInner fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionInner from the JsonReader.

String id()

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.

SubscriptionState state()

Get the state property: The subscription state.

String subscriptionId()

Get the subscriptionId property: The subscription ID.

SubscriptionPolicies subscriptionPolicies()

Get the subscriptionPolicies property: The subscription policies.

Map<String,String> tags()

Get the tags property: The tags attached to the subscription.

String tenantId()

Get the tenantId property: The subscription tenant ID.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SubscriptionInner withAuthorizationSource(String authorizationSource)

Set the authorizationSource property: The authorization source of the request.

SubscriptionInner withManagedByTenants(List<ManagedByTenant> managedByTenants)

Set the managedByTenants property: An array containing the tenants managing the subscription.

SubscriptionInner withSubscriptionPolicies(SubscriptionPolicies subscriptionPolicies)

Set the subscriptionPolicies property: The subscription policies.

SubscriptionInner 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:

the authorizationSource value.

displayName

public String displayName()

Get the displayName property: The subscription display name.

Returns:

the displayName value.

fromJson

public static SubscriptionInner fromJson(JsonReader jsonReader)

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.

id

public String id()

Get the id property: The fully qualified ID for the subscription. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74.

Returns:

the id value.

managedByTenants

public List managedByTenants()

Get the managedByTenants property: An array containing the tenants managing the subscription.

Returns:

the managedByTenants 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.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The subscription ID.

Returns:

the subscriptionId value.

subscriptionPolicies

public SubscriptionPolicies subscriptionPolicies()

Get the subscriptionPolicies property: The subscription policies.

Returns:

the subscriptionPolicies value.

tags

public Map tags()

Get the tags property: The tags attached to the subscription.

Returns:

the tags value.

tenantId

public String tenantId()

Get the tenantId property: The subscription tenant ID.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

authorizationSource - the authorizationSource value to set.

Returns:

the SubscriptionInner object itself.

withManagedByTenants

public SubscriptionInner withManagedByTenants(List 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.

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.

withTags

public SubscriptionInner withTags(Map tags)

Set the tags property: The tags attached to the subscription.

Parameters:

tags - the tags value to set.

Returns:

the SubscriptionInner object itself.

Applies to