// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservices.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Restore Settings of the vault. */
@Fluent
public final class RestoreSettings {
    /*
     * Settings for CrossSubscriptionRestore
     */
    @JsonProperty(value = "crossSubscriptionRestoreSettings")
    private CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings;

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

    /**
     * Get the crossSubscriptionRestoreSettings property: Settings for CrossSubscriptionRestore.
     *
     * @return the crossSubscriptionRestoreSettings value.
     */
    public CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings() {
        return this.crossSubscriptionRestoreSettings;
    }

    /**
     * Set the crossSubscriptionRestoreSettings property: Settings for CrossSubscriptionRestore.
     *
     * @param crossSubscriptionRestoreSettings the crossSubscriptionRestoreSettings value to set.
     * @return the RestoreSettings object itself.
     */
    public RestoreSettings withCrossSubscriptionRestoreSettings(
        CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings) {
        this.crossSubscriptionRestoreSettings = crossSubscriptionRestoreSettings;
        return this;
    }

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