public final class InsertRequest extends WriteRequest
WriteRequest.Type
Constructor | Description |
---|---|
InsertRequest(BsonDocument document) |
Construct an instance with the given document.
|
Modifier and Type | Method | Description |
---|---|---|
BsonDocument |
getDocument() |
Gets the document to insert.
|
WriteRequest.Type |
getType() |
Gets the type of the write.
|
public InsertRequest(BsonDocument document)
document
- the document, which may not be nullpublic BsonDocument getDocument()
public WriteRequest.Type getType()
WriteRequest
getType
in class WriteRequest