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

/** Unpairing input properties. */
@Fluent
public final class RemoveProtectionContainerMappingInputProperties {
    /*
     * Provider specific input for unpairing.
     */
    @JsonProperty(value = "providerSpecificInput")
    private ReplicationProviderContainerUnmappingInput providerSpecificInput;

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

    /**
     * Get the providerSpecificInput property: Provider specific input for unpairing.
     *
     * @return the providerSpecificInput value.
     */
    public ReplicationProviderContainerUnmappingInput providerSpecificInput() {
        return this.providerSpecificInput;
    }

    /**
     * Set the providerSpecificInput property: Provider specific input for unpairing.
     *
     * @param providerSpecificInput the providerSpecificInput value to set.
     * @return the RemoveProtectionContainerMappingInputProperties object itself.
     */
    public RemoveProtectionContainerMappingInputProperties withProviderSpecificInput(
        ReplicationProviderContainerUnmappingInput providerSpecificInput) {
        this.providerSpecificInput = providerSpecificInput;
        return this;
    }

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