@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Crawler extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a crawler program that examines a data source and uses classifiers to try to determine its schema. If successful, the crawler records metatdata concerning the data source in the Data Catalog.
Constructor and Description |
---|
Crawler() |
Modifier and Type | Method and Description |
---|---|
Crawler |
clone() |
boolean |
equals(Object obj) |
List<String> |
getClassifiers()
A list of custom
Classifier s associated with this Crawler. |
Long |
getCrawlElapsedTime()
If this Crawler is running, contains the total time elapsed since the last crawl began.
|
Date |
getCreationTime()
The time when the Crawler was created.
|
String |
getDatabaseName()
The
Database where this Crawler's output should be stored. |
String |
getDescription()
A description of this Crawler and where it should be used.
|
LastCrawlInfo |
getLastCrawl()
The status of the last crawl, and potentially error information if an error occurred.
|
Date |
getLastUpdated()
The time the Crawler was last updated.
|
String |
getName()
The
Crawler name. |
String |
getRole()
The IAM role (or ARN of an IAM role) used to access customer resources such as data in S3.
|
Schedule |
getSchedule()
A
Schedule object that specifies the schedule on which this Crawler is to be run. |
SchemaChangePolicy |
getSchemaChangePolicy()
Sets policy for the crawler's update and delete behavior.
|
String |
getState()
Indicates whether this Crawler is running, or whether a run is pending.
|
String |
getTablePrefix()
The table prefix used for catalog tables created.
|
CrawlerTargets |
getTargets()
A collection of targets to crawl.
|
Long |
getVersion()
The version of the Crawler.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setClassifiers(Collection<String> classifiers)
A list of custom
Classifier s associated with this Crawler. |
void |
setCrawlElapsedTime(Long crawlElapsedTime)
If this Crawler is running, contains the total time elapsed since the last crawl began.
|
void |
setCreationTime(Date creationTime)
The time when the Crawler was created.
|
void |
setDatabaseName(String databaseName)
The
Database where this Crawler's output should be stored. |
void |
setDescription(String description)
A description of this Crawler and where it should be used.
|
void |
setLastCrawl(LastCrawlInfo lastCrawl)
The status of the last crawl, and potentially error information if an error occurred.
|
void |
setLastUpdated(Date lastUpdated)
The time the Crawler was last updated.
|
void |
setName(String name)
The
Crawler name. |
void |
setRole(String role)
The IAM role (or ARN of an IAM role) used to access customer resources such as data in S3.
|
void |
setSchedule(Schedule schedule)
A
Schedule object that specifies the schedule on which this Crawler is to be run. |
void |
setSchemaChangePolicy(SchemaChangePolicy schemaChangePolicy)
Sets policy for the crawler's update and delete behavior.
|
void |
setState(String state)
Indicates whether this Crawler is running, or whether a run is pending.
|
void |
setTablePrefix(String tablePrefix)
The table prefix used for catalog tables created.
|
void |
setTargets(CrawlerTargets targets)
A collection of targets to crawl.
|
void |
setVersion(Long version)
The version of the Crawler.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Crawler |
withClassifiers(Collection<String> classifiers)
A list of custom
Classifier s associated with this Crawler. |
Crawler |
withClassifiers(String... classifiers)
A list of custom
Classifier s associated with this Crawler. |
Crawler |
withCrawlElapsedTime(Long crawlElapsedTime)
If this Crawler is running, contains the total time elapsed since the last crawl began.
|
Crawler |
withCreationTime(Date creationTime)
The time when the Crawler was created.
|
Crawler |
withDatabaseName(String databaseName)
The
Database where this Crawler's output should be stored. |
Crawler |
withDescription(String description)
A description of this Crawler and where it should be used.
|
Crawler |
withLastCrawl(LastCrawlInfo lastCrawl)
The status of the last crawl, and potentially error information if an error occurred.
|
Crawler |
withLastUpdated(Date lastUpdated)
The time the Crawler was last updated.
|
Crawler |
withName(String name)
The
Crawler name. |
Crawler |
withRole(String role)
The IAM role (or ARN of an IAM role) used to access customer resources such as data in S3.
|
Crawler |
withSchedule(Schedule schedule)
A
Schedule object that specifies the schedule on which this Crawler is to be run. |
Crawler |
withSchemaChangePolicy(SchemaChangePolicy schemaChangePolicy)
Sets policy for the crawler's update and delete behavior.
|
Crawler |
withState(CrawlerState state)
Indicates whether this Crawler is running, or whether a run is pending.
|
Crawler |
withState(String state)
Indicates whether this Crawler is running, or whether a run is pending.
|
Crawler |
withTablePrefix(String tablePrefix)
The table prefix used for catalog tables created.
|
Crawler |
withTargets(CrawlerTargets targets)
A collection of targets to crawl.
|
Crawler |
withVersion(Long version)
The version of the Crawler.
|
public void setName(String name)
The Crawler
name.
name
- The Crawler
name.public String getName()
The Crawler
name.
Crawler
name.public Crawler withName(String name)
The Crawler
name.
name
- The Crawler
name.public void setRole(String role)
The IAM role (or ARN of an IAM role) used to access customer resources such as data in S3.
role
- The IAM role (or ARN of an IAM role) used to access customer resources such as data in S3.public String getRole()
The IAM role (or ARN of an IAM role) used to access customer resources such as data in S3.
public Crawler withRole(String role)
The IAM role (or ARN of an IAM role) used to access customer resources such as data in S3.
role
- The IAM role (or ARN of an IAM role) used to access customer resources such as data in S3.public void setTargets(CrawlerTargets targets)
A collection of targets to crawl.
targets
- A collection of targets to crawl.public CrawlerTargets getTargets()
A collection of targets to crawl.
public Crawler withTargets(CrawlerTargets targets)
A collection of targets to crawl.
targets
- A collection of targets to crawl.public void setDatabaseName(String databaseName)
The Database
where this Crawler's output should be stored.
databaseName
- The Database
where this Crawler's output should be stored.public String getDatabaseName()
The Database
where this Crawler's output should be stored.
Database
where this Crawler's output should be stored.public Crawler withDatabaseName(String databaseName)
The Database
where this Crawler's output should be stored.
databaseName
- The Database
where this Crawler's output should be stored.public void setDescription(String description)
A description of this Crawler and where it should be used.
description
- A description of this Crawler and where it should be used.public String getDescription()
A description of this Crawler and where it should be used.
public Crawler withDescription(String description)
A description of this Crawler and where it should be used.
description
- A description of this Crawler and where it should be used.public List<String> getClassifiers()
A list of custom Classifier
s associated with this Crawler.
Classifier
s associated with this Crawler.public void setClassifiers(Collection<String> classifiers)
A list of custom Classifier
s associated with this Crawler.
classifiers
- A list of custom Classifier
s associated with this Crawler.public Crawler withClassifiers(String... classifiers)
A list of custom Classifier
s associated with this Crawler.
NOTE: This method appends the values to the existing list (if any). Use
setClassifiers(java.util.Collection)
or withClassifiers(java.util.Collection)
if you want to
override the existing values.
classifiers
- A list of custom Classifier
s associated with this Crawler.public Crawler withClassifiers(Collection<String> classifiers)
A list of custom Classifier
s associated with this Crawler.
classifiers
- A list of custom Classifier
s associated with this Crawler.public void setSchemaChangePolicy(SchemaChangePolicy schemaChangePolicy)
Sets policy for the crawler's update and delete behavior.
schemaChangePolicy
- Sets policy for the crawler's update and delete behavior.public SchemaChangePolicy getSchemaChangePolicy()
Sets policy for the crawler's update and delete behavior.
public Crawler withSchemaChangePolicy(SchemaChangePolicy schemaChangePolicy)
Sets policy for the crawler's update and delete behavior.
schemaChangePolicy
- Sets policy for the crawler's update and delete behavior.public void setState(String state)
Indicates whether this Crawler is running, or whether a run is pending.
state
- Indicates whether this Crawler is running, or whether a run is pending.CrawlerState
public String getState()
Indicates whether this Crawler is running, or whether a run is pending.
CrawlerState
public Crawler withState(String state)
Indicates whether this Crawler is running, or whether a run is pending.
state
- Indicates whether this Crawler is running, or whether a run is pending.CrawlerState
public Crawler withState(CrawlerState state)
Indicates whether this Crawler is running, or whether a run is pending.
state
- Indicates whether this Crawler is running, or whether a run is pending.CrawlerState
public void setTablePrefix(String tablePrefix)
The table prefix used for catalog tables created.
tablePrefix
- The table prefix used for catalog tables created.public String getTablePrefix()
The table prefix used for catalog tables created.
public Crawler withTablePrefix(String tablePrefix)
The table prefix used for catalog tables created.
tablePrefix
- The table prefix used for catalog tables created.public void setSchedule(Schedule schedule)
A Schedule
object that specifies the schedule on which this Crawler is to be run.
schedule
- A Schedule
object that specifies the schedule on which this Crawler is to be run.public Schedule getSchedule()
A Schedule
object that specifies the schedule on which this Crawler is to be run.
Schedule
object that specifies the schedule on which this Crawler is to be run.public Crawler withSchedule(Schedule schedule)
A Schedule
object that specifies the schedule on which this Crawler is to be run.
schedule
- A Schedule
object that specifies the schedule on which this Crawler is to be run.public void setCrawlElapsedTime(Long crawlElapsedTime)
If this Crawler is running, contains the total time elapsed since the last crawl began.
crawlElapsedTime
- If this Crawler is running, contains the total time elapsed since the last crawl began.public Long getCrawlElapsedTime()
If this Crawler is running, contains the total time elapsed since the last crawl began.
public Crawler withCrawlElapsedTime(Long crawlElapsedTime)
If this Crawler is running, contains the total time elapsed since the last crawl began.
crawlElapsedTime
- If this Crawler is running, contains the total time elapsed since the last crawl began.public void setCreationTime(Date creationTime)
The time when the Crawler was created.
creationTime
- The time when the Crawler was created.public Date getCreationTime()
The time when the Crawler was created.
public Crawler withCreationTime(Date creationTime)
The time when the Crawler was created.
creationTime
- The time when the Crawler was created.public void setLastUpdated(Date lastUpdated)
The time the Crawler was last updated.
lastUpdated
- The time the Crawler was last updated.public Date getLastUpdated()
The time the Crawler was last updated.
public Crawler withLastUpdated(Date lastUpdated)
The time the Crawler was last updated.
lastUpdated
- The time the Crawler was last updated.public void setLastCrawl(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.public LastCrawlInfo getLastCrawl()
The status of the last crawl, and potentially error information if an error occurred.
public Crawler withLastCrawl(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.public void setVersion(Long version)
The version of the Crawler.
version
- The version of the Crawler.public Long getVersion()
The version of the Crawler.
public Crawler withVersion(Long version)
The version of the Crawler.
version
- The version of the Crawler.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.