@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessControl extends Object implements Serializable, Cloneable, StructuredPojo
A list of principals. Each principal can be either a USER or a GROUP and can be designated
document access permissions of either ALLOW or DENY.
| Constructor and Description |
|---|
AccessControl() |
| Modifier and Type | Method and Description |
|---|---|
AccessControl |
clone() |
boolean |
equals(Object obj) |
String |
getMemberRelation()
Describes the member relation within a principal list.
|
List<Principal> |
getPrincipals()
Contains a list of principals, where a principal can be either a
USER or a GROUP. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMemberRelation(String memberRelation)
Describes the member relation within a principal list.
|
void |
setPrincipals(Collection<Principal> principals)
Contains a list of principals, where a principal can be either a
USER or a GROUP. |
String |
toString()
Returns a string representation of this object.
|
AccessControl |
withMemberRelation(MemberRelation memberRelation)
Describes the member relation within a principal list.
|
AccessControl |
withMemberRelation(String memberRelation)
Describes the member relation within a principal list.
|
AccessControl |
withPrincipals(Collection<Principal> principals)
Contains a list of principals, where a principal can be either a
USER or a GROUP. |
AccessControl |
withPrincipals(Principal... principals)
Contains a list of principals, where a principal can be either a
USER or a GROUP. |
public List<Principal> getPrincipals()
Contains a list of principals, where a principal can be either a USER or a GROUP. Each
principal can be have the following type of document access: ALLOW or DENY.
USER or a
GROUP. Each principal can be have the following type of document access: ALLOW
or DENY.public void setPrincipals(Collection<Principal> principals)
Contains a list of principals, where a principal can be either a USER or a GROUP. Each
principal can be have the following type of document access: ALLOW or DENY.
principals - Contains a list of principals, where a principal can be either a USER or a GROUP
. Each principal can be have the following type of document access: ALLOW or
DENY.public AccessControl withPrincipals(Principal... principals)
Contains a list of principals, where a principal can be either a USER or a GROUP. Each
principal can be have the following type of document access: ALLOW or DENY.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipals(java.util.Collection) or withPrincipals(java.util.Collection) if you want to
override the existing values.
principals - Contains a list of principals, where a principal can be either a USER or a GROUP
. Each principal can be have the following type of document access: ALLOW or
DENY.public AccessControl withPrincipals(Collection<Principal> principals)
Contains a list of principals, where a principal can be either a USER or a GROUP. Each
principal can be have the following type of document access: ALLOW or DENY.
principals - Contains a list of principals, where a principal can be either a USER or a GROUP
. Each principal can be have the following type of document access: ALLOW or
DENY.public void setMemberRelation(String memberRelation)
Describes the member relation within a principal list.
memberRelation - Describes the member relation within a principal list.MemberRelationpublic String getMemberRelation()
Describes the member relation within a principal list.
MemberRelationpublic AccessControl withMemberRelation(String memberRelation)
Describes the member relation within a principal list.
memberRelation - Describes the member relation within a principal list.MemberRelationpublic AccessControl withMemberRelation(MemberRelation memberRelation)
Describes the member relation within a principal list.
memberRelation - Describes the member relation within a principal list.MemberRelationpublic String toString()
toString in class ObjectObject.toString()public AccessControl clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.