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

package com.azure.resourcemanager.postgresql.implementation;

import com.azure.resourcemanager.postgresql.fluent.models.PerformanceTierPropertiesInner;
import com.azure.resourcemanager.postgresql.models.PerformanceTierProperties;
import com.azure.resourcemanager.postgresql.models.PerformanceTierServiceLevelObjectives;
import java.util.Collections;
import java.util.List;

public final class PerformanceTierPropertiesImpl implements PerformanceTierProperties {
    private PerformanceTierPropertiesInner innerObject;

    private final com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager;

    PerformanceTierPropertiesImpl(
        PerformanceTierPropertiesInner innerObject,
        com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

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

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

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

    private com.azure.resourcemanager.postgresql.PostgreSqlManager manager() {
        return this.serviceManager;
    }
}
