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 Details

    • BillingAccountInner

      public BillingAccountInner()
      Creates an instance of BillingAccountInner class.
  • Method Details

    • displayName

      public String displayName()
      Get the displayName property: The billing account name.
      Returns:
      the displayName value.
    • withDisplayName

      public BillingAccountInner withDisplayName(String displayName)
      Set the displayName property: The billing account name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the BillingAccountInner object itself.
    • soldTo

      public AddressDetails soldTo()
      Get the soldTo property: The address of the individual or organization that is responsible for the billing account.
      Returns:
      the soldTo value.
    • withSoldTo

      public BillingAccountInner withSoldTo(AddressDetails 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 BillingAccountInner object itself.
    • agreementType

      public AgreementType agreementType()
      Get the agreementType property: The type of agreement.
      Returns:
      the agreementType value.
    • accountType

      public AccountType accountType()
      Get the accountType property: The type of customer.
      Returns:
      the accountType value.
    • accountStatus

      public AccountStatus accountStatus()
      Get the accountStatus property: The current status of the billing account.
      Returns:
      the accountStatus value.
    • billingProfiles

      public BillingProfilesOnExpand 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

      public BillingAccountInner withBillingProfiles(BillingProfilesOnExpand billingProfiles)
      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

      public Enrollment 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

      public List<Department> departments()
      Get the departments property: The departments associated to the enrollment.
      Returns:
      the departments value.
    • withDepartments

      public BillingAccountInner withDepartments(List<Department> departments)
      Set the departments property: The departments associated to the enrollment.
      Parameters:
      departments - the departments value to set.
      Returns:
      the BillingAccountInner object itself.
    • enrollmentAccounts

      public List<EnrollmentAccount> enrollmentAccounts()
      Get the enrollmentAccounts property: The accounts associated to the enrollment.
      Returns:
      the enrollmentAccounts value.
    • withEnrollmentAccounts

      public BillingAccountInner withEnrollmentAccounts(List<EnrollmentAccount> enrollmentAccounts)
      Set the enrollmentAccounts property: The accounts associated to the enrollment.
      Parameters:
      enrollmentAccounts - the enrollmentAccounts value to set.
      Returns:
      the BillingAccountInner object itself.
    • 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, only for legacy accounts.
      Returns:
      the notificationEmailAddress value.
    • withNotificationEmailAddress

      public BillingAccountInner withNotificationEmailAddress(String notificationEmailAddress)
      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.