// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.quicksight.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DataSetDataSetUsageConfiguration {
    /**
     * @return Controls whether a child dataset of a direct query can use this dataset as a source.
     * 
     */
    private @Nullable Boolean disableUseAsDirectQuerySource;
    /**
     * @return Controls whether a child dataset that&#39;s stored in QuickSight can use this dataset as a source.
     * 
     */
    private @Nullable Boolean disableUseAsImportedSource;

    private DataSetDataSetUsageConfiguration() {}
    /**
     * @return Controls whether a child dataset of a direct query can use this dataset as a source.
     * 
     */
    public Optional<Boolean> disableUseAsDirectQuerySource() {
        return Optional.ofNullable(this.disableUseAsDirectQuerySource);
    }
    /**
     * @return Controls whether a child dataset that&#39;s stored in QuickSight can use this dataset as a source.
     * 
     */
    public Optional<Boolean> disableUseAsImportedSource() {
        return Optional.ofNullable(this.disableUseAsImportedSource);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(DataSetDataSetUsageConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean disableUseAsDirectQuerySource;
        private @Nullable Boolean disableUseAsImportedSource;
        public Builder() {}
        public Builder(DataSetDataSetUsageConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.disableUseAsDirectQuerySource = defaults.disableUseAsDirectQuerySource;
    	      this.disableUseAsImportedSource = defaults.disableUseAsImportedSource;
        }

        @CustomType.Setter
        public Builder disableUseAsDirectQuerySource(@Nullable Boolean disableUseAsDirectQuerySource) {
            this.disableUseAsDirectQuerySource = disableUseAsDirectQuerySource;
            return this;
        }
        @CustomType.Setter
        public Builder disableUseAsImportedSource(@Nullable Boolean disableUseAsImportedSource) {
            this.disableUseAsImportedSource = disableUseAsImportedSource;
            return this;
        }
        public DataSetDataSetUsageConfiguration build() {
            final var o = new DataSetDataSetUsageConfiguration();
            o.disableUseAsDirectQuerySource = disableUseAsDirectQuerySource;
            o.disableUseAsImportedSource = disableUseAsImportedSource;
            return o;
        }
    }
}
