// 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.implementation;

import com.azure.resourcemanager.billing.fluent.models.InvoiceSectionWithCreateSubPermissionInner;
import com.azure.resourcemanager.billing.models.AzurePlan;
import com.azure.resourcemanager.billing.models.BillingProfileStatus;
import com.azure.resourcemanager.billing.models.InvoiceSectionWithCreateSubPermission;
import com.azure.resourcemanager.billing.models.SpendingLimitForBillingProfile;
import com.azure.resourcemanager.billing.models.StatusReasonCodeForBillingProfile;
import java.util.Collections;
import java.util.List;

public final class InvoiceSectionWithCreateSubPermissionImpl implements InvoiceSectionWithCreateSubPermission {
    private InvoiceSectionWithCreateSubPermissionInner innerObject;

    private final com.azure.resourcemanager.billing.BillingManager serviceManager;

    InvoiceSectionWithCreateSubPermissionImpl(
        InvoiceSectionWithCreateSubPermissionInner innerObject,
        com.azure.resourcemanager.billing.BillingManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public String invoiceSectionId() {
        return this.innerModel().invoiceSectionId();
    }

    public String invoiceSectionDisplayName() {
        return this.innerModel().invoiceSectionDisplayName();
    }

    public String invoiceSectionSystemId() {
        return this.innerModel().invoiceSectionSystemId();
    }

    public String billingProfileId() {
        return this.innerModel().billingProfileId();
    }

    public String billingProfileDisplayName() {
        return this.innerModel().billingProfileDisplayName();
    }

    public BillingProfileStatus billingProfileStatus() {
        return this.innerModel().billingProfileStatus();
    }

    public StatusReasonCodeForBillingProfile billingProfileStatusReasonCode() {
        return this.innerModel().billingProfileStatusReasonCode();
    }

    public SpendingLimitForBillingProfile billingProfileSpendingLimit() {
        return this.innerModel().billingProfileSpendingLimit();
    }

    public String billingProfileSystemId() {
        return this.innerModel().billingProfileSystemId();
    }

    public List<AzurePlan> enabledAzurePlans() {
        List<AzurePlan> inner = this.innerModel().enabledAzurePlans();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public InvoiceSectionWithCreateSubPermissionInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.billing.BillingManager manager() {
        return this.serviceManager;
    }
}
