Class BillingAccountInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.billing.fluent.models.BillingAccountInner
public final class BillingAccountInner
extends com.azure.core.management.ProxyResource
A billing account.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the accountStatus property: The current status of the billing account.Get the accountType property: The type of customer.Get the agreementType property: The type of agreement.Get the billingProfiles property: The billing profiles associated with the billing account.Get the departments property: The departments associated to the enrollment.Get the displayName property: The billing account name.Get the enrollmentAccounts property: The accounts associated to the enrollment.Get the enrollmentDetails property: The details about the associated legacy enrollment.Get the hasReadAccess property: Indicates whether user has read access to the billing account.Get the notificationEmailAddress property: Notification email address, only for legacy accounts.soldTo()
Get the soldTo property: The address of the individual or organization that is responsible for the billing account.void
validate()
Validates the instance.withBillingProfiles
(BillingProfilesOnExpand billingProfiles) Set the billingProfiles property: The billing profiles associated with the billing account.withDepartments
(List<Department> departments) Set the departments property: The departments associated to the enrollment.withDisplayName
(String displayName) Set the displayName property: The billing account name.withEnrollmentAccounts
(List<EnrollmentAccount> enrollmentAccounts) Set the enrollmentAccounts property: The accounts associated to the enrollment.withNotificationEmailAddress
(String notificationEmailAddress) Set the notificationEmailAddress property: Notification email address, only for legacy accounts.withSoldTo
(AddressDetails soldTo) Set the soldTo property: The address of the individual or organization that is responsible for the billing account.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
BillingAccountInner
public BillingAccountInner()Creates an instance of BillingAccountInner class.
-
-
Method Details
-
displayName
Get the displayName property: The billing account name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The billing account name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the BillingAccountInner object itself.
-
soldTo
Get the soldTo property: The address of the individual or organization that is responsible for the billing account.- Returns:
- the soldTo value.
-
withSoldTo
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 BillingAccountInner object itself.
-
agreementType
Get the agreementType property: The type of agreement.- Returns:
- the agreementType value.
-
accountType
Get the accountType property: The type of customer.- Returns:
- the accountType value.
-
accountStatus
Get the accountStatus property: The current status of the billing account.- Returns:
- the accountStatus value.
-
billingProfiles
Get the billingProfiles property: The billing profiles associated with the billing account. By default this is not populated, unless it's specified in $expand.- Returns:
- the billingProfiles value.
-
withBillingProfiles
Set the billingProfiles property: The billing profiles associated with the billing account. By default this is not populated, unless it's specified in $expand.- Parameters:
billingProfiles
- the billingProfiles value to set.- Returns:
- the BillingAccountInner object itself.
-
enrollmentDetails
Get the enrollmentDetails property: The details about the associated legacy enrollment. By default this is not populated, unless it's specified in $expand.- Returns:
- the enrollmentDetails value.
-
departments
Get the departments property: The departments associated to the enrollment.- Returns:
- the departments value.
-
withDepartments
Set the departments property: The departments associated to the enrollment.- Parameters:
departments
- the departments value to set.- Returns:
- the BillingAccountInner object itself.
-
enrollmentAccounts
Get the enrollmentAccounts property: The accounts associated to the enrollment.- Returns:
- the enrollmentAccounts value.
-
withEnrollmentAccounts
Set the enrollmentAccounts property: The accounts associated to the enrollment.- Parameters:
enrollmentAccounts
- the enrollmentAccounts value to set.- Returns:
- the BillingAccountInner object itself.
-
hasReadAccess
Get the hasReadAccess property: Indicates whether user has read access to the billing account.- Returns:
- the hasReadAccess value.
-
notificationEmailAddress
Get the notificationEmailAddress property: Notification email address, only for legacy accounts.- Returns:
- the notificationEmailAddress value.
-
withNotificationEmailAddress
Set the notificationEmailAddress property: Notification email address, only for legacy accounts.- Parameters:
notificationEmailAddress
- the notificationEmailAddress value to set.- Returns:
- the BillingAccountInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-