@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttributeValue extends Object implements Serializable, Cloneable, StructuredPojo
The value of an attribute.
Contains information about the runtime context for a request for which an authorization decision is made.
This data type is used as a member of the ContextDefinition structure which is uses as a request parameter for the IsAuthorized, BatchIsAuthorized , and IsAuthorizedWithToken operations.
| Constructor and Description |
|---|
AttributeValue() |
| Modifier and Type | Method and Description |
|---|---|
AttributeValue |
addRecordEntry(String key,
AttributeValue value)
Add a single Record entry
|
AttributeValue |
clearRecordEntries()
Removes all the entries added into Record.
|
AttributeValue |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBoolean()
An attribute value of Boolean
type.
|
EntityIdentifier |
getEntityIdentifier()
An attribute value of type EntityIdentifier.
|
Long |
getLong()
An attribute value of Long type.
|
Map<String,AttributeValue> |
getRecord()
An attribute value of Record
type.
|
List<AttributeValue> |
getSet()
An attribute value of Set type.
|
String |
getString()
An attribute value of String
type.
|
int |
hashCode() |
Boolean |
isBoolean()
An attribute value of Boolean
type.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBoolean(Boolean booleanValue)
An attribute value of Boolean
type.
|
void |
setEntityIdentifier(EntityIdentifier entityIdentifier)
An attribute value of type EntityIdentifier.
|
void |
setLong(Long longValue)
An attribute value of Long type.
|
void |
setRecord(Map<String,AttributeValue> record)
An attribute value of Record
type.
|
void |
setSet(Collection<AttributeValue> set)
An attribute value of Set type.
|
void |
setString(String string)
An attribute value of String
type.
|
String |
toString()
Returns a string representation of this object.
|
AttributeValue |
withBoolean(Boolean booleanValue)
An attribute value of Boolean
type.
|
AttributeValue |
withEntityIdentifier(EntityIdentifier entityIdentifier)
An attribute value of type EntityIdentifier.
|
AttributeValue |
withLong(Long longValue)
An attribute value of Long type.
|
AttributeValue |
withRecord(Map<String,AttributeValue> record)
An attribute value of Record
type.
|
AttributeValue |
withSet(AttributeValue... set)
An attribute value of Set type.
|
AttributeValue |
withSet(Collection<AttributeValue> set)
An attribute value of Set type.
|
AttributeValue |
withString(String string)
An attribute value of String
type.
|
public void setBoolean(Boolean booleanValue)
An attribute value of Boolean type.
Example: {"boolean": true}
booleanValue - An attribute value of Boolean type.
Example: {"boolean": true}
public Boolean getBoolean()
An attribute value of Boolean type.
Example: {"boolean": true}
Example: {"boolean": true}
public AttributeValue withBoolean(Boolean booleanValue)
An attribute value of Boolean type.
Example: {"boolean": true}
booleanValue - An attribute value of Boolean type.
Example: {"boolean": true}
public Boolean isBoolean()
An attribute value of Boolean type.
Example: {"boolean": true}
Example: {"boolean": true}
public void setEntityIdentifier(EntityIdentifier entityIdentifier)
An attribute value of type EntityIdentifier.
Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}
entityIdentifier - An attribute value of type EntityIdentifier.
Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}
public EntityIdentifier getEntityIdentifier()
An attribute value of type EntityIdentifier.
Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}
Example:
"entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}
public AttributeValue withEntityIdentifier(EntityIdentifier entityIdentifier)
An attribute value of type EntityIdentifier.
Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}
entityIdentifier - An attribute value of type EntityIdentifier.
Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}
public void setLong(Long longValue)
An attribute value of Long type.
Example: {"long": 0}
longValue - An attribute value of Long
type.
Example: {"long": 0}
public Long getLong()
An attribute value of Long type.
Example: {"long": 0}
Example: {"long": 0}
public AttributeValue withLong(Long longValue)
An attribute value of Long type.
Example: {"long": 0}
longValue - An attribute value of Long
type.
Example: {"long": 0}
public void setString(String string)
An attribute value of String type.
Example: {"string": "abc"}
string - An attribute value of String type.
Example: {"string": "abc"}
public String getString()
An attribute value of String type.
Example: {"string": "abc"}
Example: {"string": "abc"}
public AttributeValue withString(String string)
An attribute value of String type.
Example: {"string": "abc"}
string - An attribute value of String type.
Example: {"string": "abc"}
public List<AttributeValue> getSet()
An attribute value of Set type.
Example: {"set": [ {} ] }
Example: {"set": [ {} ] }
public void setSet(Collection<AttributeValue> set)
An attribute value of Set type.
Example: {"set": [ {} ] }
set - An attribute value of Set
type.
Example: {"set": [ {} ] }
public AttributeValue withSet(AttributeValue... set)
An attribute value of Set type.
Example: {"set": [ {} ] }
NOTE: This method appends the values to the existing list (if any). Use
setSet(java.util.Collection) or withSet(java.util.Collection) if you want to override the
existing values.
set - An attribute value of Set
type.
Example: {"set": [ {} ] }
public AttributeValue withSet(Collection<AttributeValue> set)
An attribute value of Set type.
Example: {"set": [ {} ] }
set - An attribute value of Set
type.
Example: {"set": [ {} ] }
public Map<String,AttributeValue> getRecord()
An attribute value of Record type.
Example: {"record": { "keyName": {} } }
Example: {"record": { "keyName": {} } }
public void setRecord(Map<String,AttributeValue> record)
An attribute value of Record type.
Example: {"record": { "keyName": {} } }
record - An attribute value of Record type.
Example: {"record": { "keyName": {} } }
public AttributeValue withRecord(Map<String,AttributeValue> record)
An attribute value of Record type.
Example: {"record": { "keyName": {} } }
record - An attribute value of Record type.
Example: {"record": { "keyName": {} } }
public AttributeValue addRecordEntry(String key, AttributeValue value)
public AttributeValue clearRecordEntries()
public String toString()
toString in class ObjectObject.toString()public AttributeValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.