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