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.ListBuilder
addBoolean(boolean booleanValue)
Document.ListBuilder
addDocument(Document document)
Document.ListBuilder
addMap(Consumer<Document.MapBuilder> mapBuilderConsumer)
Document.ListBuilder
addNull()
Document.ListBuilder
addNumber(double numberValue)
Document.ListBuilder
addNumber(float numberValue)
Document.ListBuilder
addNumber(int numberValue)
Document.ListBuilder
addNumber(long numberValue)
Document.ListBuilder
addNumber(String numberValue)
Document.ListBuilder
addNumber(BigDecimal numberValue)
Document.ListBuilder
addNumber(BigInteger numberValue)
Document.ListBuilder
addNumber(SdkNumber numberValue)
Document.ListBuilder
addString(String stringValue)
Document
build()
-
-
-
Method Detail
-
addString
public Document.ListBuilder addString(String stringValue)
- Specified by:
addString
in 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:
addBoolean
in 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:
addNumber
in interfaceDocument.ListBuilder
- Parameters:
numberValue
-SdkNumber
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(int numberValue)
- Specified by:
addNumber
in 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:
addNumber
in 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:
addNumber
in 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:
addNumber
in 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:
addNumber
in 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:
addNumber
in 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:
addNumber
in 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:
addDocument
in 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:
addMap
in 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:
addNull
in interfaceDocument.ListBuilder
- Returns:
- Builder which provides APIs to add Document to a Document List.
-
build
public Document build()
- Specified by:
build
in interfaceDocument.ListBuilder
- Returns:
- The new
Document
.
-
-