Package com.atlan.model.packages
Class SigmaCrawler.SigmaCrawlerBuilder<C extends SigmaCrawler,B extends SigmaCrawler.SigmaCrawlerBuilder<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.SigmaCrawler.SigmaCrawlerBuilder<C,B>
- Enclosing class:
- SigmaCrawler
public abstract static class SigmaCrawler.SigmaCrawlerBuilder<C extends SigmaCrawler,B extends SigmaCrawler.SigmaCrawlerBuilder<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 API token-based authentication.abstract C
build()
Set up the crawler to directly extract from Sigma.Defines the filter for assets to exclude when crawling.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
-
SigmaCrawlerBuilder
public SigmaCrawlerBuilder()
-
-
Method Details
-
direct
Set up the crawler to directly extract from Sigma.- Parameters:
hostname
- of the Sigma host, for example aws-api.sigmacomputing.com- Returns:
- the builder, set up to extract directly from Sigma
-
apiToken
Set up the crawler to use API token-based authentication.- Parameters:
clientId
- through which to access SigmaapiToken
- through which to access Sigma- Returns:
- the builder, set up to use API token-based authentication
-
include
Defines the filter for assets to include when crawling.- Parameters:
workbooks
- the GUIDs of workbooks to include when crawling- Returns:
- the builder, set to include only those workbooks specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
exclude
Defines the filter for assets to exclude when crawling.- Parameters:
workbooks
- the GUIDs of workbooks to exclude when crawling- Returns:
- the builder, set to exclude only those workbooks specified
- Throws:
InvalidRequestException
- in the unlikely event the provided filter cannot be translated
-
metadata
Set all the metadata for the package (labels, annotations, etc).- Specified by:
metadata
in classAbstractPackage.AbstractPackageBuilder<C extends SigmaCrawler,
B extends SigmaCrawler.SigmaCrawlerBuilder<C, B>> - Returns:
- the builder, with metadata set
-
$fillValuesFrom
- Overrides:
$fillValuesFrom
in classAbstractCrawler.AbstractCrawlerBuilder<C extends SigmaCrawler,
B extends SigmaCrawler.SigmaCrawlerBuilder<C, B>>
-
self
- Specified by:
self
in classAbstractCrawler.AbstractCrawlerBuilder<C extends SigmaCrawler,
B extends SigmaCrawler.SigmaCrawlerBuilder<C, B>>
-
build
- Specified by:
build
in classAbstractCrawler.AbstractCrawlerBuilder<C extends SigmaCrawler,
B extends SigmaCrawler.SigmaCrawlerBuilder<C, B>>
-
toString
- Overrides:
toString
in classAbstractCrawler.AbstractCrawlerBuilder<C extends SigmaCrawler,
B extends SigmaCrawler.SigmaCrawlerBuilder<C, B>>
-