@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Field extends Object implements Serializable, Cloneable, StructuredPojo
Contains a value.
Constructor and Description |
---|
Field() |
Modifier and Type | Method and Description |
---|---|
Field |
clone() |
boolean |
equals(Object obj) |
ArrayValue |
getArrayValue()
An array of values.
|
ByteBuffer |
getBlobValue()
A value of BLOB data type.
|
Boolean |
getBooleanValue()
A value of Boolean data type.
|
Double |
getDoubleValue()
A value of double data type.
|
Boolean |
getIsNull()
A NULL value.
|
Long |
getLongValue()
A value of long data type.
|
String |
getStringValue()
A value of string data type.
|
int |
hashCode() |
Boolean |
isBooleanValue()
A value of Boolean data type.
|
Boolean |
isNull()
A NULL value.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArrayValue(ArrayValue arrayValue)
An array of values.
|
void |
setBlobValue(ByteBuffer blobValue)
A value of BLOB data type.
|
void |
setBooleanValue(Boolean booleanValue)
A value of Boolean data type.
|
void |
setDoubleValue(Double doubleValue)
A value of double data type.
|
void |
setIsNull(Boolean isNull)
A NULL value.
|
void |
setLongValue(Long longValue)
A value of long data type.
|
void |
setStringValue(String stringValue)
A value of string data type.
|
String |
toString()
Returns a string representation of this object.
|
Field |
withArrayValue(ArrayValue arrayValue)
An array of values.
|
Field |
withBlobValue(ByteBuffer blobValue)
A value of BLOB data type.
|
Field |
withBooleanValue(Boolean booleanValue)
A value of Boolean data type.
|
Field |
withDoubleValue(Double doubleValue)
A value of double data type.
|
Field |
withIsNull(Boolean isNull)
A NULL value.
|
Field |
withLongValue(Long longValue)
A value of long data type.
|
Field |
withStringValue(String stringValue)
A value of string data type.
|
public void setIsNull(Boolean isNull)
A NULL value.
isNull
- A NULL value.public Boolean getIsNull()
A NULL value.
public Field withIsNull(Boolean isNull)
A NULL value.
isNull
- A NULL value.public Boolean isNull()
A NULL value.
public void setBooleanValue(Boolean booleanValue)
A value of Boolean data type.
booleanValue
- A value of Boolean data type.public Boolean getBooleanValue()
A value of Boolean data type.
public Field withBooleanValue(Boolean booleanValue)
A value of Boolean data type.
booleanValue
- A value of Boolean data type.public Boolean isBooleanValue()
A value of Boolean data type.
public void setLongValue(Long longValue)
A value of long data type.
longValue
- A value of long data type.public Long getLongValue()
A value of long data type.
public Field withLongValue(Long longValue)
A value of long data type.
longValue
- A value of long data type.public void setDoubleValue(Double doubleValue)
A value of double data type.
doubleValue
- A value of double data type.public Double getDoubleValue()
A value of double data type.
public Field withDoubleValue(Double doubleValue)
A value of double data type.
doubleValue
- A value of double data type.public void setStringValue(String stringValue)
A value of string data type.
stringValue
- A value of string data type.public String getStringValue()
A value of string data type.
public Field withStringValue(String stringValue)
A value of string data type.
stringValue
- A value of string data type.public void setBlobValue(ByteBuffer blobValue)
A value of BLOB data type.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
blobValue
- A value of BLOB data type.public ByteBuffer getBlobValue()
A value of BLOB data type.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public Field withBlobValue(ByteBuffer blobValue)
A value of BLOB data type.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
blobValue
- A value of BLOB data type.public void setArrayValue(ArrayValue arrayValue)
An array of values.
arrayValue
- An array of values.public ArrayValue getArrayValue()
An array of values.
public Field withArrayValue(ArrayValue arrayValue)
An array of values.
arrayValue
- An array of values.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.