public final class InsertRequest extends WriteRequest
WriteRequest.Type| Constructor and Description | 
|---|
| InsertRequest(BsonDocument document)Construct an instance with the given document. | 
| Modifier and Type | Method and 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()
WriteRequestgetType in class WriteRequest