// 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 com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;

/** Datacenter address for given storage location. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "datacenterAddressType",
    defaultImpl = DatacenterAddressResponse.class)
@JsonTypeName("DatacenterAddressResponse")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "DatacenterAddressInstruction", value = DatacenterAddressInstructionResponse.class),
    @JsonSubTypes.Type(name = "DatacenterAddressLocation", value = DatacenterAddressLocationResponse.class)
})
@Immutable
public class DatacenterAddressResponse {
    /*
     * List of supported carriers for return shipment.
     */
    @JsonProperty(value = "supportedCarriersForReturnShipment", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> supportedCarriersForReturnShipment;

    /*
     * Azure Location where the Data Center serves primarily.
     */
    @JsonProperty(value = "dataCenterAzureLocation", access = JsonProperty.Access.WRITE_ONLY)
    private String dataCenterAzureLocation;

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

    /**
     * Get the supportedCarriersForReturnShipment property: List of supported carriers for return shipment.
     *
     * @return the supportedCarriersForReturnShipment value.
     */
    public List<String> supportedCarriersForReturnShipment() {
        return this.supportedCarriersForReturnShipment;
    }

    /**
     * Get the dataCenterAzureLocation property: Azure Location where the Data Center serves primarily.
     *
     * @return the dataCenterAzureLocation value.
     */
    public String dataCenterAzureLocation() {
        return this.dataCenterAzureLocation;
    }

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