@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Permission extends Object implements Serializable, Cloneable, StructuredPojo
Permission granted to a user, group, or resource to access a certain aspect of another user, group, or resource mailbox.
Constructor and Description |
---|
Permission() |
Modifier and Type | Method and Description |
---|---|
Permission |
clone() |
boolean |
equals(Object obj) |
String |
getGranteeId()
The identifier of the user, group, or resource to which the permissions are granted.
|
String |
getGranteeType()
The type of user, group, or resource referred to in GranteeId.
|
List<String> |
getPermissionValues()
The permissions granted to the grantee.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGranteeId(String granteeId)
The identifier of the user, group, or resource to which the permissions are granted.
|
void |
setGranteeType(String granteeType)
The type of user, group, or resource referred to in GranteeId.
|
void |
setPermissionValues(Collection<String> permissionValues)
The permissions granted to the grantee.
|
String |
toString()
Returns a string representation of this object.
|
Permission |
withGranteeId(String granteeId)
The identifier of the user, group, or resource to which the permissions are granted.
|
Permission |
withGranteeType(MemberType granteeType)
The type of user, group, or resource referred to in GranteeId.
|
Permission |
withGranteeType(String granteeType)
The type of user, group, or resource referred to in GranteeId.
|
Permission |
withPermissionValues(Collection<String> permissionValues)
The permissions granted to the grantee.
|
Permission |
withPermissionValues(PermissionType... permissionValues)
The permissions granted to the grantee.
|
Permission |
withPermissionValues(String... permissionValues)
The permissions granted to the grantee.
|
public void setGranteeId(String granteeId)
The identifier of the user, group, or resource to which the permissions are granted.
granteeId
- The identifier of the user, group, or resource to which the permissions are granted.public String getGranteeId()
The identifier of the user, group, or resource to which the permissions are granted.
public Permission withGranteeId(String granteeId)
The identifier of the user, group, or resource to which the permissions are granted.
granteeId
- The identifier of the user, group, or resource to which the permissions are granted.public void setGranteeType(String granteeType)
The type of user, group, or resource referred to in GranteeId.
granteeType
- The type of user, group, or resource referred to in GranteeId.MemberType
public String getGranteeType()
The type of user, group, or resource referred to in GranteeId.
MemberType
public Permission withGranteeType(String granteeType)
The type of user, group, or resource referred to in GranteeId.
granteeType
- The type of user, group, or resource referred to in GranteeId.MemberType
public Permission withGranteeType(MemberType granteeType)
The type of user, group, or resource referred to in GranteeId.
granteeType
- The type of user, group, or resource referred to in GranteeId.MemberType
public List<String> getPermissionValues()
The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
PermissionType
public void setPermissionValues(Collection<String> permissionValues)
The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
permissionValues
- The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the
mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on
behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails).
FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions
set on the mailbox.PermissionType
public Permission withPermissionValues(String... permissionValues)
The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
NOTE: This method appends the values to the existing list (if any). Use
setPermissionValues(java.util.Collection)
or withPermissionValues(java.util.Collection)
if you
want to override the existing values.
permissionValues
- The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the
mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on
behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails).
FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions
set on the mailbox.PermissionType
public Permission withPermissionValues(Collection<String> permissionValues)
The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
permissionValues
- The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the
mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on
behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails).
FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions
set on the mailbox.PermissionType
public Permission withPermissionValues(PermissionType... permissionValues)
The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
permissionValues
- The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the
mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on
behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails).
FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions
set on the mailbox.PermissionType
public String toString()
toString
in class Object
Object.toString()
public Permission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.