Class Rule
- All Implemented Interfaces:
Serializable, Cloneable
Represents a condition for a device pool.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe rule's stringified attribute.The rule's operator.getValue()The rule's value.inthashCode()voidsetAttribute(DeviceAttribute attribute) The rule's stringified attribute.voidsetAttribute(String attribute) The rule's stringified attribute.voidsetOperator(RuleOperator operator) The rule's operator.voidsetOperator(String operator) The rule's operator.voidThe rule's value.toString()Returns a string representation of this object; useful for testing and debugging.withAttribute(DeviceAttribute attribute) The rule's stringified attribute.withAttribute(String attribute) The rule's stringified attribute.withOperator(RuleOperator operator) The rule's operator.withOperator(String operator) The rule's operator.The rule's value.
-
Constructor Details
-
Rule
public Rule()
-
-
Method Details
-
setAttribute
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).
- Parameters:
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).
-
- See Also:
-
-
getAttribute
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).
- Returns:
- 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).
-
- See Also:
-
-
withAttribute
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).
- Parameters:
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).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setAttribute
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).
- Parameters:
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).
-
- See Also:
-
-
withAttribute
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).
- Parameters:
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).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setOperator
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.
- Parameters:
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.
-
- See Also:
-
-
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.
- Returns:
- 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.
-
- See Also:
-
-
withOperator
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setOperator
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.
- Parameters:
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.
-
- See Also:
-
-
withOperator
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setValue
-
getValue
-
withValue
-
toString
-
equals
-
hashCode
-
clone
-