// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.billing.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.resourcemanager.billing.models.BillingProfileSpendingLimit;
import com.azure.resourcemanager.billing.models.BillingProfileStatus;
import com.azure.resourcemanager.billing.models.BillingProfileStatusReasonCode;
import com.fasterxml.jackson.annotation.JsonProperty;

/** A billing property. */
@Fluent
public final class BillingPropertyInner extends ProxyResource {
    /*
     * A billing property.
     */
    @JsonProperty(value = "properties")
    private BillingPropertyProperties innerProperties;

    /** Creates an instance of BillingPropertyInner class. */
    public BillingPropertyInner() {
    }

    /**
     * Get the innerProperties property: A billing property.
     *
     * @return the innerProperties value.
     */
    private BillingPropertyProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the accountAdminNotificationEmailAddress property: The email address on which the account admin gets all
     * Azure notifications.
     *
     * @return the accountAdminNotificationEmailAddress value.
     */
    public String accountAdminNotificationEmailAddress() {
        return this.innerProperties() == null ? null : this.innerProperties().accountAdminNotificationEmailAddress();
    }

    /**
     * Get the billingTenantId property: The Azure AD tenant ID of the billing account for the subscription.
     *
     * @return the billingTenantId value.
     */
    public String billingTenantId() {
        return this.innerProperties() == null ? null : this.innerProperties().billingTenantId();
    }

    /**
     * Get the billingAccountId property: The ID of the billing account to which the subscription is billed.
     *
     * @return the billingAccountId value.
     */
    public String billingAccountId() {
        return this.innerProperties() == null ? null : this.innerProperties().billingAccountId();
    }

    /**
     * Get the billingAccountDisplayName property: The name of the billing account to which the subscription is billed.
     *
     * @return the billingAccountDisplayName value.
     */
    public String billingAccountDisplayName() {
        return this.innerProperties() == null ? null : this.innerProperties().billingAccountDisplayName();
    }

    /**
     * Get the billingProfileId property: The ID of the billing profile to which the subscription is billed.
     *
     * @return the billingProfileId value.
     */
    public String billingProfileId() {
        return this.innerProperties() == null ? null : this.innerProperties().billingProfileId();
    }

    /**
     * Get the billingProfileDisplayName property: The name of the billing profile to which the subscription is billed.
     *
     * @return the billingProfileDisplayName value.
     */
    public String billingProfileDisplayName() {
        return this.innerProperties() == null ? null : this.innerProperties().billingProfileDisplayName();
    }

    /**
     * Get the billingProfileStatus property: The status of the billing profile.
     *
     * @return the billingProfileStatus value.
     */
    public BillingProfileStatus billingProfileStatus() {
        return this.innerProperties() == null ? null : this.innerProperties().billingProfileStatus();
    }

    /**
     * Get the billingProfileStatusReasonCode property: Reason for the specified billing profile status.
     *
     * @return the billingProfileStatusReasonCode value.
     */
    public BillingProfileStatusReasonCode billingProfileStatusReasonCode() {
        return this.innerProperties() == null ? null : this.innerProperties().billingProfileStatusReasonCode();
    }

    /**
     * Get the billingProfileSpendingLimit property: The billing profile spending limit.
     *
     * @return the billingProfileSpendingLimit value.
     */
    public BillingProfileSpendingLimit billingProfileSpendingLimit() {
        return this.innerProperties() == null ? null : this.innerProperties().billingProfileSpendingLimit();
    }

    /**
     * Get the costCenter property: The cost center applied to the subscription.
     *
     * @return the costCenter value.
     */
    public String costCenter() {
        return this.innerProperties() == null ? null : this.innerProperties().costCenter();
    }

    /**
     * Set the costCenter property: The cost center applied to the subscription.
     *
     * @param costCenter the costCenter value to set.
     * @return the BillingPropertyInner object itself.
     */
    public BillingPropertyInner withCostCenter(String costCenter) {
        if (this.innerProperties() == null) {
            this.innerProperties = new BillingPropertyProperties();
        }
        this.innerProperties().withCostCenter(costCenter);
        return this;
    }

    /**
     * Get the invoiceSectionId property: The ID of the invoice section to which the subscription is billed.
     *
     * @return the invoiceSectionId value.
     */
    public String invoiceSectionId() {
        return this.innerProperties() == null ? null : this.innerProperties().invoiceSectionId();
    }

    /**
     * Get the invoiceSectionDisplayName property: The name of the invoice section to which the subscription is billed.
     *
     * @return the invoiceSectionDisplayName value.
     */
    public String invoiceSectionDisplayName() {
        return this.innerProperties() == null ? null : this.innerProperties().invoiceSectionDisplayName();
    }

    /**
     * Get the isAccountAdmin property: Indicates whether user is the account admin.
     *
     * @return the isAccountAdmin value.
     */
    public Boolean isAccountAdmin() {
        return this.innerProperties() == null ? null : this.innerProperties().isAccountAdmin();
    }

    /**
     * Get the productId property: The product ID of the Azure plan.
     *
     * @return the productId value.
     */
    public String productId() {
        return this.innerProperties() == null ? null : this.innerProperties().productId();
    }

    /**
     * Get the productName property: The product name of the Azure plan.
     *
     * @return the productName value.
     */
    public String productName() {
        return this.innerProperties() == null ? null : this.innerProperties().productName();
    }

    /**
     * Get the skuId property: The sku ID of the Azure plan for the subscription.
     *
     * @return the skuId value.
     */
    public String skuId() {
        return this.innerProperties() == null ? null : this.innerProperties().skuId();
    }

    /**
     * Get the skuDescription property: The sku description of the Azure plan for the subscription.
     *
     * @return the skuDescription value.
     */
    public String skuDescription() {
        return this.innerProperties() == null ? null : this.innerProperties().skuDescription();
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (innerProperties() != null) {
            innerProperties().validate();
        }
    }
}
