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
ConstructorDescriptionStringDocument
(String string) Create a NewStringDocument
with boolean 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
asList()
Gets the document as aList
if it is a document type array.asMap()
Gets the document as aMap
.asNumber()
asString()
Gets the String value of the Document.boolean
int
hashCode()
boolean
isString()
toString()
unwrap()
Unwraps the Document Boolean to a String Object.
-
Constructor Details
-
StringDocument
Create a NewStringDocument
with 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:Document
Gets the document as aMap
.Each value contained in the
Map
is the same as how the value would be represented byDocument
. -
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 visitString of visitor. -
toString
-
equals
-
hashCode
public int hashCode()
-