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

package com.azure.resourcemanager.avs.models;

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

/** Zone and associated hosts info. */
@Immutable
public final class ClusterZone {
    /*
     * List of hosts belonging to the availability zone in a cluster
     */
    @JsonProperty(value = "hosts", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> hosts;

    /*
     * Availability zone identifier
     */
    @JsonProperty(value = "zone", access = JsonProperty.Access.WRITE_ONLY)
    private String zone;

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

    /**
     * Get the hosts property: List of hosts belonging to the availability zone in a cluster.
     *
     * @return the hosts value.
     */
    public List<String> hosts() {
        return this.hosts;
    }

    /**
     * Get the zone property: Availability zone identifier.
     *
     * @return the zone value.
     */
    public String zone() {
        return this.zone;
    }

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