@Generated(value="software.amazon.awssdk:codegen") public final class Rule extends Object implements StructuredPojo, ToCopyableBuilder<Rule.Builder,Rule>
Represents a condition for a device pool.
Modifier and Type | Class and Description |
---|---|
static interface |
Rule.Builder |
Modifier and Type | Method and Description |
---|---|
DeviceAttribute |
attribute()
The rule's stringified attribute.
|
String |
attributeAsString()
The rule's stringified attribute.
|
static Rule.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
RuleOperator |
operator()
The rule's operator.
|
String |
operatorAsString()
The rule's operator.
|
static Class<? extends Rule.Builder> |
serializableBuilderClass() |
Rule.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
value()
The rule's value.
|
copy
public DeviceAttribute attribute()
The rule's stringified attribute. For example, specify the value as "\"abc\""
.
Allowed values include:
ARN: The ARN.
FORM_FACTOR: The form factor (for example, phone or tablet).
MANUFACTURER: The manufacturer.
PLATFORM: The platform (for example, Android or iOS).
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
APPIUM_VERSION: The Appium version for the test.
If the service returns an enum value that is not available in the current SDK version, attribute
will
return DeviceAttribute.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
attributeAsString()
.
"\"abc\""
.
Allowed values include:
ARN: The ARN.
FORM_FACTOR: The form factor (for example, phone or tablet).
MANUFACTURER: The manufacturer.
PLATFORM: The platform (for example, Android or iOS).
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
APPIUM_VERSION: The Appium version for the test.
DeviceAttribute
public String attributeAsString()
The rule's stringified attribute. For example, specify the value as "\"abc\""
.
Allowed values include:
ARN: The ARN.
FORM_FACTOR: The form factor (for example, phone or tablet).
MANUFACTURER: The manufacturer.
PLATFORM: The platform (for example, Android or iOS).
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
APPIUM_VERSION: The Appium version for the test.
If the service returns an enum value that is not available in the current SDK version, attribute
will
return DeviceAttribute.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
attributeAsString()
.
"\"abc\""
.
Allowed values include:
ARN: The ARN.
FORM_FACTOR: The form factor (for example, phone or tablet).
MANUFACTURER: The manufacturer.
PLATFORM: The platform (for example, Android or iOS).
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
APPIUM_VERSION: The Appium version for the test.
DeviceAttribute
public RuleOperator operator()
The rule's operator.
EQUALS: The equals operator.
GREATER_THAN: The greater-than operator.
IN: The in operator.
LESS_THAN: The less-than operator.
NOT_IN: The not-in operator.
CONTAINS: The contains operator.
If the service returns an enum value that is not available in the current SDK version, operator
will
return RuleOperator.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
operatorAsString()
.
EQUALS: The equals operator.
GREATER_THAN: The greater-than operator.
IN: The in operator.
LESS_THAN: The less-than operator.
NOT_IN: The not-in operator.
CONTAINS: The contains operator.
RuleOperator
public String operatorAsString()
The rule's operator.
EQUALS: The equals operator.
GREATER_THAN: The greater-than operator.
IN: The in operator.
LESS_THAN: The less-than operator.
NOT_IN: The not-in operator.
CONTAINS: The contains operator.
If the service returns an enum value that is not available in the current SDK version, operator
will
return RuleOperator.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
operatorAsString()
.
EQUALS: The equals operator.
GREATER_THAN: The greater-than operator.
IN: The in operator.
LESS_THAN: The less-than operator.
NOT_IN: The not-in operator.
CONTAINS: The contains operator.
RuleOperator
public String value()
The rule's value.
public Rule.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Rule.Builder,Rule>
public static Rule.Builder builder()
public static Class<? extends Rule.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.