Class MapDocument.MapBuilderInternal
- java.lang.Object
-
- software.amazon.awssdk.core.document.internal.MapDocument.MapBuilderInternal
-
- All Implemented Interfaces:
Document.MapBuilder
- Enclosing class:
- MapDocument
public static class MapDocument.MapBuilderInternal extends Object implements Document.MapBuilder
-
-
Constructor Summary
Constructors Constructor Description MapBuilderInternal()
-
Method Summary
-
-
-
Method Detail
-
putString
public Document.MapBuilder putString(String key, String stringValue)
- Specified by:
putString
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.stringValue
- String value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNumber
public Document.MapBuilder putNumber(String key, SdkNumber numberValue)
- Specified by:
putNumber
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.numberValue
- Number value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNumber
public Document.MapBuilder putNumber(String key, int numberValue)
- Specified by:
putNumber
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.numberValue
- Integer value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNumber
public Document.MapBuilder putNumber(String key, long numberValue)
- Specified by:
putNumber
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.numberValue
- long value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNumber
public Document.MapBuilder putNumber(String key, double numberValue)
- Specified by:
putNumber
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.numberValue
- double value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNumber
public Document.MapBuilder putNumber(String key, float numberValue)
- Specified by:
putNumber
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.numberValue
- float value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNumber
public Document.MapBuilder putNumber(String key, BigDecimal numberValue)
- Specified by:
putNumber
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.numberValue
- BigDecimal value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNumber
public Document.MapBuilder putNumber(String key, BigInteger numberValue)
- Specified by:
putNumber
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.numberValue
- BigInteger value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNumber
public Document.MapBuilder putNumber(String key, String numberValue)
- Specified by:
putNumber
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.numberValue
- String value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putBoolean
public Document.MapBuilder putBoolean(String key, boolean booleanValue)
- Specified by:
putBoolean
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.booleanValue
- Boolean value which will be used to create a Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putDocument
public Document.MapBuilder putDocument(String key, Document document)
- Specified by:
putDocument
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.document
- Document to be inserted in a DocumentMap.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putNull
public Document.MapBuilder putNull(String key)
- Specified by:
putNull
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putList
public Document.MapBuilder putList(String key, List<Document> documentList)
- Specified by:
putList
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.documentList
- List of Documents.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putList
public Document.MapBuilder putList(String key, Consumer<Document.ListBuilder> listBuilderConsumer)
- Specified by:
putList
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.listBuilderConsumer
- Consumer that acceptsDocument.ListBuilder
- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putMap
public Document.MapBuilder putMap(String key, Map<String,Document> documentMap)
- Specified by:
putMap
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.documentMap
- Map of Document.- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
putMap
public Document.MapBuilder putMap(String key, Consumer<Document.MapBuilder> mapBuilderConsumer)
- Specified by:
putMap
in interfaceDocument.MapBuilder
- Parameters:
key
- Map Key for the Document.mapBuilderConsumer
- Consumer that acceptsDocument.ListBuilder
- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
build
public Document build()
- Specified by:
build
in interfaceDocument.MapBuilder
- Returns:
- The new
Document
.
-
-