@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MongoDBTarget extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an Amazon DocumentDB or MongoDB data store to crawl.
Constructor and Description |
---|
MongoDBTarget() |
Modifier and Type | Method and Description |
---|---|
MongoDBTarget |
clone() |
boolean |
equals(Object obj) |
String |
getConnectionName()
The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
|
String |
getPath()
The path of the Amazon DocumentDB or MongoDB target (database/collection).
|
Boolean |
getScanAll()
Indicates whether to scan all the records, or to sample rows from the table.
|
int |
hashCode() |
Boolean |
isScanAll()
Indicates whether to scan all the records, or to sample rows from the table.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConnectionName(String connectionName)
The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
|
void |
setPath(String path)
The path of the Amazon DocumentDB or MongoDB target (database/collection).
|
void |
setScanAll(Boolean scanAll)
Indicates whether to scan all the records, or to sample rows from the table.
|
String |
toString()
Returns a string representation of this object.
|
MongoDBTarget |
withConnectionName(String connectionName)
The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
|
MongoDBTarget |
withPath(String path)
The path of the Amazon DocumentDB or MongoDB target (database/collection).
|
MongoDBTarget |
withScanAll(Boolean scanAll)
Indicates whether to scan all the records, or to sample rows from the table.
|
public void setConnectionName(String connectionName)
The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
connectionName
- The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.public String getConnectionName()
The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
public MongoDBTarget withConnectionName(String connectionName)
The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
connectionName
- The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.public void setPath(String path)
The path of the Amazon DocumentDB or MongoDB target (database/collection).
path
- The path of the Amazon DocumentDB or MongoDB target (database/collection).public String getPath()
The path of the Amazon DocumentDB or MongoDB target (database/collection).
public MongoDBTarget withPath(String path)
The path of the Amazon DocumentDB or MongoDB target (database/collection).
path
- The path of the Amazon DocumentDB or MongoDB target (database/collection).public void setScanAll(Boolean scanAll)
Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
A value of true
means to scan all records, while a value of false
means to sample the
records. If no value is specified, the value defaults to true
.
scanAll
- Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can
take a long time when the table is not a high throughput table.
A value of true
means to scan all records, while a value of false
means to
sample the records. If no value is specified, the value defaults to true
.
public Boolean getScanAll()
Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
A value of true
means to scan all records, while a value of false
means to sample the
records. If no value is specified, the value defaults to true
.
A value of true
means to scan all records, while a value of false
means to
sample the records. If no value is specified, the value defaults to true
.
public MongoDBTarget withScanAll(Boolean scanAll)
Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
A value of true
means to scan all records, while a value of false
means to sample the
records. If no value is specified, the value defaults to true
.
scanAll
- Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can
take a long time when the table is not a high throughput table.
A value of true
means to scan all records, while a value of false
means to
sample the records. If no value is specified, the value defaults to true
.
public Boolean isScanAll()
Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
A value of true
means to scan all records, while a value of false
means to sample the
records. If no value is specified, the value defaults to true
.
A value of true
means to scan all records, while a value of false
means to
sample the records. If no value is specified, the value defaults to true
.
public String toString()
toString
in class Object
Object.toString()
public MongoDBTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.