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

/** A2A Network Mapping fabric specific settings. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "instanceType")
@JsonTypeName("AzureToAzure")
@Fluent
public final class AzureToAzureNetworkMappingSettings extends NetworkMappingFabricSpecificSettings {
    /*
     * The primary fabric location.
     */
    @JsonProperty(value = "primaryFabricLocation")
    private String primaryFabricLocation;

    /*
     * The recovery fabric location.
     */
    @JsonProperty(value = "recoveryFabricLocation")
    private String recoveryFabricLocation;

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

    /**
     * Get the primaryFabricLocation property: The primary fabric location.
     *
     * @return the primaryFabricLocation value.
     */
    public String primaryFabricLocation() {
        return this.primaryFabricLocation;
    }

    /**
     * Set the primaryFabricLocation property: The primary fabric location.
     *
     * @param primaryFabricLocation the primaryFabricLocation value to set.
     * @return the AzureToAzureNetworkMappingSettings object itself.
     */
    public AzureToAzureNetworkMappingSettings withPrimaryFabricLocation(String primaryFabricLocation) {
        this.primaryFabricLocation = primaryFabricLocation;
        return this;
    }

    /**
     * Get the recoveryFabricLocation property: The recovery fabric location.
     *
     * @return the recoveryFabricLocation value.
     */
    public String recoveryFabricLocation() {
        return this.recoveryFabricLocation;
    }

    /**
     * Set the recoveryFabricLocation property: The recovery fabric location.
     *
     * @param recoveryFabricLocation the recoveryFabricLocation value to set.
     * @return the AzureToAzureNetworkMappingSettings object itself.
     */
    public AzureToAzureNetworkMappingSettings withRecoveryFabricLocation(String recoveryFabricLocation) {
        this.recoveryFabricLocation = recoveryFabricLocation;
        return this;
    }

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