public static interface Crawler.Builder extends CopyableBuilder<Crawler.Builder,Crawler>
Modifier and Type | Method and Description |
---|---|
Crawler.Builder |
classifiers(Collection<String> classifiers)
A list of custom classifiers associated with the crawler.
|
Crawler.Builder |
classifiers(String... classifiers)
A list of custom classifiers associated with the crawler.
|
Crawler.Builder |
configuration(String configuration)
Crawler configuration information.
|
Crawler.Builder |
crawlElapsedTime(Long crawlElapsedTime)
If the crawler is running, contains the total time elapsed since the last crawl began.
|
Crawler.Builder |
creationTime(Instant creationTime)
The time when the crawler was created.
|
Crawler.Builder |
databaseName(String databaseName)
The database where metadata is written by this crawler.
|
Crawler.Builder |
description(String description)
A description of the crawler.
|
default Crawler.Builder |
lastCrawl(Consumer<LastCrawlInfo.Builder> lastCrawl)
The status of the last crawl, and potentially error information if an error occurred.
|
Crawler.Builder |
lastCrawl(LastCrawlInfo lastCrawl)
The status of the last crawl, and potentially error information if an error occurred.
|
Crawler.Builder |
lastUpdated(Instant lastUpdated)
The time the crawler was last updated.
|
Crawler.Builder |
name(String name)
The crawler name.
|
Crawler.Builder |
role(String role)
The IAM role (or ARN of an IAM role) used to access customer resources, such as data in Amazon S3.
|
default Crawler.Builder |
schedule(Consumer<Schedule.Builder> schedule)
For scheduled crawlers, the schedule when the crawler runs.
|
Crawler.Builder |
schedule(Schedule schedule)
For scheduled crawlers, the schedule when the crawler runs.
|
default Crawler.Builder |
schemaChangePolicy(Consumer<SchemaChangePolicy.Builder> schemaChangePolicy)
Sets the behavior when the crawler finds a changed or deleted object.
|
Crawler.Builder |
schemaChangePolicy(SchemaChangePolicy schemaChangePolicy)
Sets the behavior when the crawler finds a changed or deleted object.
|
Crawler.Builder |
state(CrawlerState state)
Indicates whether the crawler is running, or whether a run is pending.
|
Crawler.Builder |
state(String state)
Indicates whether the crawler is running, or whether a run is pending.
|
Crawler.Builder |
tablePrefix(String tablePrefix)
The prefix added to the names of tables that are created.
|
default Crawler.Builder |
targets(Consumer<CrawlerTargets.Builder> targets)
A collection of targets to crawl.
|
Crawler.Builder |
targets(CrawlerTargets targets)
A collection of targets to crawl.
|
Crawler.Builder |
version(Long version)
The version of the crawler.
|
copy
applyMutation, build
Crawler.Builder name(String name)
The crawler name.
name
- The crawler name.Crawler.Builder role(String role)
The IAM role (or ARN of an IAM role) used to access customer resources, such as data in Amazon S3.
role
- The IAM role (or ARN of an IAM role) used to access customer resources, such as data in Amazon S3.Crawler.Builder targets(CrawlerTargets targets)
A collection of targets to crawl.
targets
- A collection of targets to crawl.default Crawler.Builder targets(Consumer<CrawlerTargets.Builder> targets)
A collection of targets to crawl.
This is a convenience that creates an instance of theCrawlerTargets.Builder
avoiding the need to
create one manually via CrawlerTargets.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to targets(CrawlerTargets)
.targets
- a consumer that will call methods on CrawlerTargets.Builder
targets(CrawlerTargets)
Crawler.Builder databaseName(String databaseName)
The database where metadata is written by this crawler.
databaseName
- The database where metadata is written by this crawler.Crawler.Builder description(String description)
A description of the crawler.
description
- A description of the crawler.Crawler.Builder classifiers(Collection<String> classifiers)
A list of custom classifiers associated with the crawler.
classifiers
- A list of custom classifiers associated with the crawler.Crawler.Builder classifiers(String... classifiers)
A list of custom classifiers associated with the crawler.
classifiers
- A list of custom classifiers associated with the crawler.Crawler.Builder schemaChangePolicy(SchemaChangePolicy schemaChangePolicy)
Sets the behavior when the crawler finds a changed or deleted object.
schemaChangePolicy
- Sets the behavior when the crawler finds a changed or deleted object.default Crawler.Builder schemaChangePolicy(Consumer<SchemaChangePolicy.Builder> schemaChangePolicy)
Sets the behavior when the crawler finds a changed or deleted object.
This is a convenience that creates an instance of theSchemaChangePolicy.Builder
avoiding the need to
create one manually via SchemaChangePolicy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to schemaChangePolicy(SchemaChangePolicy)
.schemaChangePolicy
- a consumer that will call methods on SchemaChangePolicy.Builder
schemaChangePolicy(SchemaChangePolicy)
Crawler.Builder state(String state)
Indicates whether the crawler is running, or whether a run is pending.
state
- Indicates whether the crawler is running, or whether a run is pending.CrawlerState
,
CrawlerState
Crawler.Builder state(CrawlerState state)
Indicates whether the crawler is running, or whether a run is pending.
state
- Indicates whether the crawler is running, or whether a run is pending.CrawlerState
,
CrawlerState
Crawler.Builder tablePrefix(String tablePrefix)
The prefix added to the names of tables that are created.
tablePrefix
- The prefix added to the names of tables that are created.Crawler.Builder schedule(Schedule schedule)
For scheduled crawlers, the schedule when the crawler runs.
schedule
- For scheduled crawlers, the schedule when the crawler runs.default Crawler.Builder schedule(Consumer<Schedule.Builder> schedule)
For scheduled crawlers, the schedule when the crawler runs.
This is a convenience that creates an instance of theSchedule.Builder
avoiding the need to create
one manually via Schedule.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to schedule(Schedule)
.schedule
- a consumer that will call methods on Schedule.Builder
schedule(Schedule)
Crawler.Builder crawlElapsedTime(Long crawlElapsedTime)
If the crawler is running, contains the total time elapsed since the last crawl began.
crawlElapsedTime
- If the crawler is running, contains the total time elapsed since the last crawl began.Crawler.Builder creationTime(Instant creationTime)
The time when the crawler was created.
creationTime
- The time when the crawler was created.Crawler.Builder lastUpdated(Instant lastUpdated)
The time the crawler was last updated.
lastUpdated
- The time the crawler was last updated.Crawler.Builder lastCrawl(LastCrawlInfo lastCrawl)
The status of the last crawl, and potentially error information if an error occurred.
lastCrawl
- The status of the last crawl, and potentially error information if an error occurred.default Crawler.Builder lastCrawl(Consumer<LastCrawlInfo.Builder> lastCrawl)
The status of the last crawl, and potentially error information if an error occurred.
This is a convenience that creates an instance of theLastCrawlInfo.Builder
avoiding the need to
create one manually via LastCrawlInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to lastCrawl(LastCrawlInfo)
.lastCrawl
- a consumer that will call methods on LastCrawlInfo.Builder
lastCrawl(LastCrawlInfo)
Crawler.Builder version(Long version)
The version of the crawler.
version
- The version of the crawler.Crawler.Builder configuration(String configuration)
Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior.
You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior:
configuration
- Crawler configuration information. This versioned JSON string allows users to specify aspects of a
Crawler's behavior.
You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior:
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.