@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DirectSchemaChangePolicy extends Object implements Serializable, Cloneable, StructuredPojo
A policy that specifies update behavior for the crawler.
Constructor and Description |
---|
DirectSchemaChangePolicy() |
Modifier and Type | Method and Description |
---|---|
DirectSchemaChangePolicy |
clone() |
boolean |
equals(Object obj) |
String |
getDatabase()
Specifies the database that the schema change policy applies to.
|
Boolean |
getEnableUpdateCatalog()
Whether to use the specified update behavior when the crawler finds a changed schema.
|
String |
getTable()
Specifies the table in the database that the schema change policy applies to.
|
String |
getUpdateBehavior()
The update behavior when the crawler finds a changed schema.
|
int |
hashCode() |
Boolean |
isEnableUpdateCatalog()
Whether to use the specified update behavior when the crawler finds a changed schema.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDatabase(String database)
Specifies the database that the schema change policy applies to.
|
void |
setEnableUpdateCatalog(Boolean enableUpdateCatalog)
Whether to use the specified update behavior when the crawler finds a changed schema.
|
void |
setTable(String table)
Specifies the table in the database that the schema change policy applies to.
|
void |
setUpdateBehavior(String updateBehavior)
The update behavior when the crawler finds a changed schema.
|
String |
toString()
Returns a string representation of this object.
|
DirectSchemaChangePolicy |
withDatabase(String database)
Specifies the database that the schema change policy applies to.
|
DirectSchemaChangePolicy |
withEnableUpdateCatalog(Boolean enableUpdateCatalog)
Whether to use the specified update behavior when the crawler finds a changed schema.
|
DirectSchemaChangePolicy |
withTable(String table)
Specifies the table in the database that the schema change policy applies to.
|
DirectSchemaChangePolicy |
withUpdateBehavior(String updateBehavior)
The update behavior when the crawler finds a changed schema.
|
DirectSchemaChangePolicy |
withUpdateBehavior(UpdateCatalogBehavior updateBehavior)
The update behavior when the crawler finds a changed schema.
|
public void setEnableUpdateCatalog(Boolean enableUpdateCatalog)
Whether to use the specified update behavior when the crawler finds a changed schema.
enableUpdateCatalog
- Whether to use the specified update behavior when the crawler finds a changed schema.public Boolean getEnableUpdateCatalog()
Whether to use the specified update behavior when the crawler finds a changed schema.
public DirectSchemaChangePolicy withEnableUpdateCatalog(Boolean enableUpdateCatalog)
Whether to use the specified update behavior when the crawler finds a changed schema.
enableUpdateCatalog
- Whether to use the specified update behavior when the crawler finds a changed schema.public Boolean isEnableUpdateCatalog()
Whether to use the specified update behavior when the crawler finds a changed schema.
public void setUpdateBehavior(String updateBehavior)
The update behavior when the crawler finds a changed schema.
updateBehavior
- The update behavior when the crawler finds a changed schema.UpdateCatalogBehavior
public String getUpdateBehavior()
The update behavior when the crawler finds a changed schema.
UpdateCatalogBehavior
public DirectSchemaChangePolicy withUpdateBehavior(String updateBehavior)
The update behavior when the crawler finds a changed schema.
updateBehavior
- The update behavior when the crawler finds a changed schema.UpdateCatalogBehavior
public DirectSchemaChangePolicy withUpdateBehavior(UpdateCatalogBehavior updateBehavior)
The update behavior when the crawler finds a changed schema.
updateBehavior
- The update behavior when the crawler finds a changed schema.UpdateCatalogBehavior
public void setTable(String table)
Specifies the table in the database that the schema change policy applies to.
table
- Specifies the table in the database that the schema change policy applies to.public String getTable()
Specifies the table in the database that the schema change policy applies to.
public DirectSchemaChangePolicy withTable(String table)
Specifies the table in the database that the schema change policy applies to.
table
- Specifies the table in the database that the schema change policy applies to.public void setDatabase(String database)
Specifies the database that the schema change policy applies to.
database
- Specifies the database that the schema change policy applies to.public String getDatabase()
Specifies the database that the schema change policy applies to.
public DirectSchemaChangePolicy withDatabase(String database)
Specifies the database that the schema change policy applies to.
database
- Specifies the database that the schema change policy applies to.public String toString()
toString
in class Object
Object.toString()
public DirectSchemaChangePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.