public class ListOnPremisesInstancesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of list on-premises instances operation.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
instanceNames
The list of matching on-premises instance names.
|
private java.lang.String |
nextToken
If a large amount of information is returned, an identifier is also
returned.
|
Constructor and Description |
---|
ListOnPremisesInstancesResult() |
Modifier and Type | Method and Description |
---|---|
ListOnPremisesInstancesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getInstanceNames()
The list of matching on-premises instance names.
|
java.lang.String |
getNextToken()
If a large amount of information is returned, an identifier is also
returned.
|
int |
hashCode() |
void |
setInstanceNames(java.util.Collection<java.lang.String> instanceNames)
The list of matching on-premises instance names.
|
void |
setNextToken(java.lang.String nextToken)
If a large amount of information is returned, an identifier is also
returned.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListOnPremisesInstancesResult |
withInstanceNames(java.util.Collection<java.lang.String> instanceNames)
The list of matching on-premises instance names.
|
ListOnPremisesInstancesResult |
withInstanceNames(java.lang.String... instanceNames)
The list of matching on-premises instance names.
|
ListOnPremisesInstancesResult |
withNextToken(java.lang.String nextToken)
If a large amount of information is returned, an identifier is also
returned.
|
private SdkInternalList<java.lang.String> instanceNames
The list of matching on-premises instance names.
private java.lang.String nextToken
If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list.
public java.util.List<java.lang.String> getInstanceNames()
The list of matching on-premises instance names.
public void setInstanceNames(java.util.Collection<java.lang.String> instanceNames)
The list of matching on-premises instance names.
instanceNames
- The list of matching on-premises instance names.public ListOnPremisesInstancesResult withInstanceNames(java.lang.String... instanceNames)
The list of matching on-premises instance names.
NOTE: This method appends the values to the existing list (if
any). Use setInstanceNames(java.util.Collection)
or
withInstanceNames(java.util.Collection)
if you want to override
the existing values.
instanceNames
- The list of matching on-premises instance names.public ListOnPremisesInstancesResult withInstanceNames(java.util.Collection<java.lang.String> instanceNames)
The list of matching on-premises instance names.
instanceNames
- The list of matching on-premises instance names.public void setNextToken(java.lang.String nextToken)
If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list.
nextToken
- If a large amount of information is returned, an identifier is
also returned. It can be used in a subsequent list on-premises
instances call to return the next set of on-premises instances in
the list.public java.lang.String getNextToken()
If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list.
public ListOnPremisesInstancesResult withNextToken(java.lang.String nextToken)
If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list.
nextToken
- If a large amount of information is returned, an identifier is
also returned. It can be used in a subsequent list on-premises
instances call to return the next set of on-premises instances in
the list.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 ListOnPremisesInstancesResult clone()
clone
in class java.lang.Object