public class DevicePool
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a collection of device types.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The device pool's ARN.
|
private java.lang.String |
description
The device pool's description.
|
private java.lang.String |
name
The device pool's name.
|
private java.util.List<Rule> |
rules
Information about the device pool's rules.
|
private java.lang.String |
type
The device pool's type.
|
Constructor and Description |
---|
DevicePool() |
Modifier and Type | Method and Description |
---|---|
DevicePool |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The device pool's ARN.
|
java.lang.String |
getDescription()
The device pool's description.
|
java.lang.String |
getName()
The device pool's name.
|
java.util.List<Rule> |
getRules()
Information about the device pool's rules.
|
java.lang.String |
getType()
The device pool's type.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The device pool's ARN.
|
void |
setDescription(java.lang.String description)
The device pool's description.
|
void |
setName(java.lang.String name)
The device pool's name.
|
void |
setRules(java.util.Collection<Rule> rules)
Information about the device pool's rules.
|
void |
setType(DevicePoolType type)
The device pool's type.
|
void |
setType(java.lang.String type)
The device pool's type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DevicePool |
withArn(java.lang.String arn)
The device pool's ARN.
|
DevicePool |
withDescription(java.lang.String description)
The device pool's description.
|
DevicePool |
withName(java.lang.String name)
The device pool's name.
|
DevicePool |
withRules(java.util.Collection<Rule> rules)
Information about the device pool's rules.
|
DevicePool |
withRules(Rule... rules)
Information about the device pool's rules.
|
DevicePool |
withType(DevicePoolType type)
The device pool's type.
|
DevicePool |
withType(java.lang.String type)
The device pool's type.
|
private java.lang.String arn
The device pool's ARN.
private java.lang.String name
The device pool's name.
private java.lang.String description
The device pool's description.
private java.lang.String type
The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
private java.util.List<Rule> rules
Information about the device pool's rules.
public void setArn(java.lang.String arn)
The device pool's ARN.
arn
- The device pool's ARN.public java.lang.String getArn()
The device pool's ARN.
public DevicePool withArn(java.lang.String arn)
The device pool's ARN.
arn
- The device pool's ARN.public void setName(java.lang.String name)
The device pool's name.
name
- The device pool's name.public java.lang.String getName()
The device pool's name.
public DevicePool withName(java.lang.String name)
The device pool's name.
name
- The device pool's name.public void setDescription(java.lang.String description)
The device pool's description.
description
- The device pool's description.public java.lang.String getDescription()
The device pool's description.
public DevicePool withDescription(java.lang.String description)
The device pool's description.
description
- The device pool's description.public void setType(java.lang.String type)
The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
type
- The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
DevicePoolType
public java.lang.String getType()
The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
DevicePoolType
public DevicePool withType(java.lang.String type)
The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
type
- The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
DevicePoolType
public void setType(DevicePoolType type)
The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
type
- The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
DevicePoolType
public DevicePool withType(DevicePoolType type)
The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
type
- The device pool's type.
Allowed values include:
CURATED: A device pool that is created and managed by AWS Device Farm.
PRIVATE: A device pool that is created and managed by the device pool developer.
DevicePoolType
public java.util.List<Rule> getRules()
Information about the device pool's rules.
public void setRules(java.util.Collection<Rule> rules)
Information about the device pool's rules.
rules
- Information about the device pool's rules.public DevicePool withRules(Rule... rules)
Information about the device pool's rules.
NOTE: This method appends the values to the existing list (if
any). Use setRules(java.util.Collection)
or
withRules(java.util.Collection)
if you want to override the
existing values.
rules
- Information about the device pool's rules.public DevicePool withRules(java.util.Collection<Rule> rules)
Information about the device pool's rules.
rules
- Information about the device pool's rules.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DevicePool clone()
clone
in class java.lang.Object