@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EntityIdentifier extends Object implements Serializable, Cloneable, StructuredPojo
Contains the identifier of an entity, including its ID and type.
This data type is used as a request parameter for IsAuthorized operation, and as a response parameter for the CreatePolicy, GetPolicy, and UpdatePolicy operations.
 Example: {"entityId":"string","entityType":"string"}
 
| Constructor and Description | 
|---|
| EntityIdentifier() | 
| Modifier and Type | Method and Description | 
|---|---|
| EntityIdentifier | clone() | 
| boolean | equals(Object obj) | 
| String | getEntityId()
 The identifier of an entity. | 
| String | getEntityType()
 The type of an entity. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setEntityId(String entityId)
 The identifier of an entity. | 
| void | setEntityType(String entityType)
 The type of an entity. | 
| String | toString()Returns a string representation of this object. | 
| EntityIdentifier | withEntityId(String entityId)
 The identifier of an entity. | 
| EntityIdentifier | withEntityType(String entityType)
 The type of an entity. | 
public void setEntityType(String entityType)
The type of an entity.
 Example: "entityType":"typeName"
 
entityType - The type of an entity.
        
        Example: "entityType":"typeName"
public String getEntityType()
The type of an entity.
 Example: "entityType":"typeName"
 
         Example: "entityType":"typeName"
public EntityIdentifier withEntityType(String entityType)
The type of an entity.
 Example: "entityType":"typeName"
 
entityType - The type of an entity.
        
        Example: "entityType":"typeName"
public void setEntityId(String entityId)
The identifier of an entity.
 "entityId":"identifier"
 
entityId - The identifier of an entity.
        
        "entityId":"identifier"
public String getEntityId()
The identifier of an entity.
 "entityId":"identifier"
 
         "entityId":"identifier"
public EntityIdentifier withEntityId(String entityId)
The identifier of an entity.
 "entityId":"identifier"
 
entityId - The identifier of an entity.
        
        "entityId":"identifier"
public String toString()
toString in class ObjectObject.toString()public EntityIdentifier clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.