AssociatedTenantProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.AssociatedTenantProperties

Implements

public final class AssociatedTenantProperties
implements JsonSerializable<AssociatedTenantProperties>

An associated tenant.

Constructor Summary

Constructor Description
AssociatedTenantProperties()

Creates an instance of AssociatedTenantProperties class.

Method Summary

Modifier and Type Method and Description
BillingManagementTenantState billingManagementState()

Get the billingManagementState property: The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.

String displayName()

Get the displayName property: The name of the associated tenant.

static AssociatedTenantProperties fromJson(JsonReader jsonReader)

Reads an instance of AssociatedTenantProperties from the JsonReader.

String provisioningBillingRequestId()

Get the provisioningBillingRequestId property: The unique identifier for the billing request that is created when enabling provisioning for an associated tenant.

ProvisioningTenantState provisioningManagementState()

Get the provisioningManagementState property: The state determines whether subscriptions and licenses can be provisioned in the associated tenant.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource during a long-running operation.

String tenantId()

Get the tenantId property: The ID that uniquely identifies a tenant.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AssociatedTenantProperties withBillingManagementState(BillingManagementTenantState billingManagementState)

Set the billingManagementState property: The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.

AssociatedTenantProperties withDisplayName(String displayName)

Set the displayName property: The name of the associated tenant.

AssociatedTenantProperties withProvisioningManagementState(ProvisioningTenantState provisioningManagementState)

Set the provisioningManagementState property: The state determines whether subscriptions and licenses can be provisioned in the associated tenant.

AssociatedTenantProperties withTenantId(String tenantId)

Set the tenantId property: The ID that uniquely identifies a tenant.

Methods inherited from java.lang.Object

Constructor Details

AssociatedTenantProperties

public AssociatedTenantProperties()

Creates an instance of AssociatedTenantProperties class.

Method Details

billingManagementState

public BillingManagementTenantState billingManagementState()

Get the billingManagementState property: The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.

Returns:

the billingManagementState value.

displayName

public String displayName()

Get the displayName property: The name of the associated tenant.

Returns:

the displayName value.

fromJson

public static AssociatedTenantProperties fromJson(JsonReader jsonReader)

Reads an instance of AssociatedTenantProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AssociatedTenantProperties 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 AssociatedTenantProperties.

provisioningBillingRequestId

public String provisioningBillingRequestId()

Get the provisioningBillingRequestId property: The unique identifier for the billing request that is created when enabling provisioning for an associated tenant.

Returns:

the provisioningBillingRequestId value.

provisioningManagementState

public ProvisioningTenantState provisioningManagementState()

Get the provisioningManagementState property: The state determines whether subscriptions and licenses can be provisioned in the associated tenant. It can be set to 'Pending' to initiate a billing request.

Returns:

the provisioningManagementState value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource during a long-running operation.

Returns:

the provisioningState value.

tenantId

public String tenantId()

Get the tenantId property: The ID that uniquely identifies a tenant.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBillingManagementState

public AssociatedTenantProperties withBillingManagementState(BillingManagementTenantState billingManagementState)

Set the billingManagementState property: The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.

Parameters:

billingManagementState - the billingManagementState value to set.

Returns:

the AssociatedTenantProperties object itself.

withDisplayName

public AssociatedTenantProperties withDisplayName(String displayName)

Set the displayName property: The name of the associated tenant.

Parameters:

displayName - the displayName value to set.

Returns:

the AssociatedTenantProperties object itself.

withProvisioningManagementState

public AssociatedTenantProperties withProvisioningManagementState(ProvisioningTenantState provisioningManagementState)

Set the provisioningManagementState property: The state determines whether subscriptions and licenses can be provisioned in the associated tenant. It can be set to 'Pending' to initiate a billing request.

Parameters:

provisioningManagementState - the provisioningManagementState value to set.

Returns:

the AssociatedTenantProperties object itself.

withTenantId

public AssociatedTenantProperties withTenantId(String tenantId)

Set the tenantId property: The ID that uniquely identifies a tenant.

Parameters:

tenantId - the tenantId value to set.

Returns:

the AssociatedTenantProperties object itself.

Applies to