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

package com.azure.resourcemanager.dataprotection.models;

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

/** Class containing feature settings of vault. */
@Fluent
public final class FeatureSettings {
    /*
     * CrossSubscriptionRestore Settings
     */
    @JsonProperty(value = "crossSubscriptionRestoreSettings")
    private CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings;

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

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

    /**
     * Set the crossSubscriptionRestoreSettings property: CrossSubscriptionRestore Settings.
     *
     * @param crossSubscriptionRestoreSettings the crossSubscriptionRestoreSettings value to set.
     * @return the FeatureSettings object itself.
     */
    public FeatureSettings 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();
        }
    }
}
