Class CreateDevicePoolRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.devicefarm.model.CreateDevicePoolRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateDevicePoolRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents a request to the create device pool operation.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateDevicePoolRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDevicePoolRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDescription()
The device pool's description.String
getName()
The device pool's name.String
getProjectArn()
The ARN of the project for the device pool.List<Rule>
getRules()
The device pool's rules.int
hashCode()
void
setDescription(String description)
The device pool's description.void
setName(String name)
The device pool's name.void
setProjectArn(String projectArn)
The ARN of the project for the device pool.void
setRules(Collection<Rule> rules)
The device pool's rules.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateDevicePoolRequest
withDescription(String description)
The device pool's description.CreateDevicePoolRequest
withName(String name)
The device pool's name.CreateDevicePoolRequest
withProjectArn(String projectArn)
The ARN of the project for the device pool.CreateDevicePoolRequest
withRules(Rule... rules)
The device pool's rules.CreateDevicePoolRequest
withRules(Collection<Rule> rules)
The device pool's rules.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setProjectArn
public void setProjectArn(String projectArn)
The ARN of the project for the device pool.
- Parameters:
projectArn
- The ARN of the project for the device pool.
-
getProjectArn
public String getProjectArn()
The ARN of the project for the device pool.
- Returns:
- The ARN of the project for the device pool.
-
withProjectArn
public CreateDevicePoolRequest withProjectArn(String projectArn)
The ARN of the project for the device pool.
- Parameters:
projectArn
- The ARN of the project for the device pool.- 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 CreateDevicePoolRequest 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 CreateDevicePoolRequest 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.
-
setRules
public void setRules(Collection<Rule> rules)
The device pool's rules.
- Parameters:
rules
- The device pool's rules.
-
withRules
public CreateDevicePoolRequest withRules(Rule... rules)
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
- The device pool's rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRules
public CreateDevicePoolRequest withRules(Collection<Rule> rules)
The device pool's rules.
- Parameters:
rules
- 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 CreateDevicePoolRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-