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

package com.azure.resourcemanager.postgresqlflexibleserver.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Represents capability of a storage tier. */
@Immutable
public final class StorageTierCapability extends CapabilityBase {
    /*
     * Name to represent Storage tier capability
     */
    @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
    private String name;

    /*
     * Supported IOPS for this storage tier
     */
    @JsonProperty(value = "iops", access = JsonProperty.Access.WRITE_ONLY)
    private Integer iops;

    /** Creates an instance of StorageTierCapability class. */
    public StorageTierCapability() {
    }

    /**
     * Get the name property: Name to represent Storage tier capability.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Get the iops property: Supported IOPS for this storage tier.
     *
     * @return the iops value.
     */
    public Integer iops() {
        return this.iops;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
