// 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.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The properties describing private cloud availability zone distribution. */
@Fluent
public final class AvailabilityProperties {
    /*
     * The availability strategy for the private cloud
     */
    @JsonProperty(value = "strategy")
    private AvailabilityStrategy strategy;

    /*
     * The primary availability zone for the private cloud
     */
    @JsonProperty(value = "zone")
    private Integer zone;

    /*
     * The secondary availability zone for the private cloud
     */
    @JsonProperty(value = "secondaryZone")
    private Integer secondaryZone;

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

    /**
     * Get the strategy property: The availability strategy for the private cloud.
     *
     * @return the strategy value.
     */
    public AvailabilityStrategy strategy() {
        return this.strategy;
    }

    /**
     * Set the strategy property: The availability strategy for the private cloud.
     *
     * @param strategy the strategy value to set.
     * @return the AvailabilityProperties object itself.
     */
    public AvailabilityProperties withStrategy(AvailabilityStrategy strategy) {
        this.strategy = strategy;
        return this;
    }

    /**
     * Get the zone property: The primary availability zone for the private cloud.
     *
     * @return the zone value.
     */
    public Integer zone() {
        return this.zone;
    }

    /**
     * Set the zone property: The primary availability zone for the private cloud.
     *
     * @param zone the zone value to set.
     * @return the AvailabilityProperties object itself.
     */
    public AvailabilityProperties withZone(Integer zone) {
        this.zone = zone;
        return this;
    }

    /**
     * Get the secondaryZone property: The secondary availability zone for the private cloud.
     *
     * @return the secondaryZone value.
     */
    public Integer secondaryZone() {
        return this.secondaryZone;
    }

    /**
     * Set the secondaryZone property: The secondary availability zone for the private cloud.
     *
     * @param secondaryZone the secondaryZone value to set.
     * @return the AvailabilityProperties object itself.
     */
    public AvailabilityProperties withSecondaryZone(Integer secondaryZone) {
        this.secondaryZone = secondaryZone;
        return this;
    }

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