Class ListDocument.ListBuilderInternal
- java.lang.Object
-
- software.amazon.awssdk.core.document.internal.ListDocument.ListBuilderInternal
-
- All Implemented Interfaces:
Document.ListBuilder
- Enclosing class:
- ListDocument
public static class ListDocument.ListBuilderInternal extends Object implements Document.ListBuilder
Internal List Builder for easy construction of Document Lists.
-
-
Constructor Summary
Constructors Constructor Description ListBuilderInternal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document.ListBuilderaddBoolean(boolean booleanValue)Document.ListBuilderaddDocument(Document document)Document.ListBuilderaddMap(Consumer<Document.MapBuilder> mapBuilderConsumer)Document.ListBuilderaddNull()Document.ListBuilderaddNumber(double numberValue)Document.ListBuilderaddNumber(float numberValue)Document.ListBuilderaddNumber(int numberValue)Document.ListBuilderaddNumber(long numberValue)Document.ListBuilderaddNumber(String numberValue)Document.ListBuilderaddNumber(BigDecimal numberValue)Document.ListBuilderaddNumber(BigInteger numberValue)Document.ListBuilderaddNumber(SdkNumber numberValue)Document.ListBuilderaddString(String stringValue)Documentbuild()
-
-
-
Method Detail
-
addString
public Document.ListBuilder addString(String stringValue)
- Specified by:
addStringin interfaceDocument.ListBuilder- Parameters:
stringValue- String Value from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addBoolean
public Document.ListBuilder addBoolean(boolean booleanValue)
- Specified by:
addBooleanin interfaceDocument.ListBuilder- Parameters:
booleanValue- Boolean value from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
public Document.ListBuilder addNumber(SdkNumber numberValue)
- Specified by:
addNumberin interfaceDocument.ListBuilder- Parameters:
numberValue-SdkNumberfrom which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
public Document.ListBuilder addNumber(int numberValue)
- Specified by:
addNumberin interfaceDocument.ListBuilder- Parameters:
numberValue- integer from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
public Document.ListBuilder addNumber(long numberValue)
- Specified by:
addNumberin interfaceDocument.ListBuilder- Parameters:
numberValue- long from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
public Document.ListBuilder addNumber(float numberValue)
- Specified by:
addNumberin interfaceDocument.ListBuilder- Parameters:
numberValue- float from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
public Document.ListBuilder addNumber(double numberValue)
- Specified by:
addNumberin interfaceDocument.ListBuilder- Parameters:
numberValue- double from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
public Document.ListBuilder addNumber(BigDecimal numberValue)
- Specified by:
addNumberin interfaceDocument.ListBuilder- Parameters:
numberValue- BigDecimal from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
public Document.ListBuilder addNumber(BigInteger numberValue)
- Specified by:
addNumberin interfaceDocument.ListBuilder- Parameters:
numberValue- BigInteger from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
public Document.ListBuilder addNumber(String numberValue)
- Specified by:
addNumberin interfaceDocument.ListBuilder- Parameters:
numberValue- String from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addDocument
public Document.ListBuilder addDocument(Document document)
- Specified by:
addDocumentin interfaceDocument.ListBuilder- Parameters:
document- Document that will be added to a Document List.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addMap
public Document.ListBuilder addMap(Consumer<Document.MapBuilder> mapBuilderConsumer)
- Specified by:
addMapin interfaceDocument.ListBuilder- Parameters:
mapBuilderConsumer- Consumer that acceptsDocument.ListBuilder- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
addNull
public Document.ListBuilder addNull()
- Specified by:
addNullin interfaceDocument.ListBuilder- Returns:
- Builder which provides APIs to add Document to a Document List.
-
build
public Document build()
- Specified by:
buildin interfaceDocument.ListBuilder- Returns:
- The new
Document.
-
-