Class StringDocument
java.lang.Object
software.amazon.awssdk.core.document.internal.StringDocument
-
Nested Class Summary
Nested 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
ConstructorsConstructorDescriptionStringDocument(String string) Create a NewStringDocumentwith boolean 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.booleanasList()Gets the document as aListif it is a document type array.asMap()Gets the document as aMap.asNumber()asString()Gets the String value of the Document.booleaninthashCode()booleanisString()toString()unwrap()Unwraps the Document Boolean to a String Object.
-
Constructor Details
-
StringDocument
Create a NewStringDocumentwith boolean value as passed in constructor- Parameters:
string- boolean value.
-
-
Method Details
-
unwrap
-
asBoolean
-
isString
-
asString
-
asNumber
-
asMap
-
asList
-
accept
Accepts a visitor with the Document. -
accept
Accepts a visitor with the Document. Calls visitString of visitor. -
toString
-
equals
-
hashCode
-