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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Zone details data. */
@Fluent
public final class A2AZoneDetails {
    /*
     * Source zone info.
     */
    @JsonProperty(value = "source")
    private String source;

    /*
     * The target zone info.
     */
    @JsonProperty(value = "target")
    private String target;

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

    /**
     * Get the source property: Source zone info.
     *
     * @return the source value.
     */
    public String source() {
        return this.source;
    }

    /**
     * Set the source property: Source zone info.
     *
     * @param source the source value to set.
     * @return the A2AZoneDetails object itself.
     */
    public A2AZoneDetails withSource(String source) {
        this.source = source;
        return this;
    }

    /**
     * Get the target property: The target zone info.
     *
     * @return the target value.
     */
    public String target() {
        return this.target;
    }

    /**
     * Set the target property: The target zone info.
     *
     * @param target the target value to set.
     * @return the A2AZoneDetails object itself.
     */
    public A2AZoneDetails withTarget(String target) {
        this.target = target;
        return this;
    }

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