Class ListDevicesResult
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.ListDevicesResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ListDevicesResult extends Object implements Serializable, Cloneable
Represents the result of a list devices operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListDevicesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListDevicesResultclone()booleanequals(Object obj)List<Device>getDevices()Information about the devices.StringgetNextToken()If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.inthashCode()voidsetDevices(Collection<Device> devices)Information about the devices.voidsetNextToken(String nextToken)If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListDevicesResultwithDevices(Device... devices)Information about the devices.ListDevicesResultwithDevices(Collection<Device> devices)Information about the devices.ListDevicesResultwithNextToken(String nextToken)If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
-
-
-
Method Detail
-
getDevices
public List<Device> getDevices()
Information about the devices.
- Returns:
- Information about the devices.
-
setDevices
public void setDevices(Collection<Device> devices)
Information about the devices.
- Parameters:
devices- Information about the devices.
-
withDevices
public ListDevicesResult withDevices(Device... devices)
Information about the devices.
NOTE: This method appends the values to the existing list (if any). Use
setDevices(java.util.Collection)orwithDevices(java.util.Collection)if you want to override the existing values.- Parameters:
devices- Information about the devices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDevices
public ListDevicesResult withDevices(Collection<Device> devices)
Information about the devices.
- Parameters:
devices- Information about the devices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
- Parameters:
nextToken- If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
-
getNextToken
public String getNextToken()
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
- Returns:
- If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
-
withNextToken
public ListDevicesResult withNextToken(String nextToken)
If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.
- Parameters:
nextToken- If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.- 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 ListDevicesResult clone()
-
-