@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ApplicationPolicyStatement extends Object implements Serializable, Cloneable, StructuredPojo
Policy statement applied to the application.
Constructor and Description |
---|
ApplicationPolicyStatement() |
Modifier and Type | Method and Description |
---|---|
ApplicationPolicyStatement |
clone() |
boolean |
equals(Object obj) |
List<String> |
getActions()
For the list of actions supported for this operation, see Application Permissions.
|
List<String> |
getPrincipalOrgIDs()
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
|
List<String> |
getPrincipals()
An array of AWS account IDs, or * to make the application public.
|
String |
getStatementId()
A unique ID for the statement.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<String> actions)
For the list of actions supported for this operation, see Application Permissions.
|
void |
setPrincipalOrgIDs(Collection<String> principalOrgIDs)
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
|
void |
setPrincipals(Collection<String> principals)
An array of AWS account IDs, or * to make the application public.
|
void |
setStatementId(String statementId)
A unique ID for the statement.
|
String |
toString()
Returns a string representation of this object.
|
ApplicationPolicyStatement |
withActions(Collection<String> actions)
For the list of actions supported for this operation, see Application Permissions.
|
ApplicationPolicyStatement |
withActions(String... actions)
For the list of actions supported for this operation, see Application Permissions.
|
ApplicationPolicyStatement |
withPrincipalOrgIDs(Collection<String> principalOrgIDs)
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
|
ApplicationPolicyStatement |
withPrincipalOrgIDs(String... principalOrgIDs)
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
|
ApplicationPolicyStatement |
withPrincipals(Collection<String> principals)
An array of AWS account IDs, or * to make the application public.
|
ApplicationPolicyStatement |
withPrincipals(String... principals)
An array of AWS account IDs, or * to make the application public.
|
ApplicationPolicyStatement |
withStatementId(String statementId)
A unique ID for the statement.
|
public List<String> getActions()
For the list of actions supported for this operation, see Application Permissions.
public void setActions(Collection<String> actions)
For the list of actions supported for this operation, see Application Permissions.
actions
- For the list of actions supported for this operation, see Application Permissions.public ApplicationPolicyStatement withActions(String... actions)
For the list of actions supported for this operation, see Application Permissions.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- For the list of actions supported for this operation, see Application Permissions.public ApplicationPolicyStatement withActions(Collection<String> actions)
For the list of actions supported for this operation, see Application Permissions.
actions
- For the list of actions supported for this operation, see Application Permissions.public List<String> getPrincipalOrgIDs()
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
public void setPrincipalOrgIDs(Collection<String> principalOrgIDs)
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
principalOrgIDs
- An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.public ApplicationPolicyStatement withPrincipalOrgIDs(String... principalOrgIDs)
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipalOrgIDs(java.util.Collection)
or withPrincipalOrgIDs(java.util.Collection)
if you
want to override the existing values.
principalOrgIDs
- An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.public ApplicationPolicyStatement withPrincipalOrgIDs(Collection<String> principalOrgIDs)
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
principalOrgIDs
- An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.public List<String> getPrincipals()
An array of AWS account IDs, or * to make the application public.
public void setPrincipals(Collection<String> principals)
An array of AWS account IDs, or * to make the application public.
principals
- An array of AWS account IDs, or * to make the application public.public ApplicationPolicyStatement withPrincipals(String... principals)
An array of AWS account IDs, or * to make the application public.
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
- An array of AWS account IDs, or * to make the application public.public ApplicationPolicyStatement withPrincipals(Collection<String> principals)
An array of AWS account IDs, or * to make the application public.
principals
- An array of AWS account IDs, or * to make the application public.public void setStatementId(String statementId)
A unique ID for the statement.
statementId
- A unique ID for the statement.public String getStatementId()
A unique ID for the statement.
public ApplicationPolicyStatement withStatementId(String statementId)
A unique ID for the statement.
statementId
- A unique ID for the statement.public String toString()
toString
in class Object
Object.toString()
public ApplicationPolicyStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.