@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PermissionEntry extends Object implements Serializable, Cloneable, StructuredPojo
A structure containing the identity of one user or group and the Admin, Editor, or
Viewer role that they have.
| Constructor and Description |
|---|
PermissionEntry() |
| Modifier and Type | Method and Description |
|---|---|
PermissionEntry |
clone() |
boolean |
equals(Object obj) |
String |
getRole()
Specifies whether the user or group has the
Admin, Editor, or Viewer role. |
User |
getUser()
A structure with the ID of the user or group with this role.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setRole(String role)
Specifies whether the user or group has the
Admin, Editor, or Viewer role. |
void |
setUser(User user)
A structure with the ID of the user or group with this role.
|
String |
toString()
Returns a string representation of this object.
|
PermissionEntry |
withRole(Role role)
Specifies whether the user or group has the
Admin, Editor, or Viewer role. |
PermissionEntry |
withRole(String role)
Specifies whether the user or group has the
Admin, Editor, or Viewer role. |
PermissionEntry |
withUser(User user)
A structure with the ID of the user or group with this role.
|
public void setRole(String role)
Specifies whether the user or group has the Admin, Editor, or Viewer role.
role - Specifies whether the user or group has the Admin, Editor, or
Viewer role.Rolepublic String getRole()
Specifies whether the user or group has the Admin, Editor, or Viewer role.
Admin, Editor, or
Viewer role.Rolepublic PermissionEntry withRole(String role)
Specifies whether the user or group has the Admin, Editor, or Viewer role.
role - Specifies whether the user or group has the Admin, Editor, or
Viewer role.Rolepublic PermissionEntry withRole(Role role)
Specifies whether the user or group has the Admin, Editor, or Viewer role.
role - Specifies whether the user or group has the Admin, Editor, or
Viewer role.Rolepublic void setUser(User user)
A structure with the ID of the user or group with this role.
user - A structure with the ID of the user or group with this role.public User getUser()
A structure with the ID of the user or group with this role.
public PermissionEntry withUser(User user)
A structure with the ID of the user or group with this role.
user - A structure with the ID of the user or group with this role.public String toString()
toString in class ObjectObject.toString()public PermissionEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.