Package com.atlan.model.packages
Class RedshiftCrawler.RedshiftCrawlerBuilder<C extends RedshiftCrawler,B extends RedshiftCrawler.RedshiftCrawlerBuilder<C,B>>
java.lang.Object
com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder<C,B>
com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder<C,B>
com.atlan.model.packages.RedshiftCrawler.RedshiftCrawlerBuilder<C,B>
- Enclosing class:
- RedshiftCrawler
public abstract static class RedshiftCrawler.RedshiftCrawlerBuilder<C extends RedshiftCrawler,B extends RedshiftCrawler.RedshiftCrawlerBuilder<C,B>>
extends AbstractCrawler.AbstractCrawlerBuilder<C,B>
-
Field Summary
Fields inherited from class com.atlan.model.packages.AbstractCrawler.AbstractCrawlerBuilder
client, connection, localCreds
Fields inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
epoch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected B
$fillValuesFrom
(C instance) Set up the crawler to use basic authentication.abstract C
build()
crossConnection
(boolean enabled) Whether to search for lineage across all available connections on Atlan (true) or only the selected connection.Set up the crawler to extract directly from Redshift.Defines a regular expression to use for excluding assets when crawling.Defines the filter for assets to exclude when crawling.iamUserAuth
(String username, String accessKey, String secretKey) Set up the crawler to use IAM user-based authentication.Defines the filter for assets to include when crawling.protected B
metadata()
Set all the metadata for the package (labels, annotations, etc).protected abstract B
self()
toString()
Methods inherited from class com.atlan.model.packages.AbstractPackage.AbstractPackageBuilder
_annotation, _annotations, _credential, _label, _labels, _name, _parameter, _parameters, _prefix, _runName, clear_annotations, clear_labels, clear_parameters
-
Constructor Details
-
RedshiftCrawlerBuilder
public RedshiftCrawlerBuilder()
-
-
Method Details
-
direct
Set up the crawler to extract directly from Redshift.- Parameters:
hostname
- of Redshiftdatabase
- to extractserverless
- if true, use a serverless configuration otherwise use a provisioned configuration- Returns:
- the builder, set up to extract directly from Redshift
-
basicAuth
Set up the crawler to use basic authentication.- Parameters:
username
- through which to access Redshiftpassword
- through which to access Redshift- Returns:
- the builder, set up to use basic authentication
-
iamUserAuth
Set up the crawler to use IAM user-based authentication.- Parameters:
username
- for the IAM useraccessKey
- through which to access RedshiftsecretKey
- through which to access Redshift- Returns:
- the builder, set up to use IAM user-based authentication
-
crossConnection
Whether to search for lineage across all available connections on Atlan (true) or only the selected connection.- Parameters:
enabled
- if true, searches for lineage across all available connections in Atlan- Returns:
- the builder, set up to consider cross-connection lineage (or not)
-
include
Defines the filter for assets to include when crawling.- Parameters:
assets
- map keyed by database name with each value being a list of schemas- Returns:
- the builder, set to include only those assets specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
exclude
Defines the filter for assets to exclude when crawling.- Parameters:
assets
- map keyed by database name with each value being a list of schemas- Returns:
- the builder, set to exclude only those assets specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
exclude
Defines a regular expression to use for excluding assets when crawling.- Parameters:
regex
- any asset names that match this regular expression will be excluded from crawling- Returns:
- the builder, set to exclude any assets that match the provided regular expression
-
metadata
Set all the metadata for the package (labels, annotations, etc).- Specified by:
metadata
in classAbstractPackage.AbstractPackageBuilder<C extends RedshiftCrawler,
B extends RedshiftCrawler.RedshiftCrawlerBuilder<C, B>> - Returns:
- the builder, with metadata set
-
$fillValuesFrom
- Overrides:
$fillValuesFrom
in classAbstractCrawler.AbstractCrawlerBuilder<C extends RedshiftCrawler,
B extends RedshiftCrawler.RedshiftCrawlerBuilder<C, B>>
-
self
- Specified by:
self
in classAbstractCrawler.AbstractCrawlerBuilder<C extends RedshiftCrawler,
B extends RedshiftCrawler.RedshiftCrawlerBuilder<C, B>>
-
build
- Specified by:
build
in classAbstractCrawler.AbstractCrawlerBuilder<C extends RedshiftCrawler,
B extends RedshiftCrawler.RedshiftCrawlerBuilder<C, B>>
-
toString
- Overrides:
toString
in classAbstractCrawler.AbstractCrawlerBuilder<C extends RedshiftCrawler,
B extends RedshiftCrawler.RedshiftCrawlerBuilder<C, B>>
-