Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.resources.implementation; import com.microsoft.azure.management.resources.SubscriptionState; import com.microsoft.azure.management.resources.SubscriptionPolicies; import java.util.List; import com.microsoft.azure.management.resources.ManagedByTenant; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty;
Subscription information.
/** * Subscription information. */
public class SubscriptionInner {
The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
/** * The fully qualified ID for the subscription. For example, * /subscriptions/00000000-0000-0000-0000-000000000000. */
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id;
The subscription ID.
/** * The subscription ID. */
@JsonProperty(value = "subscriptionId", access = JsonProperty.Access.WRITE_ONLY) private String subscriptionId;
The subscription display name.
/** * The subscription display name. */
@JsonProperty(value = "displayName", access = JsonProperty.Access.WRITE_ONLY) private String displayName;
The subscription tenant ID.
/** * The subscription tenant ID. */
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) private String tenantId;
The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'.
/** * The subscription state. Possible values are Enabled, Warned, PastDue, * Disabled, and Deleted. Possible values include: 'Enabled', 'Warned', * 'PastDue', 'Disabled', 'Deleted'. */
@JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) private SubscriptionState state;
The subscription policies.
/** * The subscription policies. */
@JsonProperty(value = "subscriptionPolicies") private SubscriptionPolicies subscriptionPolicies;
The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
/** * The authorization source of the request. Valid values are one or more * combinations of Legacy, RoleBased, Bypassed, Direct and Management. For * example, 'Legacy, RoleBased'. */
@JsonProperty(value = "authorizationSource") private String authorizationSource;
An array containing the tenants managing the subscription.
/** * An array containing the tenants managing the subscription. */
@JsonProperty(value = "managedByTenants") private List<ManagedByTenant> managedByTenants;
The tags attached to the subscription.
/** * The tags attached to the subscription. */
@JsonProperty(value = "tags") private Map<String, String> tags;
Get the fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
Returns:the id value
/** * Get the fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000. * * @return the id value */
public String id() { return this.id; }
Get the subscription ID.
Returns:the subscriptionId value
/** * Get the subscription ID. * * @return the subscriptionId value */
public String subscriptionId() { return this.subscriptionId; }
Get the subscription display name.
Returns:the displayName value
/** * Get the subscription display name. * * @return the displayName value */
public String displayName() { return this.displayName; }
Get the subscription tenant ID.
Returns:the tenantId value
/** * Get the subscription tenant ID. * * @return the tenantId value */
public String tenantId() { return this.tenantId; }
Get the subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'.
Returns:the state value
/** * Get the subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'. * * @return the state value */
public SubscriptionState state() { return this.state; }
Get the subscription policies.
Returns:the subscriptionPolicies value
/** * Get the subscription policies. * * @return the subscriptionPolicies value */
public SubscriptionPolicies subscriptionPolicies() { return this.subscriptionPolicies; }
Set the subscription policies.
Params:
  • subscriptionPolicies – the subscriptionPolicies value to set
Returns:the SubscriptionInner object itself.
/** * Set the subscription policies. * * @param subscriptionPolicies the subscriptionPolicies value to set * @return the SubscriptionInner object itself. */
public SubscriptionInner withSubscriptionPolicies(SubscriptionPolicies subscriptionPolicies) { this.subscriptionPolicies = subscriptionPolicies; return this; }
Get 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
/** * Get the authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. * * @return the authorizationSource value */
public String authorizationSource() { return this.authorizationSource; }
Set the authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
Params:
  • authorizationSource – the authorizationSource value to set
Returns:the SubscriptionInner object itself.
/** * Set the authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. * * @param authorizationSource the authorizationSource value to set * @return the SubscriptionInner object itself. */
public SubscriptionInner withAuthorizationSource(String authorizationSource) { this.authorizationSource = authorizationSource; return this; }
Get an array containing the tenants managing the subscription.
Returns:the managedByTenants value
/** * Get an array containing the tenants managing the subscription. * * @return the managedByTenants value */
public List<ManagedByTenant> managedByTenants() { return this.managedByTenants; }
Set an array containing the tenants managing the subscription.
Params:
  • managedByTenants – the managedByTenants value to set
Returns:the SubscriptionInner object itself.
/** * Set an array containing the tenants managing the subscription. * * @param managedByTenants the managedByTenants value to set * @return the SubscriptionInner object itself. */
public SubscriptionInner withManagedByTenants(List<ManagedByTenant> managedByTenants) { this.managedByTenants = managedByTenants; return this; }
Get the tags attached to the subscription.
Returns:the tags value
/** * Get the tags attached to the subscription. * * @return the tags value */
public Map<String, String> tags() { return this.tags; }
Set the tags attached to the subscription.
Params:
  • tags – the tags value to set
Returns:the SubscriptionInner object itself.
/** * Set the tags attached to the subscription. * * @param tags the tags value to set * @return the SubscriptionInner object itself. */
public SubscriptionInner withTags(Map<String, String> tags) { this.tags = tags; return this; } }