public static interface Document.MapBuilder
| Modifier and Type | Method and Description | 
|---|---|
Document | 
build()
Creates a new  
Document with the key value pair pair inserted using put  method. | 
Document.MapBuilder | 
putBoolean(String key,
          boolean booleanValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given boolean. 
 | 
Document.MapBuilder | 
putDocument(String key,
           Document document)
Inserts a Key Value pair to a Document Map with String key and the given Document. 
 | 
Document.MapBuilder | 
putList(String key,
       Consumer<Document.ListBuilder> listBuilderConsumer)
Inserts a Key Value pair to a Document Map with String key and value constructed from Consumer of
  
Document.ListBuilder. | 
Document.MapBuilder | 
putList(String key,
       List<Document> documentList)
Inserts a Key Value pair to a Document Map with String key and value as List of Document. 
 | 
Document.MapBuilder | 
putMap(String key,
      Consumer<Document.MapBuilder> mapBuilderConsumer)
Inserts a Key Value pair to a Document Map with String key and value constructed from Consumer of
  
Document.MapBuilder. | 
Document.MapBuilder | 
putMap(String key,
      Map<String,Document> documentMap)
Inserts a Key Value pair to a Document Map with String key and Document constructed from Document Map. 
 | 
Document.MapBuilder | 
putNull(String key)
Inserts a Key Value pair to a Document Map with String key and value with Null Document. 
 | 
Document.MapBuilder | 
putNumber(String key,
         BigDecimal numberValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given BigDecimal. 
 | 
Document.MapBuilder | 
putNumber(String key,
         BigInteger numberValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given BigInteger. 
 | 
Document.MapBuilder | 
putNumber(String key,
         double numberValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given double. 
 | 
Document.MapBuilder | 
putNumber(String key,
         float numberValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given float. 
 | 
Document.MapBuilder | 
putNumber(String key,
         int numberValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given integer. 
 | 
Document.MapBuilder | 
putNumber(String key,
         long numberValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given long. 
 | 
Document.MapBuilder | 
putNumber(String key,
         SdkNumber numberValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given Number. 
 | 
Document.MapBuilder | 
putNumber(String key,
         String numberValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given String. 
 | 
Document.MapBuilder | 
putString(String key,
         String stringValue)
Inserts a Key Value pair to a Document Map with String key and a Document created from the given String. 
 | 
Document.MapBuilder putString(String key, String stringValue)
key - Map Key for the Document.stringValue - String value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putNumber(String key, SdkNumber numberValue)
key - Map Key for the Document.numberValue - Number value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putNumber(String key, int numberValue)
key - Map Key for the Document.numberValue - Integer value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putNumber(String key, long numberValue)
key - Map Key for the Document.numberValue - long value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putNumber(String key, double numberValue)
key - Map Key for the Document.numberValue - double value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putNumber(String key, float numberValue)
key - Map Key for the Document.numberValue - float value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putNumber(String key, BigDecimal numberValue)
key - Map Key for the Document.numberValue - BigDecimal value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putNumber(String key, BigInteger numberValue)
key - Map Key for the Document.numberValue - BigInteger value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putNumber(String key, String numberValue)
key - Map Key for the Document.numberValue - String value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putBoolean(String key, boolean booleanValue)
key - Map Key for the Document.booleanValue - Boolean value which will be used to create a Document to be inserted in a DocumentMap.Document.MapBuilder putDocument(String key, Document document)
key - Map Key for the Document.document - Document to be inserted in a DocumentMap.Document.MapBuilder putNull(String key)
key - Map Key for the Document.Document.MapBuilder putList(String key, List<Document> documentList)
key - Map Key for the Document.documentList - List of Documents.Document.MapBuilder putList(String key, Consumer<Document.ListBuilder> listBuilderConsumer)
Document.ListBuilder.key - Map Key for the Document.listBuilderConsumer - Consumer that accepts Document.ListBuilderDocument.MapBuilder putMap(String key, Map<String,Document> documentMap)
key - Map Key for the Document.documentMap - Map of Document.Document.MapBuilder putMap(String key, Consumer<Document.MapBuilder> mapBuilderConsumer)
Document.MapBuilder.key - Map Key for the Document.mapBuilderConsumer - Consumer that accepts Document.ListBuilderCopyright © 2023. All rights reserved.