@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DescribeInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeInstancesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getFleetId()
A unique identifier for the fleet to retrieve instance information for.
|
String |
getInstanceId()
A unique identifier for an instance to retrieve.
|
Integer |
getLimit()
The maximum number of results to return.
|
String |
getLocation()
The name of a location to retrieve instance information for, in the form of an Amazon Web Services Region code
such as
us-west-2 . |
String |
getNextToken()
A token that indicates the start of the next sequential page of results.
|
int |
hashCode() |
void |
setFleetId(String fleetId)
A unique identifier for the fleet to retrieve instance information for.
|
void |
setInstanceId(String instanceId)
A unique identifier for an instance to retrieve.
|
void |
setLimit(Integer limit)
The maximum number of results to return.
|
void |
setLocation(String location)
The name of a location to retrieve instance information for, in the form of an Amazon Web Services Region code
such as
us-west-2 . |
void |
setNextToken(String nextToken)
A token that indicates the start of the next sequential page of results.
|
String |
toString()
Returns a string representation of this object.
|
DescribeInstancesRequest |
withFleetId(String fleetId)
A unique identifier for the fleet to retrieve instance information for.
|
DescribeInstancesRequest |
withInstanceId(String instanceId)
A unique identifier for an instance to retrieve.
|
DescribeInstancesRequest |
withLimit(Integer limit)
The maximum number of results to return.
|
DescribeInstancesRequest |
withLocation(String location)
The name of a location to retrieve instance information for, in the form of an Amazon Web Services Region code
such as
us-west-2 . |
DescribeInstancesRequest |
withNextToken(String nextToken)
A token that indicates the start of the next sequential page of results.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFleetId(String fleetId)
A unique identifier for the fleet to retrieve instance information for. You can use either the fleet ID or ARN value.
fleetId
- A unique identifier for the fleet to retrieve instance information for. You can use either the fleet ID or
ARN value.public String getFleetId()
A unique identifier for the fleet to retrieve instance information for. You can use either the fleet ID or ARN value.
public DescribeInstancesRequest withFleetId(String fleetId)
A unique identifier for the fleet to retrieve instance information for. You can use either the fleet ID or ARN value.
fleetId
- A unique identifier for the fleet to retrieve instance information for. You can use either the fleet ID or
ARN value.public void setInstanceId(String instanceId)
A unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all instances in the fleet.
instanceId
- A unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all
instances in the fleet.public String getInstanceId()
A unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all instances in the fleet.
public DescribeInstancesRequest withInstanceId(String instanceId)
A unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all instances in the fleet.
instanceId
- A unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all
instances in the fleet.public void setLimit(Integer limit)
The maximum number of results to return. Use this parameter with NextToken
to get results as a set
of sequential pages.
limit
- The maximum number of results to return. Use this parameter with NextToken
to get results as
a set of sequential pages.public Integer getLimit()
The maximum number of results to return. Use this parameter with NextToken
to get results as a set
of sequential pages.
NextToken
to get results as
a set of sequential pages.public DescribeInstancesRequest withLimit(Integer limit)
The maximum number of results to return. Use this parameter with NextToken
to get results as a set
of sequential pages.
limit
- The maximum number of results to return. Use this parameter with NextToken
to get results as
a set of sequential pages.public void setNextToken(String nextToken)
A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.
nextToken
- A token that indicates the start of the next sequential page of results. Use the token that is returned
with a previous call to this operation. To start at the beginning of the result set, do not specify a
value.public String getNextToken()
A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.
public DescribeInstancesRequest withNextToken(String nextToken)
A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.
nextToken
- A token that indicates the start of the next sequential page of results. Use the token that is returned
with a previous call to this operation. To start at the beginning of the result set, do not specify a
value.public void setLocation(String location)
The name of a location to retrieve instance information for, in the form of an Amazon Web Services Region code
such as us-west-2
.
location
- The name of a location to retrieve instance information for, in the form of an Amazon Web Services Region
code such as us-west-2
.public String getLocation()
The name of a location to retrieve instance information for, in the form of an Amazon Web Services Region code
such as us-west-2
.
us-west-2
.public DescribeInstancesRequest withLocation(String location)
The name of a location to retrieve instance information for, in the form of an Amazon Web Services Region code
such as us-west-2
.
location
- The name of a location to retrieve instance information for, in the form of an Amazon Web Services Region
code such as us-west-2
.public String toString()
toString
in class Object
Object.toString()
public DescribeInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()