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

package com.azure.resourcemanager.apimanagement.implementation;

import com.azure.resourcemanager.apimanagement.fluent.models.QuotaCounterContractInner;
import com.azure.resourcemanager.apimanagement.fluent.models.QuotaCounterValueContractProperties;
import com.azure.resourcemanager.apimanagement.models.QuotaCounterContract;
import java.time.OffsetDateTime;

public final class QuotaCounterContractImpl implements QuotaCounterContract {
    private QuotaCounterContractInner innerObject;

    private final com.azure.resourcemanager.apimanagement.ApiManagementManager serviceManager;

    QuotaCounterContractImpl(
        QuotaCounterContractInner innerObject,
        com.azure.resourcemanager.apimanagement.ApiManagementManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

    public QuotaCounterValueContractProperties value() {
        return this.innerModel().value();
    }

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

    private com.azure.resourcemanager.apimanagement.ApiManagementManager manager() {
        return this.serviceManager;
    }
}
