@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetKeyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
A key value pair.
Constructor and Description |
---|
GetKeyResult() |
Modifier and Type | Method and Description |
---|---|
GetKeyResult |
clone() |
boolean |
equals(Object obj) |
Integer |
getItemCount()
Number of key value pairs in the Key Value Store.
|
String |
getKey()
The key of the key value pair.
|
Long |
getTotalSizeInBytes()
Total size of the Key Value Store in bytes.
|
String |
getValue()
The value of the key value pair.
|
int |
hashCode() |
void |
setItemCount(Integer itemCount)
Number of key value pairs in the Key Value Store.
|
void |
setKey(String key)
The key of the key value pair.
|
void |
setTotalSizeInBytes(Long totalSizeInBytes)
Total size of the Key Value Store in bytes.
|
void |
setValue(String value)
The value of the key value pair.
|
String |
toString()
Returns a string representation of this object.
|
GetKeyResult |
withItemCount(Integer itemCount)
Number of key value pairs in the Key Value Store.
|
GetKeyResult |
withKey(String key)
The key of the key value pair.
|
GetKeyResult |
withTotalSizeInBytes(Long totalSizeInBytes)
Total size of the Key Value Store in bytes.
|
GetKeyResult |
withValue(String value)
The value of the key value pair.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setKey(String key)
The key of the key value pair.
key
- The key of the key value pair.public String getKey()
The key of the key value pair.
public GetKeyResult withKey(String key)
The key of the key value pair.
key
- The key of the key value pair.public void setValue(String value)
The value of the key value pair.
value
- The value of the key value pair.public String getValue()
The value of the key value pair.
public GetKeyResult withValue(String value)
The value of the key value pair.
value
- The value of the key value pair.public void setItemCount(Integer itemCount)
Number of key value pairs in the Key Value Store.
itemCount
- Number of key value pairs in the Key Value Store.public Integer getItemCount()
Number of key value pairs in the Key Value Store.
public GetKeyResult withItemCount(Integer itemCount)
Number of key value pairs in the Key Value Store.
itemCount
- Number of key value pairs in the Key Value Store.public void setTotalSizeInBytes(Long totalSizeInBytes)
Total size of the Key Value Store in bytes.
totalSizeInBytes
- Total size of the Key Value Store in bytes.public Long getTotalSizeInBytes()
Total size of the Key Value Store in bytes.
public GetKeyResult withTotalSizeInBytes(Long totalSizeInBytes)
Total size of the Key Value Store in bytes.
totalSizeInBytes
- Total size of the Key Value Store in bytes.public String toString()
toString
in class Object
Object.toString()
public GetKeyResult clone()