All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.glue.outputs.CrawlerMongodbTarget Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.0
Show newest version
// *** 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.glue.outputs;

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

@CustomType
public final class CrawlerMongodbTarget {
    /**
     * @return The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
     * 
     */
    private String connectionName;
    /**
     * @return The path of the Amazon DocumentDB or MongoDB target (database/collection).
     * 
     */
    private String path;
    /**
     * @return Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. Default value is `true`.
     * 
     */
    private @Nullable Boolean scanAll;

    private CrawlerMongodbTarget() {}
    /**
     * @return The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
     * 
     */
    public String connectionName() {
        return this.connectionName;
    }
    /**
     * @return The path of the Amazon DocumentDB or MongoDB target (database/collection).
     * 
     */
    public String path() {
        return this.path;
    }
    /**
     * @return Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. Default value is `true`.
     * 
     */
    public Optional scanAll() {
        return Optional.ofNullable(this.scanAll);
    }

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

    public static Builder builder(CrawlerMongodbTarget defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String connectionName;
        private String path;
        private @Nullable Boolean scanAll;
        public Builder() {}
        public Builder(CrawlerMongodbTarget defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.connectionName = defaults.connectionName;
    	      this.path = defaults.path;
    	      this.scanAll = defaults.scanAll;
        }

        @CustomType.Setter
        public Builder connectionName(String connectionName) {
            if (connectionName == null) {
              throw new MissingRequiredPropertyException("CrawlerMongodbTarget", "connectionName");
            }
            this.connectionName = connectionName;
            return this;
        }
        @CustomType.Setter
        public Builder path(String path) {
            if (path == null) {
              throw new MissingRequiredPropertyException("CrawlerMongodbTarget", "path");
            }
            this.path = path;
            return this;
        }
        @CustomType.Setter
        public Builder scanAll(@Nullable Boolean scanAll) {

            this.scanAll = scanAll;
            return this;
        }
        public CrawlerMongodbTarget build() {
            final var _resultValue = new CrawlerMongodbTarget();
            _resultValue.connectionName = connectionName;
            _resultValue.path = path;
            _resultValue.scanAll = scanAll;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy