Class MapDocument
java.lang.Object
software.amazon.awssdk.core.document.internal.MapDocument
- All Implemented Interfaces:
Serializable
,Document
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.document.Document
Document.ListBuilder, Document.MapBuilder
-
Constructor Summary
ConstructorDescriptionMapDocument
(Map<String, Document> documentMap) Create a NewMapDocument
with Map of Document value as passed in constructor -
Method Summary
Modifier and TypeMethodDescription<R> R
accept
(DocumentVisitor<? extends R> visitor) Accepts a visitor with the Document.void
accept
(VoidDocumentVisitor visitor) Accepts a visitor with the Document.boolean
Gets the document as aboolean
if it is a boolean.asList()
Gets the document as aList
if it is a document type array.asMap()
Gets the document as aMap
.asNumber()
asString()
Gets the document as aString
.boolean
int
hashCode()
boolean
isMap()
static Document.MapBuilder
Create aMapDocument.MapBuilderInternal
for generating aDocument
by directly allowing user to put String Keys and Document Values in the builder methods.toString()
unwrap()
Gets the value of the document as a Java type that represents the Loops through the individual Map Entries and unwarap each of the Document Value.
-
Constructor Details
-
MapDocument
Create a NewMapDocument
with Map of Document value as passed in constructor- Parameters:
documentMap
- ListDocument documentList.
-
-
Method Details
-
mapBuilder
Create aMapDocument.MapBuilderInternal
for generating aDocument
by directly allowing user to put String Keys and Document Values in the builder methods.- Returns:
- Builder to Construct Document with Map of Documents.
-
unwrap
Gets the value of the document as a Java type that represents the Loops through the individual Map Entries and unwarap each of the Document Value. -
asBoolean
public boolean asBoolean()Description copied from interface:Document
Gets the document as aboolean
if it is a boolean. -
asString
Description copied from interface:Document
Gets the document as aString
. -
asNumber
Description copied from interface:Document
-
isMap
public boolean isMap() -
asMap
Description copied from interface:Document
Gets the document as aMap
.Each value contained in the
Map
is the same as how the value would be represented byDocument
.- Specified by:
asMap
in interfaceDocument
- Returns:
- unmodifiableMap of the Map of Documents in the {
MapDocument
}.
-
asList
Description copied from interface:Document
Gets the document as aList
if it is a document type array.Each value contained in the
List
is the same as how the value would be represented byDocument
. -
accept
Accepts a visitor with the Document. -
accept
Accepts a visitor with the Document. Calls visitMap of visitor. -
toString
-
equals
-
hashCode
public int hashCode()
-