// 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;

/** Switch protection input properties. */
@Fluent
public final class SwitchProtectionInputProperties {
    /*
     * The unique replication protected item name.
     */
    @JsonProperty(value = "replicationProtectedItemName")
    private String replicationProtectedItemName;

    /*
     * Provider specific switch protection input.
     */
    @JsonProperty(value = "providerSpecificDetails")
    private SwitchProtectionProviderSpecificInput providerSpecificDetails;

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

    /**
     * Get the replicationProtectedItemName property: The unique replication protected item name.
     *
     * @return the replicationProtectedItemName value.
     */
    public String replicationProtectedItemName() {
        return this.replicationProtectedItemName;
    }

    /**
     * Set the replicationProtectedItemName property: The unique replication protected item name.
     *
     * @param replicationProtectedItemName the replicationProtectedItemName value to set.
     * @return the SwitchProtectionInputProperties object itself.
     */
    public SwitchProtectionInputProperties withReplicationProtectedItemName(String replicationProtectedItemName) {
        this.replicationProtectedItemName = replicationProtectedItemName;
        return this;
    }

    /**
     * Get the providerSpecificDetails property: Provider specific switch protection input.
     *
     * @return the providerSpecificDetails value.
     */
    public SwitchProtectionProviderSpecificInput providerSpecificDetails() {
        return this.providerSpecificDetails;
    }

    /**
     * Set the providerSpecificDetails property: Provider specific switch protection input.
     *
     * @param providerSpecificDetails the providerSpecificDetails value to set.
     * @return the SwitchProtectionInputProperties object itself.
     */
    public SwitchProtectionInputProperties withProviderSpecificDetails(
        SwitchProtectionProviderSpecificInput providerSpecificDetails) {
        this.providerSpecificDetails = providerSpecificDetails;
        return this;
    }

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