Class MapDocument
java.lang.Object
software.amazon.awssdk.core.document.internal.MapDocument
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface software.amazon.awssdk.core.document.Document
Document.ListBuilder, Document.MapBuilder -
Field Summary
Fields inherited from interface software.amazon.awssdk.core.document.Document
FALSE_DOCUMENT, NULL_DOCUMENT, TRUE_DOCUMENT -
Constructor Summary
ConstructorsConstructorDescriptionMapDocument(Map<String, Document> documentMap) Create a NewMapDocumentwith Map of Document value as passed in constructor -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(DocumentVisitor<? extends R> visitor) Accepts a visitor with the Document.voidaccept(VoidDocumentVisitor visitor) Accepts a visitor with the Document.booleanGets the document as abooleanif it is a boolean.asList()Gets the document as aListif it is a document type array.asMap()Gets the document as aMap.asNumber()asString()Gets the document as aString.booleaninthashCode()booleanisMap()static Document.MapBuilderCreate aMapDocument.MapBuilderInternalfor generating aDocumentby 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 NewMapDocumentwith Map of Document value as passed in constructor- Parameters:
documentMap- ListDocument documentList.
-
-
Method Details
-
mapBuilder
Create aMapDocument.MapBuilderInternalfor generating aDocumentby directly allowing user to put String Keys and Document Values in the builder methods.- Returns:
- Builder to Construct Document with Map of Documents.
-
unwrap
-
asBoolean
-
asString
-
asNumber
-
isMap
-
asMap
Description copied from interface:DocumentGets the document as aMap.Each value contained in the
Mapis the same as how the value would be represented byDocument.- Specified by:
asMapin interfaceDocument- Returns:
- unmodifiableMap of the Map of Documents in the {
MapDocument}.
-
asList
-
accept
Accepts a visitor with the Document. -
accept
Accepts a visitor with the Document. Calls visitMap of visitor. -
toString
-
equals
-
hashCode
-