@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()
For responses, this returns true if the service returned a value for the DeviceModels property.
|
boolean |
hasDeviceOperatingSystems()
For responses, this returns true if the service returned a value for the DeviceOperatingSystems property.
|
boolean |
hasDeviceTypes()
For responses, this returns true if the service returned a value for the DeviceTypes property.
|
boolean |
hasDeviceUserAgents()
For responses, this returns true if the service returned a value for the DeviceUserAgents property.
|
int |
hashCode() |
boolean |
hasNotDeviceModels()
For responses, this returns true if the service returned a value for the NotDeviceModels property.
|
boolean |
hasNotDeviceOperatingSystems()
For responses, this returns true if the service returned a value for the NotDeviceOperatingSystems property.
|
boolean |
hasNotDeviceTypes()
For responses, this returns true if the service returned a value for the NotDeviceTypes property.
|
boolean |
hasNotDeviceUserAgents()
For responses, this returns true if the service returned a value for the NotDeviceUserAgents property.
|
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()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDeviceTypes() method.
public final boolean hasNotDeviceTypes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNotDeviceTypes() method.
public final boolean hasDeviceModels()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDeviceModels() method.
public final boolean hasNotDeviceModels()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNotDeviceModels() method.
public final boolean hasDeviceOperatingSystems()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDeviceOperatingSystems() method.
public final boolean hasNotDeviceOperatingSystems()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNotDeviceOperatingSystems() method.
public final boolean hasDeviceUserAgents()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDeviceUserAgents() method.
public final boolean hasNotDeviceUserAgents()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNotDeviceUserAgents() method.
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 © 2022. All rights reserved.