@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.Role
public String getRole()
Specifies whether the user or group has the Admin
, Editor
, or Viewer
role.
Admin
, Editor
, or
Viewer
role.Role
public 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.Role
public 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.Role
public 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 Object
Object.toString()
public PermissionEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.