Class Rule
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.Rule
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Rule extends Object implements Serializable, Cloneable
Represents a condition for a device pool.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Rule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ruleclone()booleanequals(Object obj)StringgetAttribute()The rule's stringified attribute.StringgetOperator()The rule's operator.StringgetValue()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.voidsetValue(String value)The rule's value.StringtoString()Returns a string representation of this object; useful for testing and debugging.RulewithAttribute(DeviceAttribute attribute)The rule's stringified attribute.RulewithAttribute(String attribute)The rule's stringified attribute.RulewithOperator(RuleOperator operator)The rule's operator.RulewithOperator(String operator)The rule's operator.RulewithValue(String value)The rule's value.
-
-
-
Method Detail
-
setAttribute
public void setAttribute(String 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).
- 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:
DeviceAttribute
-
-
getAttribute
public String 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:
DeviceAttribute
-
-
withAttribute
public Rule withAttribute(String 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).
- 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:
DeviceAttribute
-
-
setAttribute
public void setAttribute(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).
- 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:
DeviceAttribute
-
-
withAttribute
public Rule withAttribute(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).
- 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:
DeviceAttribute
-
-
setOperator
public 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.
- 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:
RuleOperator
-
-
getOperator
public 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.
- 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:
RuleOperator
-
-
withOperator
public 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.
- 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:
RuleOperator
-
-
setOperator
public 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.
- 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:
RuleOperator
-
-
withOperator
public 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.
- 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:
RuleOperator
-
-
setValue
public void setValue(String value)
The rule's value.
- Parameters:
value- The rule's value.
-
getValue
public String getValue()
The rule's value.
- Returns:
- The rule's value.
-
withValue
public Rule withValue(String value)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-