// 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;
import java.util.List;

/** Sku capability. */
@Immutable
public final class ServerSkuCapability extends CapabilityBase {
    /*
     * Sku name
     */
    @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
    private String name;

    /*
     * Supported vCores
     */
    @JsonProperty(value = "vCores", access = JsonProperty.Access.WRITE_ONLY)
    private Integer vCores;

    /*
     * Supported IOPS
     */
    @JsonProperty(value = "supportedIops", access = JsonProperty.Access.WRITE_ONLY)
    private Integer supportedIops;

    /*
     * Supported memory per vCore in MB
     */
    @JsonProperty(value = "supportedMemoryPerVcoreMb", access = JsonProperty.Access.WRITE_ONLY)
    private Long supportedMemoryPerVcoreMb;

    /*
     * List of supported Availability Zones. E.g. "1", "2", "3"
     */
    @JsonProperty(value = "supportedZones", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> supportedZones;

    /*
     * Supported high availability mode
     */
    @JsonProperty(value = "supportedHaMode", access = JsonProperty.Access.WRITE_ONLY)
    private List<HaMode> supportedHaMode;

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

    /**
     * Get the name property: Sku name.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Get the vCores property: Supported vCores.
     *
     * @return the vCores value.
     */
    public Integer vCores() {
        return this.vCores;
    }

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

    /**
     * Get the supportedMemoryPerVcoreMb property: Supported memory per vCore in MB.
     *
     * @return the supportedMemoryPerVcoreMb value.
     */
    public Long supportedMemoryPerVcoreMb() {
        return this.supportedMemoryPerVcoreMb;
    }

    /**
     * Get the supportedZones property: List of supported Availability Zones. E.g. "1", "2", "3".
     *
     * @return the supportedZones value.
     */
    public List<String> supportedZones() {
        return this.supportedZones;
    }

    /**
     * Get the supportedHaMode property: Supported high availability mode.
     *
     * @return the supportedHaMode value.
     */
    public List<HaMode> supportedHaMode() {
        return this.supportedHaMode;
    }

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