Class DevicePool
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.DevicePool
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DevicePool extends Object implements Serializable, Cloneable
Represents a collection of device types.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DevicePool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DevicePool
clone()
boolean
equals(Object obj)
String
getArn()
The device pool's ARN.String
getDescription()
The device pool's description.String
getName()
The device pool's name.List<Rule>
getRules()
Information about the device pool's rules.String
getType()
The device pool's type.int
hashCode()
void
setArn(String arn)
The device pool's ARN.void
setDescription(String description)
The device pool's description.void
setName(String name)
The device pool's name.void
setRules(Collection<Rule> rules)
Information about the device pool's rules.void
setType(DevicePoolType type)
The device pool's type.void
setType(String type)
The device pool's type.String
toString()
Returns a string representation of this object; useful for testing and debugging.DevicePool
withArn(String arn)
The device pool's ARN.DevicePool
withDescription(String description)
The device pool's description.DevicePool
withName(String name)
The device pool's name.DevicePool
withRules(Rule... rules)
Information about the device pool's rules.DevicePool
withRules(Collection<Rule> rules)
Information about the device pool's rules.DevicePool
withType(DevicePoolType type)
The device pool's type.DevicePool
withType(String type)
The device pool's type.
-
-
-
Method Detail
-
setArn
public void setArn(String arn)
The device pool's ARN.
- Parameters:
arn
- The device pool's ARN.
-
getArn
public String getArn()
The device pool's ARN.
- Returns:
- The device pool's ARN.
-
withArn
public DevicePool withArn(String arn)
The device pool's ARN.
- Parameters:
arn
- The device pool's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The device pool's name.
- Parameters:
name
- The device pool's name.
-
getName
public String getName()
The device pool's name.
- Returns:
- The device pool's name.
-
withName
public DevicePool withName(String name)
The device pool's name.
- Parameters:
name
- The device pool's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The device pool's description.
- Parameters:
description
- The device pool's description.
-
getDescription
public String getDescription()
The device pool's description.
- Returns:
- The device pool's description.
-
withDescription
public DevicePool withDescription(String description)
The device pool's description.
- Parameters:
description
- The device pool's description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(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.
- Parameters:
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.
-
- See Also:
DevicePoolType
-
-
getType
public 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.
- Returns:
- 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.
-
- See Also:
DevicePoolType
-
-
withType
public DevicePool withType(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DevicePoolType
-
-
setType
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.
- Parameters:
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.
-
- See Also:
DevicePoolType
-
-
withType
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DevicePoolType
-
-
getRules
public List<Rule> getRules()
Information about the device pool's rules.
- Returns:
- Information about the device pool's rules.
-
setRules
public void setRules(Collection<Rule> rules)
Information about the device pool's rules.
- Parameters:
rules
- Information about the device pool's rules.
-
withRules
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)
orwithRules(java.util.Collection)
if you want to override the existing values.- Parameters:
rules
- Information about the device pool's rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRules
public DevicePool withRules(Collection<Rule> rules)
Information about the device pool's rules.
- Parameters:
rules
- Information about the device pool's rules.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DevicePool clone()
-
-