// *** 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 java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class CrawlerJdbcTarget {
    /**
     * @return The name of the connection to use to connect to the JDBC target.
     * 
     */
    private String connectionName;
    /**
     * @return Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata intable responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
     * 
     */
    private @Nullable List<String> enableAdditionalMetadatas;
    /**
     * @return A list of glob patterns used to exclude from the crawl.
     * 
     */
    private @Nullable List<String> exclusions;
    /**
     * @return The path of the JDBC target.
     * 
     */
    private String path;

    private CrawlerJdbcTarget() {}
    /**
     * @return The name of the connection to use to connect to the JDBC target.
     * 
     */
    public String connectionName() {
        return this.connectionName;
    }
    /**
     * @return Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata intable responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
     * 
     */
    public List<String> enableAdditionalMetadatas() {
        return this.enableAdditionalMetadatas == null ? List.of() : this.enableAdditionalMetadatas;
    }
    /**
     * @return A list of glob patterns used to exclude from the crawl.
     * 
     */
    public List<String> exclusions() {
        return this.exclusions == null ? List.of() : this.exclusions;
    }
    /**
     * @return The path of the JDBC target.
     * 
     */
    public String path() {
        return this.path;
    }

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

    public static Builder builder(CrawlerJdbcTarget defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String connectionName;
        private @Nullable List<String> enableAdditionalMetadatas;
        private @Nullable List<String> exclusions;
        private String path;
        public Builder() {}
        public Builder(CrawlerJdbcTarget defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.connectionName = defaults.connectionName;
    	      this.enableAdditionalMetadatas = defaults.enableAdditionalMetadatas;
    	      this.exclusions = defaults.exclusions;
    	      this.path = defaults.path;
        }

        @CustomType.Setter
        public Builder connectionName(String connectionName) {
            this.connectionName = Objects.requireNonNull(connectionName);
            return this;
        }
        @CustomType.Setter
        public Builder enableAdditionalMetadatas(@Nullable List<String> enableAdditionalMetadatas) {
            this.enableAdditionalMetadatas = enableAdditionalMetadatas;
            return this;
        }
        public Builder enableAdditionalMetadatas(String... enableAdditionalMetadatas) {
            return enableAdditionalMetadatas(List.of(enableAdditionalMetadatas));
        }
        @CustomType.Setter
        public Builder exclusions(@Nullable List<String> exclusions) {
            this.exclusions = exclusions;
            return this;
        }
        public Builder exclusions(String... exclusions) {
            return exclusions(List.of(exclusions));
        }
        @CustomType.Setter
        public Builder path(String path) {
            this.path = Objects.requireNonNull(path);
            return this;
        }
        public CrawlerJdbcTarget build() {
            final var o = new CrawlerJdbcTarget();
            o.connectionName = connectionName;
            o.enableAdditionalMetadatas = enableAdditionalMetadatas;
            o.exclusions = exclusions;
            o.path = path;
            return o;
        }
    }
}
