@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetDevicesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetDevicesResult() |
Modifier and Type | Method and Description |
---|---|
GetDevicesResult |
clone() |
boolean |
equals(Object obj) |
List<Device> |
getDevices()
The devices.
|
String |
getNextToken()
The token for the next page of results.
|
int |
hashCode() |
void |
setDevices(Collection<Device> devices)
The devices.
|
void |
setNextToken(String nextToken)
The token for the next page of results.
|
String |
toString()
Returns a string representation of this object.
|
GetDevicesResult |
withDevices(Collection<Device> devices)
The devices.
|
GetDevicesResult |
withDevices(Device... devices)
The devices.
|
GetDevicesResult |
withNextToken(String nextToken)
The token for the next page of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setDevices(Collection<Device> devices)
The devices.
devices
- The devices.public GetDevicesResult withDevices(Device... devices)
The 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
- The devices.public GetDevicesResult withDevices(Collection<Device> devices)
The devices.
devices
- The devices.public void setNextToken(String nextToken)
The token for the next page of results.
nextToken
- The token for the next page of results.public String getNextToken()
The token for the next page of results.
public GetDevicesResult withNextToken(String nextToken)
The token for the next page of results.
nextToken
- The token for the next page of results.public String toString()
toString
in class Object
Object.toString()
public GetDevicesResult clone()