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

package com.azure.resourcemanager.billingbenefits.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.billingbenefits.fluent.models.SavingsPlanOrderModelInner;
import com.azure.resourcemanager.billingbenefits.models.BillingPlan;
import com.azure.resourcemanager.billingbenefits.models.BillingPlanInformation;
import com.azure.resourcemanager.billingbenefits.models.ExtendedStatusInfo;
import com.azure.resourcemanager.billingbenefits.models.ProvisioningState;
import com.azure.resourcemanager.billingbenefits.models.SavingsPlanOrderModel;
import com.azure.resourcemanager.billingbenefits.models.Sku;
import com.azure.resourcemanager.billingbenefits.models.Term;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;

public final class SavingsPlanOrderModelImpl implements SavingsPlanOrderModel {
    private SavingsPlanOrderModelInner innerObject;

    private final com.azure.resourcemanager.billingbenefits.BillingBenefitsManager serviceManager;

    SavingsPlanOrderModelImpl(
        SavingsPlanOrderModelInner innerObject,
        com.azure.resourcemanager.billingbenefits.BillingBenefitsManager 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 Sku sku() {
        return this.innerModel().sku();
    }

    public SystemData systemData() {
        return this.innerModel().systemData();
    }

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

    public ProvisioningState provisioningState() {
        return this.innerModel().provisioningState();
    }

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

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

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

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

    public Term term() {
        return this.innerModel().term();
    }

    public BillingPlan billingPlan() {
        return this.innerModel().billingPlan();
    }

    public OffsetDateTime expiryDateTime() {
        return this.innerModel().expiryDateTime();
    }

    public OffsetDateTime benefitStartTime() {
        return this.innerModel().benefitStartTime();
    }

    public BillingPlanInformation planInformation() {
        return this.innerModel().planInformation();
    }

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

    public ExtendedStatusInfo extendedStatusInfo() {
        return this.innerModel().extendedStatusInfo();
    }

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

    private com.azure.resourcemanager.billingbenefits.BillingBenefitsManager manager() {
        return this.serviceManager;
    }
}
