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 DevicePoolclone()booleanequals(Object obj)StringgetArn()The device pool's ARN.StringgetDescription()The device pool's description.StringgetName()The device pool's name.List<Rule>getRules()Information about the device pool's rules.StringgetType()The device pool's type.inthashCode()voidsetArn(String arn)The device pool's ARN.voidsetDescription(String description)The device pool's description.voidsetName(String name)The device pool's name.voidsetRules(Collection<Rule> rules)Information about the device pool's rules.voidsetType(DevicePoolType type)The device pool's type.voidsetType(String type)The device pool's type.StringtoString()Returns a string representation of this object; useful for testing and debugging.DevicePoolwithArn(String arn)The device pool's ARN.DevicePoolwithDescription(String description)The device pool's description.DevicePoolwithName(String name)The device pool's name.DevicePoolwithRules(Rule... rules)Information about the device pool's rules.DevicePoolwithRules(Collection<Rule> rules)Information about the device pool's rules.DevicePoolwithType(DevicePoolType type)The device pool's type.DevicePoolwithType(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DevicePool clone()
-
-