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

package com.azure.resourcemanager.databox.models;

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

/**
 * Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType
 * is given as TransferAll.
 */
@Fluent
public final class TransferConfigurationTransferAllDetails {
    /*
     * Details to transfer all data.
     */
    @JsonProperty(value = "include")
    private TransferAllDetails include;

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

    /**
     * Get the include property: Details to transfer all data.
     *
     * @return the include value.
     */
    public TransferAllDetails include() {
        return this.include;
    }

    /**
     * Set the include property: Details to transfer all data.
     *
     * @param include the include value to set.
     * @return the TransferConfigurationTransferAllDetails object itself.
     */
    public TransferConfigurationTransferAllDetails withInclude(TransferAllDetails include) {
        this.include = include;
        return this;
    }

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