BillingAccountProperties Class

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

Implements

public final class BillingAccountProperties
implements JsonSerializable<BillingAccountProperties>

A billing account.

Constructor Summary

Constructor Description
BillingAccountProperties()

Creates an instance of BillingAccountProperties class.

Method Summary

Modifier and Type Method and Description
AccountStatus accountStatus()

Get the accountStatus property: The current status of the billing account.

BillingAccountStatusReasonCode accountStatusReasonCode()

Get the accountStatusReasonCode property: Reason for the specified billing account status.

AccountSubType accountSubType()

Get the accountSubType property: The tier of the account.

AccountType accountType()

Get the accountType property: The type of customer.

AgreementType agreementType()

Get the agreementType property: The type of agreement.

List<BillingRelationshipType> billingRelationshipTypes()

Get the billingRelationshipTypes property: Identifies the billing relationships represented by a billing account.

String displayName()

Get the displayName property: The billing account name.

BillingAccountPropertiesEnrollmentDetails enrollmentDetails()

Get the enrollmentDetails property: The properties of an enrollment.

static BillingAccountProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingAccountProperties from the JsonReader.

Boolean hasNoBillingProfiles()

Get the hasNoBillingProfiles property: Indicates whether or not the billing account has any billing profiles.

Boolean hasReadAccess()

Get the hasReadAccess property: Indicates whether user has read access to the billing account.

String notificationEmailAddress()

Get the notificationEmailAddress property: Notification email address for legacy account.

String primaryBillingTenantId()

Get the primaryBillingTenantId property: The tenant that was used to set up the billing account.

ProvisioningState provisioningState()

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

List<String> qualifications()

Get the qualifications property: Qualifications for pricing on a billing account.

BillingAccountPropertiesRegistrationNumber registrationNumber()

Get the registrationNumber property: Describes the registration number of the organization linked with the billing account.

BillingAccountPropertiesSoldTo soldTo()

Get the soldTo property: The address of the individual or organization that is responsible for the billing account.

List<TaxIdentifier> taxIds()

Get the taxIds property: A list of tax identifiers for the billing account.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingAccountProperties withDisplayName(String displayName)

Set the displayName property: The billing account name.

BillingAccountProperties withEnrollmentDetails(BillingAccountPropertiesEnrollmentDetails enrollmentDetails)

Set the enrollmentDetails property: The properties of an enrollment.

BillingAccountProperties withHasNoBillingProfiles(Boolean hasNoBillingProfiles)

Set the hasNoBillingProfiles property: Indicates whether or not the billing account has any billing profiles.

BillingAccountProperties withHasReadAccess(Boolean hasReadAccess)

Set the hasReadAccess property: Indicates whether user has read access to the billing account.

BillingAccountProperties withNotificationEmailAddress(String notificationEmailAddress)

Set the notificationEmailAddress property: Notification email address for legacy account.

BillingAccountProperties withPrimaryBillingTenantId(String primaryBillingTenantId)

Set the primaryBillingTenantId property: The tenant that was used to set up the billing account.

BillingAccountProperties withRegistrationNumber(BillingAccountPropertiesRegistrationNumber registrationNumber)

Set the registrationNumber property: Describes the registration number of the organization linked with the billing account.

BillingAccountProperties withSoldTo(BillingAccountPropertiesSoldTo soldTo)

Set the soldTo property: The address of the individual or organization that is responsible for the billing account.

BillingAccountProperties withTaxIds(List<TaxIdentifier> taxIds)

Set the taxIds property: A list of tax identifiers for the billing account.

Methods inherited from java.lang.Object

Constructor Details

BillingAccountProperties

public BillingAccountProperties()

Creates an instance of BillingAccountProperties class.

Method Details

accountStatus

public AccountStatus accountStatus()

Get the accountStatus property: The current status of the billing account.

Returns:

the accountStatus value.

accountStatusReasonCode

public BillingAccountStatusReasonCode accountStatusReasonCode()

Get the accountStatusReasonCode property: Reason for the specified billing account status.

Returns:

the accountStatusReasonCode value.

accountSubType

public AccountSubType accountSubType()

Get the accountSubType property: The tier of the account.

Returns:

the accountSubType value.

accountType

public AccountType accountType()

Get the accountType property: The type of customer.

Returns:

the accountType value.

agreementType

public AgreementType agreementType()

Get the agreementType property: The type of agreement.

Returns:

the agreementType value.

billingRelationshipTypes

public List<BillingRelationshipType> billingRelationshipTypes()

Get the billingRelationshipTypes property: Identifies the billing relationships represented by a billing account. The billing relationship may be between Microsoft, the customer, and/or a third-party.

Returns:

the billingRelationshipTypes value.

displayName

public String displayName()

Get the displayName property: The billing account name.

Returns:

the displayName value.

enrollmentDetails

public BillingAccountPropertiesEnrollmentDetails enrollmentDetails()

Get the enrollmentDetails property: The properties of an enrollment.

Returns:

the enrollmentDetails value.

fromJson

public static BillingAccountProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingAccountProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hasNoBillingProfiles

public Boolean hasNoBillingProfiles()

Get the hasNoBillingProfiles property: Indicates whether or not the billing account has any billing profiles.

Returns:

the hasNoBillingProfiles value.

hasReadAccess

public Boolean hasReadAccess()

Get the hasReadAccess property: Indicates whether user has read access to the billing account.

Returns:

the hasReadAccess value.

notificationEmailAddress

public String notificationEmailAddress()

Get the notificationEmailAddress property: Notification email address for legacy account. Available for agreement type Microsoft Online Services Program.

Returns:

the notificationEmailAddress value.

primaryBillingTenantId

public String primaryBillingTenantId()

Get the primaryBillingTenantId property: The tenant that was used to set up the billing account. By default, only users from this tenant can get role assignments on the billing account and all purchases are provisioned in this tenant.

Returns:

the primaryBillingTenantId value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

qualifications

public List<String> qualifications()

Get the qualifications property: Qualifications for pricing on a billing account. Values may be Commercial, Education, Charity or Government.

Returns:

the qualifications value.

registrationNumber

public BillingAccountPropertiesRegistrationNumber registrationNumber()

Get the registrationNumber property: Describes the registration number of the organization linked with the billing account.

Returns:

the registrationNumber value.

soldTo

public BillingAccountPropertiesSoldTo soldTo()

Get the soldTo property: The address of the individual or organization that is responsible for the billing account.

Returns:

the soldTo value.

taxIds

public List<TaxIdentifier> taxIds()

Get the taxIds property: A list of tax identifiers for the billing account.

Returns:

the taxIds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public BillingAccountProperties withDisplayName(String displayName)

Set the displayName property: The billing account name.

Parameters:

displayName - the displayName value to set.

Returns:

the BillingAccountProperties object itself.

withEnrollmentDetails

public BillingAccountProperties withEnrollmentDetails(BillingAccountPropertiesEnrollmentDetails enrollmentDetails)

Set the enrollmentDetails property: The properties of an enrollment.

Parameters:

enrollmentDetails - the enrollmentDetails value to set.

Returns:

the BillingAccountProperties object itself.

withHasNoBillingProfiles

public BillingAccountProperties withHasNoBillingProfiles(Boolean hasNoBillingProfiles)

Set the hasNoBillingProfiles property: Indicates whether or not the billing account has any billing profiles.

Parameters:

hasNoBillingProfiles - the hasNoBillingProfiles value to set.

Returns:

the BillingAccountProperties object itself.

withHasReadAccess

public BillingAccountProperties withHasReadAccess(Boolean hasReadAccess)

Set the hasReadAccess property: Indicates whether user has read access to the billing account.

Parameters:

hasReadAccess - the hasReadAccess value to set.

Returns:

the BillingAccountProperties object itself.

withNotificationEmailAddress

public BillingAccountProperties withNotificationEmailAddress(String notificationEmailAddress)

Set the notificationEmailAddress property: Notification email address for legacy account. Available for agreement type Microsoft Online Services Program.

Parameters:

notificationEmailAddress - the notificationEmailAddress value to set.

Returns:

the BillingAccountProperties object itself.

withPrimaryBillingTenantId

public BillingAccountProperties withPrimaryBillingTenantId(String primaryBillingTenantId)

Set the primaryBillingTenantId property: The tenant that was used to set up the billing account. By default, only users from this tenant can get role assignments on the billing account and all purchases are provisioned in this tenant.

Parameters:

primaryBillingTenantId - the primaryBillingTenantId value to set.

Returns:

the BillingAccountProperties object itself.

withRegistrationNumber

public BillingAccountProperties withRegistrationNumber(BillingAccountPropertiesRegistrationNumber registrationNumber)

Set the registrationNumber property: Describes the registration number of the organization linked with the billing account.

Parameters:

registrationNumber - the registrationNumber value to set.

Returns:

the BillingAccountProperties object itself.

withSoldTo

public BillingAccountProperties withSoldTo(BillingAccountPropertiesSoldTo soldTo)

Set the soldTo property: The address of the individual or organization that is responsible for the billing account.

Parameters:

soldTo - the soldTo value to set.

Returns:

the BillingAccountProperties object itself.

withTaxIds

public BillingAccountProperties withTaxIds(List<TaxIdentifier> taxIds)

Set the taxIds property: A list of tax identifiers for the billing account.

Parameters:

taxIds - the taxIds value to set.

Returns:

the BillingAccountProperties object itself.

Applies to