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

/** Policy update properties. */
@Fluent
public final class UpdatePolicyInputProperties {
    /*
     * The ReplicationProviderSettings.
     */
    @JsonProperty(value = "replicationProviderSettings")
    private PolicyProviderSpecificInput replicationProviderSettings;

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

    /**
     * Get the replicationProviderSettings property: The ReplicationProviderSettings.
     *
     * @return the replicationProviderSettings value.
     */
    public PolicyProviderSpecificInput replicationProviderSettings() {
        return this.replicationProviderSettings;
    }

    /**
     * Set the replicationProviderSettings property: The ReplicationProviderSettings.
     *
     * @param replicationProviderSettings the replicationProviderSettings value to set.
     * @return the UpdatePolicyInputProperties object itself.
     */
    public UpdatePolicyInputProperties withReplicationProviderSettings(
        PolicyProviderSpecificInput replicationProviderSettings) {
        this.replicationProviderSettings = replicationProviderSettings;
        return this;
    }

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