public class DescribeInstanceStatusResult extends Object implements Serializable, Cloneable
Constructor and Description |
---|
DescribeInstanceStatusResult() |
Modifier and Type | Method and Description |
---|---|
DescribeInstanceStatusResult |
clone() |
boolean |
equals(Object obj) |
List<InstanceStatus> |
getInstanceStatuses()
One or more instance status descriptions.
|
String |
getNextToken()
The token to use to retrieve the next page of results.
|
int |
hashCode() |
void |
setInstanceStatuses(Collection<InstanceStatus> instanceStatuses)
One or more instance status descriptions.
|
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstanceStatusResult |
withInstanceStatuses(Collection<InstanceStatus> instanceStatuses)
One or more instance status descriptions.
|
DescribeInstanceStatusResult |
withInstanceStatuses(InstanceStatus... instanceStatuses)
One or more instance status descriptions.
|
DescribeInstanceStatusResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
public List<InstanceStatus> getInstanceStatuses()
public void setInstanceStatuses(Collection<InstanceStatus> instanceStatuses)
instanceStatuses
- One or more instance status descriptions.public DescribeInstanceStatusResult withInstanceStatuses(InstanceStatus... instanceStatuses)
NOTE: This method appends the values to the existing list (if
any). Use setInstanceStatuses(java.util.Collection)
or withInstanceStatuses(java.util.Collection)
if you want to override
the existing values.
Returns a reference to this object so that method calls can be chained together.
instanceStatuses
- One or more instance status descriptions.public DescribeInstanceStatusResult withInstanceStatuses(Collection<InstanceStatus> instanceStatuses)
Returns a reference to this object so that method calls can be chained together.
instanceStatuses
- One or more instance status descriptions.public String getNextToken()
null
when there are no more results to return.null
when there are no more results to return.public void setNextToken(String nextToken)
null
when there are no more results to return.nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.public DescribeInstanceStatusResult withNextToken(String nextToken)
null
when there are no more results to return.
Returns a reference to this object so that method calls can be chained together.
nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.public String toString()
toString
in class Object
Object.toString()
public DescribeInstanceStatusResult clone()
Copyright © 2015. All rights reserved.