Package com.emc.object.s3.bean
Class BucketPolicyStatement
- java.lang.Object
-
- com.emc.object.s3.bean.BucketPolicyStatement
-
public class BucketPolicyStatement extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BucketPolicyStatement.Effect
static class
BucketPolicyStatement.RawDeserializer
-
Constructor Summary
Constructors Constructor Description BucketPolicyStatement()
-
Method Summary
-
-
-
Method Detail
-
getSid
public java.lang.String getSid()
-
setSid
public void setSid(java.lang.String sid)
-
getEffect
public BucketPolicyStatement.Effect getEffect()
-
setEffect
public void setEffect(BucketPolicyStatement.Effect effect)
-
getPrincipal
public java.lang.String getPrincipal()
-
getRawPrincipal
public java.lang.String getRawPrincipal()
-
setPrincipal
public void setPrincipal(java.lang.String principal)
-
setRawPrincipal
public void setRawPrincipal(java.lang.String principal)
If you want to set the principal to something other than "*", you'll need to set a raw JSON value here. I.e."{\"AWS\":[\"arn:ecs:iam::ns:user/my-user\",\"arn:ecs:iam::ns:user/other-user\"]}"
-
getActions
public java.util.List<BucketPolicyAction> getActions()
-
setActions
public void setActions(java.util.List<BucketPolicyAction> actions)
-
getResource
public java.lang.String getResource()
-
setResource
public void setResource(java.lang.String resource)
-
getConditions
public java.util.Map<PolicyConditionOperator,PolicyConditionCriteria> getConditions()
-
setConditions
public void setConditions(java.util.Map<PolicyConditionOperator,PolicyConditionCriteria> conditions)
-
withSid
public BucketPolicyStatement withSid(java.lang.String sid)
-
withEffect
public BucketPolicyStatement withEffect(BucketPolicyStatement.Effect effect)
-
withPrincipal
public BucketPolicyStatement withPrincipal(java.lang.String principal)
-
withActions
public BucketPolicyStatement withActions(java.util.List<BucketPolicyAction> actions)
-
withActions
public BucketPolicyStatement withActions(BucketPolicyAction... actions)
-
withResource
public BucketPolicyStatement withResource(java.lang.String resource)
-
withConditions
public BucketPolicyStatement withConditions(java.util.Map<PolicyConditionOperator,PolicyConditionCriteria> conditions)
-
withCondition
public BucketPolicyStatement withCondition(PolicyConditionOperator operator, PolicyConditionCriteria criteria)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-