@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessControlRule extends Object implements Serializable, Cloneable, StructuredPojo
A rule that controls access to an WorkMail organization.
| Constructor and Description |
|---|
AccessControlRule() |
| Modifier and Type | Method and Description |
|---|---|
AccessControlRule |
clone() |
boolean |
equals(Object obj) |
List<String> |
getActions()
Access protocol actions to include in the rule.
|
Date |
getDateCreated()
The date that the rule was created.
|
Date |
getDateModified()
The date that the rule was modified.
|
String |
getDescription()
The rule description.
|
String |
getEffect()
The rule effect.
|
List<String> |
getImpersonationRoleIds()
Impersonation role IDs to include in the rule.
|
List<String> |
getIpRanges()
IPv4 CIDR ranges to include in the rule.
|
String |
getName()
The rule name.
|
List<String> |
getNotActions()
Access protocol actions to exclude from the rule.
|
List<String> |
getNotImpersonationRoleIds()
Impersonation role IDs to exclude from the rule.
|
List<String> |
getNotIpRanges()
IPv4 CIDR ranges to exclude from the rule.
|
List<String> |
getNotUserIds()
User IDs to exclude from the rule.
|
List<String> |
getUserIds()
User IDs to include in the rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setActions(Collection<String> actions)
Access protocol actions to include in the rule.
|
void |
setDateCreated(Date dateCreated)
The date that the rule was created.
|
void |
setDateModified(Date dateModified)
The date that the rule was modified.
|
void |
setDescription(String description)
The rule description.
|
void |
setEffect(String effect)
The rule effect.
|
void |
setImpersonationRoleIds(Collection<String> impersonationRoleIds)
Impersonation role IDs to include in the rule.
|
void |
setIpRanges(Collection<String> ipRanges)
IPv4 CIDR ranges to include in the rule.
|
void |
setName(String name)
The rule name.
|
void |
setNotActions(Collection<String> notActions)
Access protocol actions to exclude from the rule.
|
void |
setNotImpersonationRoleIds(Collection<String> notImpersonationRoleIds)
Impersonation role IDs to exclude from the rule.
|
void |
setNotIpRanges(Collection<String> notIpRanges)
IPv4 CIDR ranges to exclude from the rule.
|
void |
setNotUserIds(Collection<String> notUserIds)
User IDs to exclude from the rule.
|
void |
setUserIds(Collection<String> userIds)
User IDs to include in the rule.
|
String |
toString()
Returns a string representation of this object.
|
AccessControlRule |
withActions(Collection<String> actions)
Access protocol actions to include in the rule.
|
AccessControlRule |
withActions(String... actions)
Access protocol actions to include in the rule.
|
AccessControlRule |
withDateCreated(Date dateCreated)
The date that the rule was created.
|
AccessControlRule |
withDateModified(Date dateModified)
The date that the rule was modified.
|
AccessControlRule |
withDescription(String description)
The rule description.
|
AccessControlRule |
withEffect(AccessControlRuleEffect effect)
The rule effect.
|
AccessControlRule |
withEffect(String effect)
The rule effect.
|
AccessControlRule |
withImpersonationRoleIds(Collection<String> impersonationRoleIds)
Impersonation role IDs to include in the rule.
|
AccessControlRule |
withImpersonationRoleIds(String... impersonationRoleIds)
Impersonation role IDs to include in the rule.
|
AccessControlRule |
withIpRanges(Collection<String> ipRanges)
IPv4 CIDR ranges to include in the rule.
|
AccessControlRule |
withIpRanges(String... ipRanges)
IPv4 CIDR ranges to include in the rule.
|
AccessControlRule |
withName(String name)
The rule name.
|
AccessControlRule |
withNotActions(Collection<String> notActions)
Access protocol actions to exclude from the rule.
|
AccessControlRule |
withNotActions(String... notActions)
Access protocol actions to exclude from the rule.
|
AccessControlRule |
withNotImpersonationRoleIds(Collection<String> notImpersonationRoleIds)
Impersonation role IDs to exclude from the rule.
|
AccessControlRule |
withNotImpersonationRoleIds(String... notImpersonationRoleIds)
Impersonation role IDs to exclude from the rule.
|
AccessControlRule |
withNotIpRanges(Collection<String> notIpRanges)
IPv4 CIDR ranges to exclude from the rule.
|
AccessControlRule |
withNotIpRanges(String... notIpRanges)
IPv4 CIDR ranges to exclude from the rule.
|
AccessControlRule |
withNotUserIds(Collection<String> notUserIds)
User IDs to exclude from the rule.
|
AccessControlRule |
withNotUserIds(String... notUserIds)
User IDs to exclude from the rule.
|
AccessControlRule |
withUserIds(Collection<String> userIds)
User IDs to include in the rule.
|
AccessControlRule |
withUserIds(String... userIds)
User IDs to include in the rule.
|
public void setName(String name)
The rule name.
name - The rule name.public String getName()
The rule name.
public AccessControlRule withName(String name)
The rule name.
name - The rule name.public void setEffect(String effect)
The rule effect.
effect - The rule effect.AccessControlRuleEffectpublic String getEffect()
The rule effect.
AccessControlRuleEffectpublic AccessControlRule withEffect(String effect)
The rule effect.
effect - The rule effect.AccessControlRuleEffectpublic AccessControlRule withEffect(AccessControlRuleEffect effect)
The rule effect.
effect - The rule effect.AccessControlRuleEffectpublic void setDescription(String description)
The rule description.
description - The rule description.public String getDescription()
The rule description.
public AccessControlRule withDescription(String description)
The rule description.
description - The rule description.public List<String> getIpRanges()
IPv4 CIDR ranges to include in the rule.
public void setIpRanges(Collection<String> ipRanges)
IPv4 CIDR ranges to include in the rule.
ipRanges - IPv4 CIDR ranges to include in the rule.public AccessControlRule withIpRanges(String... ipRanges)
IPv4 CIDR ranges to include in the rule.
NOTE: This method appends the values to the existing list (if any). Use
setIpRanges(java.util.Collection) or withIpRanges(java.util.Collection) if you want to override
the existing values.
ipRanges - IPv4 CIDR ranges to include in the rule.public AccessControlRule withIpRanges(Collection<String> ipRanges)
IPv4 CIDR ranges to include in the rule.
ipRanges - IPv4 CIDR ranges to include in the rule.public List<String> getNotIpRanges()
IPv4 CIDR ranges to exclude from the rule.
public void setNotIpRanges(Collection<String> notIpRanges)
IPv4 CIDR ranges to exclude from the rule.
notIpRanges - IPv4 CIDR ranges to exclude from the rule.public AccessControlRule withNotIpRanges(String... notIpRanges)
IPv4 CIDR ranges to exclude from the rule.
NOTE: This method appends the values to the existing list (if any). Use
setNotIpRanges(java.util.Collection) or withNotIpRanges(java.util.Collection) if you want to
override the existing values.
notIpRanges - IPv4 CIDR ranges to exclude from the rule.public AccessControlRule withNotIpRanges(Collection<String> notIpRanges)
IPv4 CIDR ranges to exclude from the rule.
notIpRanges - IPv4 CIDR ranges to exclude from the rule.public List<String> getActions()
Access protocol actions to include in the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook,
and WebMail.
ActiveSync,
AutoDiscover, EWS, IMAP, SMTP,
WindowsOutlook, and WebMail.public void setActions(Collection<String> actions)
Access protocol actions to include in the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook,
and WebMail.
actions - Access protocol actions to include in the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP,
WindowsOutlook, and WebMail.public AccessControlRule withActions(String... actions)
Access protocol actions to include in the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook,
and WebMail.
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 - Access protocol actions to include in the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP,
WindowsOutlook, and WebMail.public AccessControlRule withActions(Collection<String> actions)
Access protocol actions to include in the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook,
and WebMail.
actions - Access protocol actions to include in the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP,
WindowsOutlook, and WebMail.public List<String> getNotActions()
Access protocol actions to exclude from the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook,
and WebMail.
ActiveSync,
AutoDiscover, EWS, IMAP, SMTP,
WindowsOutlook, and WebMail.public void setNotActions(Collection<String> notActions)
Access protocol actions to exclude from the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook,
and WebMail.
notActions - Access protocol actions to exclude from the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP,
WindowsOutlook, and WebMail.public AccessControlRule withNotActions(String... notActions)
Access protocol actions to exclude from the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook,
and WebMail.
NOTE: This method appends the values to the existing list (if any). Use
setNotActions(java.util.Collection) or withNotActions(java.util.Collection) if you want to
override the existing values.
notActions - Access protocol actions to exclude from the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP,
WindowsOutlook, and WebMail.public AccessControlRule withNotActions(Collection<String> notActions)
Access protocol actions to exclude from the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook,
and WebMail.
notActions - Access protocol actions to exclude from the rule. Valid values include ActiveSync,
AutoDiscover, EWS, IMAP, SMTP,
WindowsOutlook, and WebMail.public List<String> getUserIds()
User IDs to include in the rule.
public void setUserIds(Collection<String> userIds)
User IDs to include in the rule.
userIds - User IDs to include in the rule.public AccessControlRule withUserIds(String... userIds)
User IDs to include in the rule.
NOTE: This method appends the values to the existing list (if any). Use
setUserIds(java.util.Collection) or withUserIds(java.util.Collection) if you want to override
the existing values.
userIds - User IDs to include in the rule.public AccessControlRule withUserIds(Collection<String> userIds)
User IDs to include in the rule.
userIds - User IDs to include in the rule.public List<String> getNotUserIds()
User IDs to exclude from the rule.
public void setNotUserIds(Collection<String> notUserIds)
User IDs to exclude from the rule.
notUserIds - User IDs to exclude from the rule.public AccessControlRule withNotUserIds(String... notUserIds)
User IDs to exclude from the rule.
NOTE: This method appends the values to the existing list (if any). Use
setNotUserIds(java.util.Collection) or withNotUserIds(java.util.Collection) if you want to
override the existing values.
notUserIds - User IDs to exclude from the rule.public AccessControlRule withNotUserIds(Collection<String> notUserIds)
User IDs to exclude from the rule.
notUserIds - User IDs to exclude from the rule.public void setDateCreated(Date dateCreated)
The date that the rule was created.
dateCreated - The date that the rule was created.public Date getDateCreated()
The date that the rule was created.
public AccessControlRule withDateCreated(Date dateCreated)
The date that the rule was created.
dateCreated - The date that the rule was created.public void setDateModified(Date dateModified)
The date that the rule was modified.
dateModified - The date that the rule was modified.public Date getDateModified()
The date that the rule was modified.
public AccessControlRule withDateModified(Date dateModified)
The date that the rule was modified.
dateModified - The date that the rule was modified.public List<String> getImpersonationRoleIds()
Impersonation role IDs to include in the rule.
public void setImpersonationRoleIds(Collection<String> impersonationRoleIds)
Impersonation role IDs to include in the rule.
impersonationRoleIds - Impersonation role IDs to include in the rule.public AccessControlRule withImpersonationRoleIds(String... impersonationRoleIds)
Impersonation role IDs to include in the rule.
NOTE: This method appends the values to the existing list (if any). Use
setImpersonationRoleIds(java.util.Collection) or withImpersonationRoleIds(java.util.Collection)
if you want to override the existing values.
impersonationRoleIds - Impersonation role IDs to include in the rule.public AccessControlRule withImpersonationRoleIds(Collection<String> impersonationRoleIds)
Impersonation role IDs to include in the rule.
impersonationRoleIds - Impersonation role IDs to include in the rule.public List<String> getNotImpersonationRoleIds()
Impersonation role IDs to exclude from the rule.
public void setNotImpersonationRoleIds(Collection<String> notImpersonationRoleIds)
Impersonation role IDs to exclude from the rule.
notImpersonationRoleIds - Impersonation role IDs to exclude from the rule.public AccessControlRule withNotImpersonationRoleIds(String... notImpersonationRoleIds)
Impersonation role IDs to exclude from the rule.
NOTE: This method appends the values to the existing list (if any). Use
setNotImpersonationRoleIds(java.util.Collection) or
withNotImpersonationRoleIds(java.util.Collection) if you want to override the existing values.
notImpersonationRoleIds - Impersonation role IDs to exclude from the rule.public AccessControlRule withNotImpersonationRoleIds(Collection<String> notImpersonationRoleIds)
Impersonation role IDs to exclude from the rule.
notImpersonationRoleIds - Impersonation role IDs to exclude from the rule.public String toString()
toString in class ObjectObject.toString()public AccessControlRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.