public class DescribeInstanceStatusResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeInstanceStatus.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<InstanceStatus> |
instanceStatuses
One or more instance status descriptions.
|
private java.lang.String |
nextToken
The token to use to retrieve the next page of results.
|
Constructor and Description |
---|
DescribeInstanceStatusResult() |
Modifier and Type | Method and Description |
---|---|
DescribeInstanceStatusResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<InstanceStatus> |
getInstanceStatuses()
One or more instance status descriptions.
|
java.lang.String |
getNextToken()
The token to use to retrieve the next page of results.
|
int |
hashCode() |
void |
setInstanceStatuses(java.util.Collection<InstanceStatus> instanceStatuses)
One or more instance status descriptions.
|
void |
setNextToken(java.lang.String nextToken)
The token to use to retrieve the next page of results.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstanceStatusResult |
withInstanceStatuses(java.util.Collection<InstanceStatus> instanceStatuses)
One or more instance status descriptions.
|
DescribeInstanceStatusResult |
withInstanceStatuses(InstanceStatus... instanceStatuses)
One or more instance status descriptions.
|
DescribeInstanceStatusResult |
withNextToken(java.lang.String nextToken)
The token to use to retrieve the next page of results.
|
private SdkInternalList<InstanceStatus> instanceStatuses
One or more instance status descriptions.
private java.lang.String 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 java.util.List<InstanceStatus> getInstanceStatuses()
One or more instance status descriptions.
public void setInstanceStatuses(java.util.Collection<InstanceStatus> instanceStatuses)
One or more instance status descriptions.
instanceStatuses
- One or more instance status descriptions.public DescribeInstanceStatusResult withInstanceStatuses(InstanceStatus... instanceStatuses)
One or more instance status descriptions.
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.
instanceStatuses
- One or more instance status descriptions.public DescribeInstanceStatusResult withInstanceStatuses(java.util.Collection<InstanceStatus> instanceStatuses)
One or more instance status descriptions.
instanceStatuses
- One or more instance status descriptions.public void setNextToken(java.lang.String nextToken)
The token to use to retrieve the next page of results. This value is
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 java.lang.String getNextToken()
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
null
when there are no more results to return.public DescribeInstanceStatusResult withNextToken(java.lang.String nextToken)
The token to use to retrieve the next page of results. This value is
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeInstanceStatusResult clone()
clone
in class java.lang.Object