// 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.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.databox.models.DatacenterAddressResponse;
import com.azure.resourcemanager.databox.models.ScheduleAvailabilityResponse;
import com.azure.resourcemanager.databox.models.TransportAvailabilityResponse;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Configuration response specific to a region. */
@Immutable
public final class RegionConfigurationResponseInner {
    /*
     * Schedule availability for given sku in a region.
     */
    @JsonProperty(value = "scheduleAvailabilityResponse", access = JsonProperty.Access.WRITE_ONLY)
    private ScheduleAvailabilityResponse scheduleAvailabilityResponse;

    /*
     * Transport options available for given sku in a region.
     */
    @JsonProperty(value = "transportAvailabilityResponse", access = JsonProperty.Access.WRITE_ONLY)
    private TransportAvailabilityResponse transportAvailabilityResponse;

    /*
     * Datacenter address for given sku in a region.
     */
    @JsonProperty(value = "datacenterAddressResponse", access = JsonProperty.Access.WRITE_ONLY)
    private DatacenterAddressResponse datacenterAddressResponse;

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

    /**
     * Get the scheduleAvailabilityResponse property: Schedule availability for given sku in a region.
     *
     * @return the scheduleAvailabilityResponse value.
     */
    public ScheduleAvailabilityResponse scheduleAvailabilityResponse() {
        return this.scheduleAvailabilityResponse;
    }

    /**
     * Get the transportAvailabilityResponse property: Transport options available for given sku in a region.
     *
     * @return the transportAvailabilityResponse value.
     */
    public TransportAvailabilityResponse transportAvailabilityResponse() {
        return this.transportAvailabilityResponse;
    }

    /**
     * Get the datacenterAddressResponse property: Datacenter address for given sku in a region.
     *
     * @return the datacenterAddressResponse value.
     */
    public DatacenterAddressResponse datacenterAddressResponse() {
        return this.datacenterAddressResponse;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (scheduleAvailabilityResponse() != null) {
            scheduleAvailabilityResponse().validate();
        }
        if (transportAvailabilityResponse() != null) {
            transportAvailabilityResponse().validate();
        }
        if (datacenterAddressResponse() != null) {
            datacenterAddressResponse().validate();
        }
    }
}
