@Generated(value="software.amazon.awssdk:codegen") public final class MobileDeviceAccessRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MobileDeviceAccessRule.Builder,MobileDeviceAccessRule>
A rule that controls access to mobile devices for an Amazon WorkMail group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MobileDeviceAccessRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MobileDeviceAccessRule.Builder |
builder() |
Instant |
dateCreated()
The date and time at which an access rule was created.
|
Instant |
dateModified()
The date and time at which an access rule was modified.
|
String |
description()
The description of a mobile access rule.
|
List<String> |
deviceModels()
Device models that a rule will match.
|
List<String> |
deviceOperatingSystems()
Device operating systems that a rule will match.
|
List<String> |
deviceTypes()
Device types that a rule will match.
|
List<String> |
deviceUserAgents()
Device user agents that a rule will match.
|
MobileDeviceAccessRuleEffect |
effect()
The effect of the rule when it matches.
|
String |
effectAsString()
The effect of the rule when it matches.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDeviceModels()
Returns true if the DeviceModels property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasDeviceOperatingSystems()
Returns true if the DeviceOperatingSystems property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
boolean |
hasDeviceTypes()
Returns true if the DeviceTypes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasDeviceUserAgents()
Returns true if the DeviceUserAgents property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasNotDeviceModels()
Returns true if the NotDeviceModels property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasNotDeviceOperatingSystems()
Returns true if the NotDeviceOperatingSystems property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
boolean |
hasNotDeviceTypes()
Returns true if the NotDeviceTypes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasNotDeviceUserAgents()
Returns true if the NotDeviceUserAgents property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
mobileDeviceAccessRuleId()
The ID assigned to a mobile access rule.
|
String |
name()
The name of a mobile access rule.
|
List<String> |
notDeviceModels()
Device models that a rule will not match.
|
List<String> |
notDeviceOperatingSystems()
Device operating systems that a rule will not match.
|
List<String> |
notDeviceTypes()
Device types that a rule will not match.
|
List<String> |
notDeviceUserAgents()
Device user agents that a rule will not match.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MobileDeviceAccessRule.Builder> |
serializableBuilderClass() |
MobileDeviceAccessRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String mobileDeviceAccessRuleId()
The ID assigned to a mobile access rule.
public final String name()
The name of a mobile access rule.
public final String description()
The description of a mobile access rule.
public final MobileDeviceAccessRuleEffect effect()
The effect of the rule when it matches. Allowed values are ALLOW or DENY.
If the service returns an enum value that is not available in the current SDK version, effect will
return MobileDeviceAccessRuleEffect.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from effectAsString().
ALLOW or DENY.MobileDeviceAccessRuleEffectpublic final String effectAsString()
The effect of the rule when it matches. Allowed values are ALLOW or DENY.
If the service returns an enum value that is not available in the current SDK version, effect will
return MobileDeviceAccessRuleEffect.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from effectAsString().
ALLOW or DENY.MobileDeviceAccessRuleEffectpublic final boolean hasDeviceTypes()
public final List<String> deviceTypes()
Device types that a rule will match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDeviceTypes() to see if a value was sent in this field.
public final boolean hasNotDeviceTypes()
public final List<String> notDeviceTypes()
Device types that a rule will not match. All other device types will match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasNotDeviceTypes() to see if a value was sent in this field.
public final boolean hasDeviceModels()
public final List<String> deviceModels()
Device models that a rule will match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDeviceModels() to see if a value was sent in this field.
public final boolean hasNotDeviceModels()
public final List<String> notDeviceModels()
Device models that a rule will not match. All other device models will match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasNotDeviceModels() to see if a value was sent in this field.
public final boolean hasDeviceOperatingSystems()
public final List<String> deviceOperatingSystems()
Device operating systems that a rule will match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDeviceOperatingSystems() to see if a value was sent in this field.
public final boolean hasNotDeviceOperatingSystems()
public final List<String> notDeviceOperatingSystems()
Device operating systems that a rule will not match. All other device types will match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasNotDeviceOperatingSystems() to see if a value was sent in this field.
public final boolean hasDeviceUserAgents()
public final List<String> deviceUserAgents()
Device user agents that a rule will match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDeviceUserAgents() to see if a value was sent in this field.
public final boolean hasNotDeviceUserAgents()
public final List<String> notDeviceUserAgents()
Device user agents that a rule will not match. All other device user agents will match.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasNotDeviceUserAgents() to see if a value was sent in this field.
public final Instant dateCreated()
The date and time at which an access rule was created.
public final Instant dateModified()
The date and time at which an access rule was modified.
public MobileDeviceAccessRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MobileDeviceAccessRule.Builder,MobileDeviceAccessRule>public static MobileDeviceAccessRule.Builder builder()
public static Class<? extends MobileDeviceAccessRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.