// 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.BillingProfileInner;
import com.azure.resourcemanager.billing.models.AddressDetails;
import com.azure.resourcemanager.billing.models.AzurePlan;
import com.azure.resourcemanager.billing.models.BillingProfile;
import com.azure.resourcemanager.billing.models.BillingProfileStatus;
import com.azure.resourcemanager.billing.models.BillingRelationshipType;
import com.azure.resourcemanager.billing.models.IndirectRelationshipInfo;
import com.azure.resourcemanager.billing.models.InvoiceSectionsOnExpand;
import com.azure.resourcemanager.billing.models.SpendingLimit;
import com.azure.resourcemanager.billing.models.StatusReasonCode;
import com.azure.resourcemanager.billing.models.TargetCloud;
import java.util.Collections;
import java.util.List;
import java.util.Map;

public final class BillingProfileImpl implements BillingProfile {
    private BillingProfileInner innerObject;

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

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

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

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

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

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

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

    public BillingRelationshipType billingRelationshipType() {
        return this.innerModel().billingRelationshipType();
    }

    public AddressDetails billTo() {
        return this.innerModel().billTo();
    }

    public IndirectRelationshipInfo indirectRelationshipInfo() {
        return this.innerModel().indirectRelationshipInfo();
    }

    public Boolean invoiceEmailOptIn() {
        return this.innerModel().invoiceEmailOptIn();
    }

    public Integer invoiceDay() {
        return this.innerModel().invoiceDay();
    }

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

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

    public InvoiceSectionsOnExpand invoiceSections() {
        return this.innerModel().invoiceSections();
    }

    public Boolean hasReadAccess() {
        return this.innerModel().hasReadAccess();
    }

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

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

    public StatusReasonCode statusReasonCode() {
        return this.innerModel().statusReasonCode();
    }

    public SpendingLimit spendingLimit() {
        return this.innerModel().spendingLimit();
    }

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

    public Map<String, String> tags() {
        Map<String, String> inner = this.innerModel().tags();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

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

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