@Generated(value="software.amazon.awssdk:codegen") public final class CreateMobileDeviceAccessRuleRequest extends WorkMailRequest implements ToCopyableBuilder<CreateMobileDeviceAccessRuleRequest.Builder,CreateMobileDeviceAccessRuleRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateMobileDeviceAccessRuleRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateMobileDeviceAccessRuleRequest.Builder |
builder() |
String |
clientToken()
The idempotency token for the client request.
|
String |
description()
The rule description.
|
List<String> |
deviceModels()
Device models that the rule will match.
|
List<String> |
deviceOperatingSystems()
Device operating systems that the rule will match.
|
List<String> |
deviceTypes()
Device types that the rule will match.
|
List<String> |
deviceUserAgents()
Device user agents that the 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 |
name()
The rule name.
|
List<String> |
notDeviceModels()
Device models that the rule will not match.
|
List<String> |
notDeviceOperatingSystems()
Device operating systems that the rule will not match.
|
List<String> |
notDeviceTypes()
Device types that the rule will not match.
|
List<String> |
notDeviceUserAgents()
Device user agents that the rule will not match.
|
String |
organizationId()
The Amazon WorkMail organization under which the rule will be created.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateMobileDeviceAccessRuleRequest.Builder> |
serializableBuilderClass() |
CreateMobileDeviceAccessRuleRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String organizationId()
The Amazon WorkMail organization under which the rule will be created.
public final String clientToken()
The idempotency token for the client request.
public final String name()
The rule name.
public final String description()
The rule description.
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 the 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 the 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 the 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 the 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 the 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 the rule will not match. All other device operating systems 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 the 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 the 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 CreateMobileDeviceAccessRuleRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateMobileDeviceAccessRuleRequest.Builder,CreateMobileDeviceAccessRuleRequest>toBuilder in class WorkMailRequestpublic static CreateMobileDeviceAccessRuleRequest.Builder builder()
public static Class<? extends CreateMobileDeviceAccessRuleRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.