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

package com.azure.resourcemanager.redisenterprise.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * Region Sku Details
 *
 * <p>List of details about all the available SKUs.
 */
@Fluent
public final class RegionSkuDetails {
    /*
     * List of Sku Detail
     */
    @JsonProperty(value = "value")
    private List<RegionSkuDetailInner> value;

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

    /**
     * Get the value property: List of Sku Detail.
     *
     * @return the value value.
     */
    public List<RegionSkuDetailInner> value() {
        return this.value;
    }

    /**
     * Set the value property: List of Sku Detail.
     *
     * @param value the value value to set.
     * @return the RegionSkuDetails object itself.
     */
    public RegionSkuDetails withValue(List<RegionSkuDetailInner> value) {
        this.value = value;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (value() != null) {
            value().forEach(e -> e.validate());
        }
    }
}
