BillingProfileProperties Class

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

Implements

public final class BillingProfileProperties
implements JsonSerializable<BillingProfileProperties>

A billing profile.

Constructor Summary

Constructor Description
BillingProfileProperties()

Creates an instance of BillingProfileProperties class.

Method Summary

Modifier and Type Method and Description
BillingRelationshipType billingRelationshipType()

Get the billingRelationshipType property: Identifies the billing relationship represented by the billing profile.

BillingProfilePropertiesBillTo billTo()

Get the billTo property: Billing address.

String currency()

Get the currency property: The currency in which the charges for the billing profile are billed.

BillingProfilePropertiesCurrentPaymentTerm currentPaymentTerm()

Get the currentPaymentTerm property: The current payment term of the billing profile.

String displayName()

Get the displayName property: The name of the billing profile.

List<AzurePlan> enabledAzurePlans()

Get the enabledAzurePlans property: Information about the enabled azure plans.

static BillingProfileProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingProfileProperties from the JsonReader.

Boolean hasReadAccess()

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

BillingProfilePropertiesIndirectRelationshipInfo indirectRelationshipInfo()

Get the indirectRelationshipInfo property: Identifies the billing profile that is linked to another billing profile in indirect purchase motion.

Integer invoiceDay()

Get the invoiceDay property: The day of the month when the invoice for the billing profile is generated.

Boolean invoiceEmailOptIn()

Get the invoiceEmailOptIn property: Flag controlling whether the invoices for the billing profile are sent through email.

List<String> invoiceRecipients()

Get the invoiceRecipients property: The list of email addresses to receive invoices by email for the billing profile.

List<PaymentTerm> otherPaymentTerms()

Get the otherPaymentTerms property: The other payment terms of the billing profile.

String poNumber()

Get the poNumber property: The default purchase order number that will appear on the invoices generated for the billing profile.

ProvisioningState provisioningState()

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

BillingProfilePropertiesShipTo shipTo()

Get the shipTo property: The default address where the products are shipped, or the services are being used.

BillingProfilePropertiesSoldTo soldTo()

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

SpendingLimit spendingLimit()

Get the spendingLimit property: The billing profile spending limit.

List<SpendingLimitDetails> spendingLimitDetails()

Get the spendingLimitDetails property: The details of billing profile spending limit.

BillingProfileStatus status()

Get the status property: The status of the billing profile.

BillingProfileStatusReasonCode statusReasonCode()

Get the statusReasonCode property: Reason for the specified billing profile status.

String systemId()

Get the systemId property: The system generated unique identifier for a billing profile.

Map<String,String> tags()

Get the tags property: Dictionary of metadata associated with the resource.

List<String> targetClouds()

Get the targetClouds property: Identifies the cloud environments that are associated with a billing profile.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingProfileProperties withBillTo(BillingProfilePropertiesBillTo billTo)

Set the billTo property: Billing address.

BillingProfileProperties withCurrentPaymentTerm(BillingProfilePropertiesCurrentPaymentTerm currentPaymentTerm)

Set the currentPaymentTerm property: The current payment term of the billing profile.

BillingProfileProperties withDisplayName(String displayName)

Set the displayName property: The name of the billing profile.

BillingProfileProperties withEnabledAzurePlans(List<AzurePlan> enabledAzurePlans)

Set the enabledAzurePlans property: Information about the enabled azure plans.

BillingProfileProperties withIndirectRelationshipInfo(BillingProfilePropertiesIndirectRelationshipInfo indirectRelationshipInfo)

Set the indirectRelationshipInfo property: Identifies the billing profile that is linked to another billing profile in indirect purchase motion.

BillingProfileProperties withInvoiceEmailOptIn(Boolean invoiceEmailOptIn)

Set the invoiceEmailOptIn property: Flag controlling whether the invoices for the billing profile are sent through email.

BillingProfileProperties withInvoiceRecipients(List<String> invoiceRecipients)

Set the invoiceRecipients property: The list of email addresses to receive invoices by email for the billing profile.

BillingProfileProperties withPoNumber(String poNumber)

Set the poNumber property: The default purchase order number that will appear on the invoices generated for the billing profile.

BillingProfileProperties withShipTo(BillingProfilePropertiesShipTo shipTo)

Set the shipTo property: The default address where the products are shipped, or the services are being used.

BillingProfileProperties withSoldTo(BillingProfilePropertiesSoldTo soldTo)

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

BillingProfileProperties withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

BillingProfileProperties

public BillingProfileProperties()

Creates an instance of BillingProfileProperties class.

Method Details

billingRelationshipType

public BillingRelationshipType billingRelationshipType()

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

Returns:

the billingRelationshipType value.

billTo

public BillingProfilePropertiesBillTo billTo()

Get the billTo property: Billing address.

Returns:

the billTo value.

currency

public String currency()

Get the currency property: The currency in which the charges for the billing profile are billed.

Returns:

the currency value.

currentPaymentTerm

public BillingProfilePropertiesCurrentPaymentTerm currentPaymentTerm()

Get the currentPaymentTerm property: The current payment term of the billing profile.

Returns:

the currentPaymentTerm value.

displayName

public String displayName()

Get the displayName property: The name of the billing profile.

Returns:

the displayName value.

enabledAzurePlans

public List<AzurePlan> enabledAzurePlans()

Get the enabledAzurePlans property: Information about the enabled azure plans.

Returns:

the enabledAzurePlans value.

fromJson

public static BillingProfileProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingProfileProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hasReadAccess

public Boolean hasReadAccess()

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

Returns:

the hasReadAccess value.

indirectRelationshipInfo

public BillingProfilePropertiesIndirectRelationshipInfo indirectRelationshipInfo()

Get the indirectRelationshipInfo property: Identifies the billing profile that is linked to another billing profile in indirect purchase motion.

Returns:

the indirectRelationshipInfo value.

invoiceDay

public Integer invoiceDay()

Get the invoiceDay property: The day of the month when the invoice for the billing profile is generated.

Returns:

the invoiceDay value.

invoiceEmailOptIn

public Boolean invoiceEmailOptIn()

Get the invoiceEmailOptIn property: Flag controlling whether the invoices for the billing profile are sent through email.

Returns:

the invoiceEmailOptIn value.

invoiceRecipients

public List<String> invoiceRecipients()

Get the invoiceRecipients property: The list of email addresses to receive invoices by email for the billing profile.

Returns:

the invoiceRecipients value.

otherPaymentTerms

public List<PaymentTerm> otherPaymentTerms()

Get the otherPaymentTerms property: The other payment terms of the billing profile.

Returns:

the otherPaymentTerms value.

poNumber

public String poNumber()

Get the poNumber property: The default purchase order number that will appear on the invoices generated for the billing profile.

Returns:

the poNumber value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

shipTo

public BillingProfilePropertiesShipTo shipTo()

Get the shipTo property: The default address where the products are shipped, or the services are being used. If a ship to is not specified for a product or a subscription, then this address will be used.

Returns:

the shipTo value.

soldTo

public BillingProfilePropertiesSoldTo soldTo()

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

Returns:

the soldTo value.

spendingLimit

public SpendingLimit spendingLimit()

Get the spendingLimit property: The billing profile spending limit.

Returns:

the spendingLimit value.

spendingLimitDetails

public List<SpendingLimitDetails> spendingLimitDetails()

Get the spendingLimitDetails property: The details of billing profile spending limit.

Returns:

the spendingLimitDetails value.

status

public BillingProfileStatus status()

Get the status property: The status of the billing profile.

Returns:

the status value.

statusReasonCode

public BillingProfileStatusReasonCode statusReasonCode()

Get the statusReasonCode property: Reason for the specified billing profile status.

Returns:

the statusReasonCode value.

systemId

public String systemId()

Get the systemId property: The system generated unique identifier for a billing profile.

Returns:

the systemId value.

tags

public Map<String,String> tags()

Get the tags property: Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.

Returns:

the tags value.

targetClouds

public List<String> targetClouds()

Get the targetClouds property: Identifies the cloud environments that are associated with a billing profile. This is a system managed optional field and gets updated as the billing profile gets associated with accounts in various clouds.

Returns:

the targetClouds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBillTo

public BillingProfileProperties withBillTo(BillingProfilePropertiesBillTo billTo)

Set the billTo property: Billing address.

Parameters:

billTo - the billTo value to set.

Returns:

the BillingProfileProperties object itself.

withCurrentPaymentTerm

public BillingProfileProperties withCurrentPaymentTerm(BillingProfilePropertiesCurrentPaymentTerm currentPaymentTerm)

Set the currentPaymentTerm property: The current payment term of the billing profile.

Parameters:

currentPaymentTerm - the currentPaymentTerm value to set.

Returns:

the BillingProfileProperties object itself.

withDisplayName

public BillingProfileProperties withDisplayName(String displayName)

Set the displayName property: The name of the billing profile.

Parameters:

displayName - the displayName value to set.

Returns:

the BillingProfileProperties object itself.

withEnabledAzurePlans

public BillingProfileProperties withEnabledAzurePlans(List<AzurePlan> enabledAzurePlans)

Set the enabledAzurePlans property: Information about the enabled azure plans.

Parameters:

enabledAzurePlans - the enabledAzurePlans value to set.

Returns:

the BillingProfileProperties object itself.

withIndirectRelationshipInfo

public BillingProfileProperties withIndirectRelationshipInfo(BillingProfilePropertiesIndirectRelationshipInfo indirectRelationshipInfo)

Set the indirectRelationshipInfo property: Identifies the billing profile that is linked to another billing profile in indirect purchase motion.

Parameters:

indirectRelationshipInfo - the indirectRelationshipInfo value to set.

Returns:

the BillingProfileProperties object itself.

withInvoiceEmailOptIn

public BillingProfileProperties withInvoiceEmailOptIn(Boolean invoiceEmailOptIn)

Set the invoiceEmailOptIn property: Flag controlling whether the invoices for the billing profile are sent through email.

Parameters:

invoiceEmailOptIn - the invoiceEmailOptIn value to set.

Returns:

the BillingProfileProperties object itself.

withInvoiceRecipients

public BillingProfileProperties withInvoiceRecipients(List<String> invoiceRecipients)

Set the invoiceRecipients property: The list of email addresses to receive invoices by email for the billing profile.

Parameters:

invoiceRecipients - the invoiceRecipients value to set.

Returns:

the BillingProfileProperties object itself.

withPoNumber

public BillingProfileProperties withPoNumber(String poNumber)

Set the poNumber property: The default purchase order number that will appear on the invoices generated for the billing profile.

Parameters:

poNumber - the poNumber value to set.

Returns:

the BillingProfileProperties object itself.

withShipTo

public BillingProfileProperties withShipTo(BillingProfilePropertiesShipTo shipTo)

Set the shipTo property: The default address where the products are shipped, or the services are being used. If a ship to is not specified for a product or a subscription, then this address will be used.

Parameters:

shipTo - the shipTo value to set.

Returns:

the BillingProfileProperties object itself.

withSoldTo

public BillingProfileProperties withSoldTo(BillingProfilePropertiesSoldTo 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 BillingProfileProperties object itself.

withTags

public BillingProfileProperties withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.

Parameters:

tags - the tags value to set.

Returns:

the BillingProfileProperties object itself.

Applies to