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

/** Configure pairing input properties. */
@Fluent
public final class CreateProtectionContainerMappingInputProperties {
    /*
     * The target unique protection container name.
     */
    @JsonProperty(value = "targetProtectionContainerId")
    private String targetProtectionContainerId;

    /*
     * Applicable policy.
     */
    @JsonProperty(value = "policyId")
    private String policyId;

    /*
     * Provider specific input for pairing.
     */
    @JsonProperty(value = "providerSpecificInput")
    private ReplicationProviderSpecificContainerMappingInput providerSpecificInput;

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

    /**
     * Get the targetProtectionContainerId property: The target unique protection container name.
     *
     * @return the targetProtectionContainerId value.
     */
    public String targetProtectionContainerId() {
        return this.targetProtectionContainerId;
    }

    /**
     * Set the targetProtectionContainerId property: The target unique protection container name.
     *
     * @param targetProtectionContainerId the targetProtectionContainerId value to set.
     * @return the CreateProtectionContainerMappingInputProperties object itself.
     */
    public CreateProtectionContainerMappingInputProperties withTargetProtectionContainerId(
        String targetProtectionContainerId) {
        this.targetProtectionContainerId = targetProtectionContainerId;
        return this;
    }

    /**
     * Get the policyId property: Applicable policy.
     *
     * @return the policyId value.
     */
    public String policyId() {
        return this.policyId;
    }

    /**
     * Set the policyId property: Applicable policy.
     *
     * @param policyId the policyId value to set.
     * @return the CreateProtectionContainerMappingInputProperties object itself.
     */
    public CreateProtectionContainerMappingInputProperties withPolicyId(String policyId) {
        this.policyId = policyId;
        return this;
    }

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

    /**
     * Set the providerSpecificInput property: Provider specific input for pairing.
     *
     * @param providerSpecificInput the providerSpecificInput value to set.
     * @return the CreateProtectionContainerMappingInputProperties object itself.
     */
    public CreateProtectionContainerMappingInputProperties withProviderSpecificInput(
        ReplicationProviderSpecificContainerMappingInput 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();
        }
    }
}
