public class ListOnPremisesInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ListOnPremisesInstances operation
.
Gets a list of one or more on-premises instance names.
Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.
NOOP
Constructor and Description |
---|
ListOnPremisesInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
ListOnPremisesInstancesRequest |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
An identifier that was returned from the previous list on-premises
instances call, which can be used to return the next set of
on-premises instances in the list.
|
String |
getRegistrationStatus()
The on-premises instances registration status: Deregistered:
Include in the resulting list deregistered on-premises instances.
Registered: Include in the resulting list registered on-premises
instances.
|
List<TagFilter> |
getTagFilters()
The on-premises instance tags that will be used to restrict the
corresponding on-premises instance names that are returned.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
An identifier that was returned from the previous list on-premises
instances call, which can be used to return the next set of
on-premises instances in the list.
|
void |
setRegistrationStatus(RegistrationStatus registrationStatus)
The on-premises instances registration status: Deregistered:
Include in the resulting list deregistered on-premises instances.
Registered: Include in the resulting list registered on-premises
instances.
|
void |
setRegistrationStatus(String registrationStatus)
The on-premises instances registration status: Deregistered:
Include in the resulting list deregistered on-premises instances.
Registered: Include in the resulting list registered on-premises
instances.
|
void |
setTagFilters(Collection<TagFilter> tagFilters)
The on-premises instance tags that will be used to restrict the
corresponding on-premises instance names that are returned.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListOnPremisesInstancesRequest |
withNextToken(String nextToken)
An identifier that was returned from the previous list on-premises
instances call, which can be used to return the next set of
on-premises instances in the list.
|
ListOnPremisesInstancesRequest |
withRegistrationStatus(RegistrationStatus registrationStatus)
The on-premises instances registration status: Deregistered:
Include in the resulting list deregistered on-premises instances.
Registered: Include in the resulting list registered on-premises
instances.
|
ListOnPremisesInstancesRequest |
withRegistrationStatus(String registrationStatus)
The on-premises instances registration status: Deregistered:
Include in the resulting list deregistered on-premises instances.
Registered: Include in the resulting list registered on-premises
instances.
|
ListOnPremisesInstancesRequest |
withTagFilters(Collection<TagFilter> tagFilters)
The on-premises instance tags that will be used to restrict the
corresponding on-premises instance names that are returned.
|
ListOnPremisesInstancesRequest |
withTagFilters(TagFilter... tagFilters)
The on-premises instance tags that will be used to restrict the
corresponding on-premises instance names that are returned.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getRegistrationStatus()
Constraints:
Allowed Values: Registered, Deregistered
RegistrationStatus
public void setRegistrationStatus(String registrationStatus)
Constraints:
Allowed Values: Registered, Deregistered
registrationStatus
- The on-premises instances registration status: RegistrationStatus
public ListOnPremisesInstancesRequest withRegistrationStatus(String registrationStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Registered, Deregistered
registrationStatus
- The on-premises instances registration status: RegistrationStatus
public void setRegistrationStatus(RegistrationStatus registrationStatus)
Constraints:
Allowed Values: Registered, Deregistered
registrationStatus
- The on-premises instances registration status: RegistrationStatus
public ListOnPremisesInstancesRequest withRegistrationStatus(RegistrationStatus registrationStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Registered, Deregistered
registrationStatus
- The on-premises instances registration status: RegistrationStatus
public List<TagFilter> getTagFilters()
public void setTagFilters(Collection<TagFilter> tagFilters)
tagFilters
- The on-premises instance tags that will be used to restrict the
corresponding on-premises instance names that are returned.public ListOnPremisesInstancesRequest withTagFilters(TagFilter... tagFilters)
NOTE: This method appends the values to the existing list (if
any). Use setTagFilters(java.util.Collection)
or withTagFilters(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.
tagFilters
- The on-premises instance tags that will be used to restrict the
corresponding on-premises instance names that are returned.public ListOnPremisesInstancesRequest withTagFilters(Collection<TagFilter> tagFilters)
Returns a reference to this object so that method calls can be chained together.
tagFilters
- The on-premises instance tags that will be used to restrict the
corresponding on-premises instance names that are returned.public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- An identifier that was returned from the previous list on-premises
instances call, which can be used to return the next set of
on-premises instances in the list.public ListOnPremisesInstancesRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- An identifier that was returned from the previous list on-premises
instances call, which can be used to return the next set of
on-premises instances in the list.public String toString()
toString
in class Object
Object.toString()
public ListOnPremisesInstancesRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.