@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Value extends Object implements Serializable, Cloneable, StructuredPojo
Contains the value of a column.
This data structure is only used with the deprecated ExecuteSql operation. Use the
BatchExecuteStatement or ExecuteStatement operation instead.
| Constructor and Description |
|---|
Value() |
| Modifier and Type | Method and Description |
|---|---|
Value |
clone() |
boolean |
equals(Object obj) |
List<Value> |
getArrayValues()
An array of column values.
|
Long |
getBigIntValue()
A value for a column of big integer data type.
|
Boolean |
getBitValue()
A value for a column of BIT data type.
|
ByteBuffer |
getBlobValue()
A value for a column of BLOB data type.
|
Double |
getDoubleValue()
A value for a column of double data type.
|
Integer |
getIntValue()
A value for a column of integer data type.
|
Boolean |
getIsNull()
A NULL value.
|
Float |
getRealValue()
A value for a column of real data type.
|
String |
getStringValue()
A value for a column of string data type.
|
StructValue |
getStructValue()
A value for a column of STRUCT data type.
|
int |
hashCode() |
Boolean |
isBitValue()
A value for a column of BIT data type.
|
Boolean |
isNull()
A NULL value.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setArrayValues(Collection<Value> arrayValues)
An array of column values.
|
void |
setBigIntValue(Long bigIntValue)
A value for a column of big integer data type.
|
void |
setBitValue(Boolean bitValue)
A value for a column of BIT data type.
|
void |
setBlobValue(ByteBuffer blobValue)
A value for a column of BLOB data type.
|
void |
setDoubleValue(Double doubleValue)
A value for a column of double data type.
|
void |
setIntValue(Integer intValue)
A value for a column of integer data type.
|
void |
setIsNull(Boolean isNull)
A NULL value.
|
void |
setRealValue(Float realValue)
A value for a column of real data type.
|
void |
setStringValue(String stringValue)
A value for a column of string data type.
|
void |
setStructValue(StructValue structValue)
A value for a column of STRUCT data type.
|
String |
toString()
Returns a string representation of this object.
|
Value |
withArrayValues(Collection<Value> arrayValues)
An array of column values.
|
Value |
withArrayValues(Value... arrayValues)
An array of column values.
|
Value |
withBigIntValue(Long bigIntValue)
A value for a column of big integer data type.
|
Value |
withBitValue(Boolean bitValue)
A value for a column of BIT data type.
|
Value |
withBlobValue(ByteBuffer blobValue)
A value for a column of BLOB data type.
|
Value |
withDoubleValue(Double doubleValue)
A value for a column of double data type.
|
Value |
withIntValue(Integer intValue)
A value for a column of integer data type.
|
Value |
withIsNull(Boolean isNull)
A NULL value.
|
Value |
withRealValue(Float realValue)
A value for a column of real data type.
|
Value |
withStringValue(String stringValue)
A value for a column of string data type.
|
Value |
withStructValue(StructValue structValue)
A value for a column of STRUCT data type.
|
public void setIsNull(Boolean isNull)
A NULL value.
isNull - A NULL value.public Boolean getIsNull()
A NULL value.
public Value withIsNull(Boolean isNull)
A NULL value.
isNull - A NULL value.public Boolean isNull()
A NULL value.
public void setBitValue(Boolean bitValue)
A value for a column of BIT data type.
bitValue - A value for a column of BIT data type.public Boolean getBitValue()
A value for a column of BIT data type.
public Value withBitValue(Boolean bitValue)
A value for a column of BIT data type.
bitValue - A value for a column of BIT data type.public Boolean isBitValue()
A value for a column of BIT data type.
public void setBigIntValue(Long bigIntValue)
A value for a column of big integer data type.
bigIntValue - A value for a column of big integer data type.public Long getBigIntValue()
A value for a column of big integer data type.
public Value withBigIntValue(Long bigIntValue)
A value for a column of big integer data type.
bigIntValue - A value for a column of big integer data type.public void setIntValue(Integer intValue)
A value for a column of integer data type.
intValue - A value for a column of integer data type.public Integer getIntValue()
A value for a column of integer data type.
public Value withIntValue(Integer intValue)
A value for a column of integer data type.
intValue - A value for a column of integer data type.public void setDoubleValue(Double doubleValue)
A value for a column of double data type.
doubleValue - A value for a column of double data type.public Double getDoubleValue()
A value for a column of double data type.
public Value withDoubleValue(Double doubleValue)
A value for a column of double data type.
doubleValue - A value for a column of double data type.public void setRealValue(Float realValue)
A value for a column of real data type.
realValue - A value for a column of real data type.public Float getRealValue()
A value for a column of real data type.
public Value withRealValue(Float realValue)
A value for a column of real data type.
realValue - A value for a column of real data type.public void setStringValue(String stringValue)
A value for a column of string data type.
stringValue - A value for a column of string data type.public String getStringValue()
A value for a column of string data type.
public Value withStringValue(String stringValue)
A value for a column of string data type.
stringValue - A value for a column of string data type.public void setBlobValue(ByteBuffer blobValue)
A value for a column 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 for a column of BLOB data type.public ByteBuffer getBlobValue()
A value for a column of BLOB data type.
ByteBuffers 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 Value withBlobValue(ByteBuffer blobValue)
A value for a column 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 for a column of BLOB data type.public List<Value> getArrayValues()
An array of column values.
public void setArrayValues(Collection<Value> arrayValues)
An array of column values.
arrayValues - An array of column values.public Value withArrayValues(Value... arrayValues)
An array of column values.
NOTE: This method appends the values to the existing list (if any). Use
setArrayValues(java.util.Collection) or withArrayValues(java.util.Collection) if you want to
override the existing values.
arrayValues - An array of column values.public Value withArrayValues(Collection<Value> arrayValues)
An array of column values.
arrayValues - An array of column values.public void setStructValue(StructValue structValue)
A value for a column of STRUCT data type.
structValue - A value for a column of STRUCT data type.public StructValue getStructValue()
A value for a column of STRUCT data type.
public Value withStructValue(StructValue structValue)
A value for a column of STRUCT data type.
structValue - A value for a column of STRUCT data type.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.