public class DescribeClassicLinkInstancesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeClassicLinkInstances.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<ClassicLinkInstance> |
instances
Information about one or more linked EC2-Classic instances.
|
private java.lang.String |
nextToken
The token to use to retrieve the next page of results.
|
Constructor and Description |
---|
DescribeClassicLinkInstancesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeClassicLinkInstancesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<ClassicLinkInstance> |
getInstances()
Information about one or more linked EC2-Classic instances.
|
java.lang.String |
getNextToken()
The token to use to retrieve the next page of results.
|
int |
hashCode() |
void |
setInstances(java.util.Collection<ClassicLinkInstance> instances)
Information about one or more linked EC2-Classic instances.
|
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.
|
DescribeClassicLinkInstancesResult |
withInstances(ClassicLinkInstance... instances)
Information about one or more linked EC2-Classic instances.
|
DescribeClassicLinkInstancesResult |
withInstances(java.util.Collection<ClassicLinkInstance> instances)
Information about one or more linked EC2-Classic instances.
|
DescribeClassicLinkInstancesResult |
withNextToken(java.lang.String nextToken)
The token to use to retrieve the next page of results.
|
private SdkInternalList<ClassicLinkInstance> instances
Information about one or more linked EC2-Classic instances.
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<ClassicLinkInstance> getInstances()
Information about one or more linked EC2-Classic instances.
public void setInstances(java.util.Collection<ClassicLinkInstance> instances)
Information about one or more linked EC2-Classic instances.
instances
- Information about one or more linked EC2-Classic instances.public DescribeClassicLinkInstancesResult withInstances(ClassicLinkInstance... instances)
Information about one or more linked EC2-Classic instances.
NOTE: This method appends the values to the existing list (if
any). Use setInstances(java.util.Collection)
or
withInstances(java.util.Collection)
if you want to override the
existing values.
instances
- Information about one or more linked EC2-Classic instances.public DescribeClassicLinkInstancesResult withInstances(java.util.Collection<ClassicLinkInstance> instances)
Information about one or more linked EC2-Classic instances.
instances
- Information about one or more linked EC2-Classic instances.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 DescribeClassicLinkInstancesResult 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 DescribeClassicLinkInstancesResult clone()
clone
in class java.lang.Object