@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MobileDeviceAccessRule extends Object implements Serializable, Cloneable, StructuredPojo
A rule that controls access to mobile devices for an WorkMail group.
Constructor and Description |
---|
MobileDeviceAccessRule() |
Modifier and Type | Method and Description |
---|---|
MobileDeviceAccessRule |
clone() |
boolean |
equals(Object obj) |
Date |
getDateCreated()
The date and time at which an access rule was created.
|
Date |
getDateModified()
The date and time at which an access rule was modified.
|
String |
getDescription()
The description of a mobile access rule.
|
List<String> |
getDeviceModels()
Device models that a rule will match.
|
List<String> |
getDeviceOperatingSystems()
Device operating systems that a rule will match.
|
List<String> |
getDeviceTypes()
Device types that a rule will match.
|
List<String> |
getDeviceUserAgents()
Device user agents that a rule will match.
|
String |
getEffect()
The effect of the rule when it matches.
|
String |
getMobileDeviceAccessRuleId()
The ID assigned to a mobile access rule.
|
String |
getName()
The name of a mobile access rule.
|
List<String> |
getNotDeviceModels()
Device models that a rule will not match.
|
List<String> |
getNotDeviceOperatingSystems()
Device operating systems that a rule will not match.
|
List<String> |
getNotDeviceTypes()
Device types that a rule will not match.
|
List<String> |
getNotDeviceUserAgents()
Device user agents that a rule will not match.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDateCreated(Date dateCreated)
The date and time at which an access rule was created.
|
void |
setDateModified(Date dateModified)
The date and time at which an access rule was modified.
|
void |
setDescription(String description)
The description of a mobile access rule.
|
void |
setDeviceModels(Collection<String> deviceModels)
Device models that a rule will match.
|
void |
setDeviceOperatingSystems(Collection<String> deviceOperatingSystems)
Device operating systems that a rule will match.
|
void |
setDeviceTypes(Collection<String> deviceTypes)
Device types that a rule will match.
|
void |
setDeviceUserAgents(Collection<String> deviceUserAgents)
Device user agents that a rule will match.
|
void |
setEffect(String effect)
The effect of the rule when it matches.
|
void |
setMobileDeviceAccessRuleId(String mobileDeviceAccessRuleId)
The ID assigned to a mobile access rule.
|
void |
setName(String name)
The name of a mobile access rule.
|
void |
setNotDeviceModels(Collection<String> notDeviceModels)
Device models that a rule will not match.
|
void |
setNotDeviceOperatingSystems(Collection<String> notDeviceOperatingSystems)
Device operating systems that a rule will not match.
|
void |
setNotDeviceTypes(Collection<String> notDeviceTypes)
Device types that a rule will not match.
|
void |
setNotDeviceUserAgents(Collection<String> notDeviceUserAgents)
Device user agents that a rule will not match.
|
String |
toString()
Returns a string representation of this object.
|
MobileDeviceAccessRule |
withDateCreated(Date dateCreated)
The date and time at which an access rule was created.
|
MobileDeviceAccessRule |
withDateModified(Date dateModified)
The date and time at which an access rule was modified.
|
MobileDeviceAccessRule |
withDescription(String description)
The description of a mobile access rule.
|
MobileDeviceAccessRule |
withDeviceModels(Collection<String> deviceModels)
Device models that a rule will match.
|
MobileDeviceAccessRule |
withDeviceModels(String... deviceModels)
Device models that a rule will match.
|
MobileDeviceAccessRule |
withDeviceOperatingSystems(Collection<String> deviceOperatingSystems)
Device operating systems that a rule will match.
|
MobileDeviceAccessRule |
withDeviceOperatingSystems(String... deviceOperatingSystems)
Device operating systems that a rule will match.
|
MobileDeviceAccessRule |
withDeviceTypes(Collection<String> deviceTypes)
Device types that a rule will match.
|
MobileDeviceAccessRule |
withDeviceTypes(String... deviceTypes)
Device types that a rule will match.
|
MobileDeviceAccessRule |
withDeviceUserAgents(Collection<String> deviceUserAgents)
Device user agents that a rule will match.
|
MobileDeviceAccessRule |
withDeviceUserAgents(String... deviceUserAgents)
Device user agents that a rule will match.
|
MobileDeviceAccessRule |
withEffect(MobileDeviceAccessRuleEffect effect)
The effect of the rule when it matches.
|
MobileDeviceAccessRule |
withEffect(String effect)
The effect of the rule when it matches.
|
MobileDeviceAccessRule |
withMobileDeviceAccessRuleId(String mobileDeviceAccessRuleId)
The ID assigned to a mobile access rule.
|
MobileDeviceAccessRule |
withName(String name)
The name of a mobile access rule.
|
MobileDeviceAccessRule |
withNotDeviceModels(Collection<String> notDeviceModels)
Device models that a rule will not match.
|
MobileDeviceAccessRule |
withNotDeviceModels(String... notDeviceModels)
Device models that a rule will not match.
|
MobileDeviceAccessRule |
withNotDeviceOperatingSystems(Collection<String> notDeviceOperatingSystems)
Device operating systems that a rule will not match.
|
MobileDeviceAccessRule |
withNotDeviceOperatingSystems(String... notDeviceOperatingSystems)
Device operating systems that a rule will not match.
|
MobileDeviceAccessRule |
withNotDeviceTypes(Collection<String> notDeviceTypes)
Device types that a rule will not match.
|
MobileDeviceAccessRule |
withNotDeviceTypes(String... notDeviceTypes)
Device types that a rule will not match.
|
MobileDeviceAccessRule |
withNotDeviceUserAgents(Collection<String> notDeviceUserAgents)
Device user agents that a rule will not match.
|
MobileDeviceAccessRule |
withNotDeviceUserAgents(String... notDeviceUserAgents)
Device user agents that a rule will not match.
|
public void setMobileDeviceAccessRuleId(String mobileDeviceAccessRuleId)
The ID assigned to a mobile access rule.
mobileDeviceAccessRuleId
- The ID assigned to a mobile access rule.public String getMobileDeviceAccessRuleId()
The ID assigned to a mobile access rule.
public MobileDeviceAccessRule withMobileDeviceAccessRuleId(String mobileDeviceAccessRuleId)
The ID assigned to a mobile access rule.
mobileDeviceAccessRuleId
- The ID assigned to a mobile access rule.public void setName(String name)
The name of a mobile access rule.
name
- The name of a mobile access rule.public String getName()
The name of a mobile access rule.
public MobileDeviceAccessRule withName(String name)
The name of a mobile access rule.
name
- The name of a mobile access rule.public void setDescription(String description)
The description of a mobile access rule.
description
- The description of a mobile access rule.public String getDescription()
The description of a mobile access rule.
public MobileDeviceAccessRule withDescription(String description)
The description of a mobile access rule.
description
- The description of a mobile access rule.public void setEffect(String effect)
The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
effect
- The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.MobileDeviceAccessRuleEffect
public String getEffect()
The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
ALLOW
or DENY
.MobileDeviceAccessRuleEffect
public MobileDeviceAccessRule withEffect(String effect)
The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
effect
- The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.MobileDeviceAccessRuleEffect
public MobileDeviceAccessRule withEffect(MobileDeviceAccessRuleEffect effect)
The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
effect
- The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.MobileDeviceAccessRuleEffect
public List<String> getDeviceTypes()
Device types that a rule will match.
public void setDeviceTypes(Collection<String> deviceTypes)
Device types that a rule will match.
deviceTypes
- Device types that a rule will match.public MobileDeviceAccessRule withDeviceTypes(String... deviceTypes)
Device types that a rule will match.
NOTE: This method appends the values to the existing list (if any). Use
setDeviceTypes(java.util.Collection)
or withDeviceTypes(java.util.Collection)
if you want to
override the existing values.
deviceTypes
- Device types that a rule will match.public MobileDeviceAccessRule withDeviceTypes(Collection<String> deviceTypes)
Device types that a rule will match.
deviceTypes
- Device types that a rule will match.public List<String> getNotDeviceTypes()
Device types that a rule will not match. All other device types will match.
public void setNotDeviceTypes(Collection<String> notDeviceTypes)
Device types that a rule will not match. All other device types will match.
notDeviceTypes
- Device types that a rule will not match. All other device types will match.public MobileDeviceAccessRule withNotDeviceTypes(String... notDeviceTypes)
Device types that a rule will not match. All other device types will match.
NOTE: This method appends the values to the existing list (if any). Use
setNotDeviceTypes(java.util.Collection)
or withNotDeviceTypes(java.util.Collection)
if you want
to override the existing values.
notDeviceTypes
- Device types that a rule will not match. All other device types will match.public MobileDeviceAccessRule withNotDeviceTypes(Collection<String> notDeviceTypes)
Device types that a rule will not match. All other device types will match.
notDeviceTypes
- Device types that a rule will not match. All other device types will match.public List<String> getDeviceModels()
Device models that a rule will match.
public void setDeviceModels(Collection<String> deviceModels)
Device models that a rule will match.
deviceModels
- Device models that a rule will match.public MobileDeviceAccessRule withDeviceModels(String... deviceModels)
Device models that a rule will match.
NOTE: This method appends the values to the existing list (if any). Use
setDeviceModels(java.util.Collection)
or withDeviceModels(java.util.Collection)
if you want to
override the existing values.
deviceModels
- Device models that a rule will match.public MobileDeviceAccessRule withDeviceModels(Collection<String> deviceModels)
Device models that a rule will match.
deviceModels
- Device models that a rule will match.public List<String> getNotDeviceModels()
Device models that a rule will not match. All other device models will match.
public void setNotDeviceModels(Collection<String> notDeviceModels)
Device models that a rule will not match. All other device models will match.
notDeviceModels
- Device models that a rule will not match. All other device models will match.public MobileDeviceAccessRule withNotDeviceModels(String... notDeviceModels)
Device models that a rule will not match. All other device models will match.
NOTE: This method appends the values to the existing list (if any). Use
setNotDeviceModels(java.util.Collection)
or withNotDeviceModels(java.util.Collection)
if you
want to override the existing values.
notDeviceModels
- Device models that a rule will not match. All other device models will match.public MobileDeviceAccessRule withNotDeviceModels(Collection<String> notDeviceModels)
Device models that a rule will not match. All other device models will match.
notDeviceModels
- Device models that a rule will not match. All other device models will match.public List<String> getDeviceOperatingSystems()
Device operating systems that a rule will match.
public void setDeviceOperatingSystems(Collection<String> deviceOperatingSystems)
Device operating systems that a rule will match.
deviceOperatingSystems
- Device operating systems that a rule will match.public MobileDeviceAccessRule withDeviceOperatingSystems(String... deviceOperatingSystems)
Device operating systems that a rule will match.
NOTE: This method appends the values to the existing list (if any). Use
setDeviceOperatingSystems(java.util.Collection)
or
withDeviceOperatingSystems(java.util.Collection)
if you want to override the existing values.
deviceOperatingSystems
- Device operating systems that a rule will match.public MobileDeviceAccessRule withDeviceOperatingSystems(Collection<String> deviceOperatingSystems)
Device operating systems that a rule will match.
deviceOperatingSystems
- Device operating systems that a rule will match.public List<String> getNotDeviceOperatingSystems()
Device operating systems that a rule will not match. All other device types will match.
public void setNotDeviceOperatingSystems(Collection<String> notDeviceOperatingSystems)
Device operating systems that a rule will not match. All other device types will match.
notDeviceOperatingSystems
- Device operating systems that a rule will not match. All other device types will match.public MobileDeviceAccessRule withNotDeviceOperatingSystems(String... notDeviceOperatingSystems)
Device operating systems that a rule will not match. All other device types will match.
NOTE: This method appends the values to the existing list (if any). Use
setNotDeviceOperatingSystems(java.util.Collection)
or
withNotDeviceOperatingSystems(java.util.Collection)
if you want to override the existing values.
notDeviceOperatingSystems
- Device operating systems that a rule will not match. All other device types will match.public MobileDeviceAccessRule withNotDeviceOperatingSystems(Collection<String> notDeviceOperatingSystems)
Device operating systems that a rule will not match. All other device types will match.
notDeviceOperatingSystems
- Device operating systems that a rule will not match. All other device types will match.public List<String> getDeviceUserAgents()
Device user agents that a rule will match.
public void setDeviceUserAgents(Collection<String> deviceUserAgents)
Device user agents that a rule will match.
deviceUserAgents
- Device user agents that a rule will match.public MobileDeviceAccessRule withDeviceUserAgents(String... deviceUserAgents)
Device user agents that a rule will match.
NOTE: This method appends the values to the existing list (if any). Use
setDeviceUserAgents(java.util.Collection)
or withDeviceUserAgents(java.util.Collection)
if you
want to override the existing values.
deviceUserAgents
- Device user agents that a rule will match.public MobileDeviceAccessRule withDeviceUserAgents(Collection<String> deviceUserAgents)
Device user agents that a rule will match.
deviceUserAgents
- Device user agents that a rule will match.public List<String> getNotDeviceUserAgents()
Device user agents that a rule will not match. All other device user agents will match.
public void setNotDeviceUserAgents(Collection<String> notDeviceUserAgents)
Device user agents that a rule will not match. All other device user agents will match.
notDeviceUserAgents
- Device user agents that a rule will not match. All other device user agents will match.public MobileDeviceAccessRule withNotDeviceUserAgents(String... notDeviceUserAgents)
Device user agents that a rule will not match. All other device user agents will match.
NOTE: This method appends the values to the existing list (if any). Use
setNotDeviceUserAgents(java.util.Collection)
or withNotDeviceUserAgents(java.util.Collection)
if you want to override the existing values.
notDeviceUserAgents
- Device user agents that a rule will not match. All other device user agents will match.public MobileDeviceAccessRule withNotDeviceUserAgents(Collection<String> notDeviceUserAgents)
Device user agents that a rule will not match. All other device user agents will match.
notDeviceUserAgents
- Device user agents that a rule will not match. All other device user agents will match.public void setDateCreated(Date dateCreated)
The date and time at which an access rule was created.
dateCreated
- The date and time at which an access rule was created.public Date getDateCreated()
The date and time at which an access rule was created.
public MobileDeviceAccessRule withDateCreated(Date dateCreated)
The date and time at which an access rule was created.
dateCreated
- The date and time at which an access rule was created.public void setDateModified(Date dateModified)
The date and time at which an access rule was modified.
dateModified
- The date and time at which an access rule was modified.public Date getDateModified()
The date and time at which an access rule was modified.
public MobileDeviceAccessRule withDateModified(Date dateModified)
The date and time at which an access rule was modified.
dateModified
- The date and time at which an access rule was modified.public String toString()
toString
in class Object
Object.toString()
public MobileDeviceAccessRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.