@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable, StructuredPojo
Represents a condition for a device pool. It is passed in as the rules parameter to
CreateDevicePool and UpdateDevicePool.
| Constructor and Description |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
clone() |
boolean |
equals(Object obj) |
String |
getAttribute()
The rule's attribute.
|
String |
getOperator()
The rule's operator.
|
String |
getValue()
The rule's value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttribute(DeviceAttribute attribute)
The rule's attribute.
|
void |
setAttribute(String attribute)
The rule's attribute.
|
void |
setOperator(RuleOperator operator)
The rule's operator.
|
void |
setOperator(String operator)
The rule's operator.
|
void |
setValue(String value)
The rule's value.
|
String |
toString()
Returns a string representation of this object.
|
Rule |
withAttribute(DeviceAttribute attribute)
The rule's attribute.
|
Rule |
withAttribute(String attribute)
The rule's attribute.
|
Rule |
withOperator(RuleOperator operator)
The rule's operator.
|
Rule |
withOperator(String operator)
The rule's operator.
|
Rule |
withValue(String value)
The rule's value.
|
public void setAttribute(String attribute)
The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
attribute - The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to
create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
DeviceAttributepublic String getAttribute()
The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
DeviceAttributepublic Rule withAttribute(String attribute)
The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
attribute - The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to
create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
DeviceAttributepublic void setAttribute(DeviceAttribute attribute)
The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
attribute - The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to
create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
DeviceAttributepublic Rule withAttribute(DeviceAttribute attribute)
The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
attribute - The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to
create or update a device pool.
Allowed values include:
ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example".
PLATFORM: The device platform. Valid values are "ANDROID" or "IOS".
FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET".
MANUFACTURER: The device manufacturer. For example, "Apple".
REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.
REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.
APPIUM_VERSION: The Appium version for the test.
INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
INSTANCE_LABELS: The label of the device instance.
FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE".
DeviceAttributepublic void setOperator(String 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.
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.
RuleOperatorpublic String getOperator()
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.
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.
RuleOperatorpublic Rule withOperator(String 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.
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.
RuleOperatorpublic void setOperator(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.
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.
RuleOperatorpublic Rule withOperator(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.
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.
RuleOperatorpublic void setValue(String value)
The rule's value.
The value must be passed in as a string using escaped quotes.
For example:
"value": "\"ANDROID\""
value - The rule's value.
The value must be passed in as a string using escaped quotes.
For example:
"value": "\"ANDROID\""
public String getValue()
The rule's value.
The value must be passed in as a string using escaped quotes.
For example:
"value": "\"ANDROID\""
The value must be passed in as a string using escaped quotes.
For example:
"value": "\"ANDROID\""
public Rule withValue(String value)
The rule's value.
The value must be passed in as a string using escaped quotes.
For example:
"value": "\"ANDROID\""
value - The rule's value.
The value must be passed in as a string using escaped quotes.
For example:
"value": "\"ANDROID\""
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.