Class StringDocument
java.lang.Object
software.amazon.awssdk.core.document.internal.StringDocument
- 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
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
Unwraps the Document Boolean to a String Object. - 
asBoolean
public boolean asBoolean() - 
isString
public boolean isString() - 
asString
Gets the String value of the Document. - 
asNumber
Description copied from interface:Document - 
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. - 
asList
Description copied from interface:DocumentGets the document as aListif it is a document type array.Each value contained in the
Listis 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 visitString of visitor. - 
toString
 - 
equals
 - 
hashCode
public int hashCode() 
 -