@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListDevicesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListDevicesResult() |
Modifier and Type | Method and Description |
---|---|
ListDevicesResult |
clone() |
boolean |
equals(Object obj) |
List<DeviceDescription> |
getDevices()
A list of devices.
|
String |
getNextToken()
The token to retrieve the next set of results.
|
int |
hashCode() |
void |
setDevices(Collection<DeviceDescription> devices)
A list of devices.
|
void |
setNextToken(String nextToken)
The token to retrieve the next set of results.
|
String |
toString()
Returns a string representation of this object.
|
ListDevicesResult |
withDevices(Collection<DeviceDescription> devices)
A list of devices.
|
ListDevicesResult |
withDevices(DeviceDescription... devices)
A list of devices.
|
ListDevicesResult |
withNextToken(String nextToken)
The token to retrieve the next set of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<DeviceDescription> getDevices()
A list of devices.
public void setDevices(Collection<DeviceDescription> devices)
A list of devices.
devices
- A list of devices.public ListDevicesResult withDevices(DeviceDescription... devices)
A list of devices.
NOTE: This method appends the values to the existing list (if any). Use
setDevices(java.util.Collection)
or withDevices(java.util.Collection)
if you want to override
the existing values.
devices
- A list of devices.public ListDevicesResult withDevices(Collection<DeviceDescription> devices)
A list of devices.
devices
- A list of devices.public void setNextToken(String nextToken)
The token to retrieve the next set of results.
nextToken
- The token to retrieve the next set of results.public String getNextToken()
The token to retrieve the next set of results.
public ListDevicesResult withNextToken(String nextToken)
The token to retrieve the next set of results.
nextToken
- The token to retrieve the next set of results.public String toString()
toString
in class Object
Object.toString()
public ListDevicesResult clone()