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

package com.azure.resourcemanager.databox.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Transport options available for given sku in a region. */
@Immutable
public final class TransportAvailabilityResponse {
    /*
     * List of transport availability details for given region
     */
    @JsonProperty(value = "transportAvailabilityDetails", access = JsonProperty.Access.WRITE_ONLY)
    private List<TransportAvailabilityDetails> transportAvailabilityDetails;

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

    /**
     * Get the transportAvailabilityDetails property: List of transport availability details for given region.
     *
     * @return the transportAvailabilityDetails value.
     */
    public List<TransportAvailabilityDetails> transportAvailabilityDetails() {
        return this.transportAvailabilityDetails;
    }

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