// 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 filter. This field is required only if the TransferConfigurationType is given
 * as TransferUsingFilter.
 */
@Fluent
public final class TransferConfigurationTransferFilterDetails {
    /*
     * Details of the filtering the transfer of data.
     */
    @JsonProperty(value = "include")
    private TransferFilterDetails include;

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

    /**
     * Get the include property: Details of the filtering the transfer of data.
     *
     * @return the include value.
     */
    public TransferFilterDetails include() {
        return this.include;
    }

    /**
     * Set the include property: Details of the filtering the transfer of data.
     *
     * @param include the include value to set.
     * @return the TransferConfigurationTransferFilterDetails object itself.
     */
    public TransferConfigurationTransferFilterDetails withInclude(TransferFilterDetails 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();
        }
    }
}
