@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeFleetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeFleetsRequest>
NOOP
Constructor and Description |
---|
DescribeFleetsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeFleetsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<DescribeFleetsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
The filters.
|
List<String> |
getFleetIds()
The IDs of the EC2 Fleets.
|
Integer |
getMaxResults()
The maximum number of items to return for this request.
|
String |
getNextToken()
The token returned from a previous paginated request.
|
int |
hashCode() |
void |
setFilters(Collection<Filter> filters)
The filters.
|
void |
setFleetIds(Collection<String> fleetIds)
The IDs of the EC2 Fleets.
|
void |
setMaxResults(Integer maxResults)
The maximum number of items to return for this request.
|
void |
setNextToken(String nextToken)
The token returned from a previous paginated request.
|
String |
toString()
Returns a string representation of this object.
|
DescribeFleetsRequest |
withFilters(Collection<Filter> filters)
The filters.
|
DescribeFleetsRequest |
withFilters(Filter... filters)
The filters.
|
DescribeFleetsRequest |
withFleetIds(Collection<String> fleetIds)
The IDs of the EC2 Fleets.
|
DescribeFleetsRequest |
withFleetIds(String... fleetIds)
The IDs of the EC2 Fleets.
|
DescribeFleetsRequest |
withMaxResults(Integer maxResults)
The maximum number of items to return for this request.
|
DescribeFleetsRequest |
withNextToken(String nextToken)
The token returned from a previous paginated request.
|
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 setMaxResults(Integer maxResults)
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
maxResults
- The maximum number of items to return for this request. To get the next page of items, make another
request with the token returned in the output. For more information, see Pagination.public Integer getMaxResults()
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
public DescribeFleetsRequest withMaxResults(Integer maxResults)
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
maxResults
- The maximum number of items to return for this request. To get the next page of items, make another
request with the token returned in the output. For more information, see Pagination.public void setNextToken(String nextToken)
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
nextToken
- The token returned from a previous paginated request. Pagination continues from the end of the items
returned by the previous request.public String getNextToken()
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
public DescribeFleetsRequest withNextToken(String nextToken)
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
nextToken
- The token returned from a previous paginated request. Pagination continues from the end of the items
returned by the previous request.public List<String> getFleetIds()
The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in the
response.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear
in the response.
public void setFleetIds(Collection<String> fleetIds)
The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in the
response.
fleetIds
- The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in
the response.
public DescribeFleetsRequest withFleetIds(String... fleetIds)
The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in the
response.
NOTE: This method appends the values to the existing list (if any). Use
setFleetIds(java.util.Collection)
or withFleetIds(java.util.Collection)
if you want to override
the existing values.
fleetIds
- The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in
the response.
public DescribeFleetsRequest withFleetIds(Collection<String> fleetIds)
The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in the
response.
fleetIds
- The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in
the response.
public List<Filter> getFilters()
The filters.
activity-status
- The progress of the EC2 Fleet ( error
|
pending-fulfillment
| pending-termination
| fulfilled
).
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the target
capacity is decreased below the current EC2 Fleet size (true
| false
).
fleet-state
- The state of the EC2 Fleet (submitted
| active
|
deleted
| failed
| deleted-running
| deleted-terminating
|
modifying
).
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances (
true
| false
).
type
- The type of request (instant
| request
| maintain
).
activity-status
- The progress of the EC2 Fleet ( error
|
pending-fulfillment
| pending-termination
| fulfilled
).
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the
target capacity is decreased below the current EC2 Fleet size (true
| false
).
fleet-state
- The state of the EC2 Fleet (submitted
| active
|
deleted
| failed
| deleted-running
|
deleted-terminating
| modifying
).
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances
(true
| false
).
type
- The type of request (instant
| request
|
maintain
).
public void setFilters(Collection<Filter> filters)
The filters.
activity-status
- The progress of the EC2 Fleet ( error
|
pending-fulfillment
| pending-termination
| fulfilled
).
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the target
capacity is decreased below the current EC2 Fleet size (true
| false
).
fleet-state
- The state of the EC2 Fleet (submitted
| active
|
deleted
| failed
| deleted-running
| deleted-terminating
|
modifying
).
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances (
true
| false
).
type
- The type of request (instant
| request
| maintain
).
filters
- The filters.
activity-status
- The progress of the EC2 Fleet ( error
|
pending-fulfillment
| pending-termination
| fulfilled
).
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the
target capacity is decreased below the current EC2 Fleet size (true
| false
).
fleet-state
- The state of the EC2 Fleet (submitted
| active
|
deleted
| failed
| deleted-running
|
deleted-terminating
| modifying
).
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances
(true
| false
).
type
- The type of request (instant
| request
|
maintain
).
public DescribeFleetsRequest withFilters(Filter... filters)
The filters.
activity-status
- The progress of the EC2 Fleet ( error
|
pending-fulfillment
| pending-termination
| fulfilled
).
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the target
capacity is decreased below the current EC2 Fleet size (true
| false
).
fleet-state
- The state of the EC2 Fleet (submitted
| active
|
deleted
| failed
| deleted-running
| deleted-terminating
|
modifying
).
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances (
true
| false
).
type
- The type of request (instant
| request
| maintain
).
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection)
or withFilters(java.util.Collection)
if you want to override
the existing values.
filters
- The filters.
activity-status
- The progress of the EC2 Fleet ( error
|
pending-fulfillment
| pending-termination
| fulfilled
).
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the
target capacity is decreased below the current EC2 Fleet size (true
| false
).
fleet-state
- The state of the EC2 Fleet (submitted
| active
|
deleted
| failed
| deleted-running
|
deleted-terminating
| modifying
).
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances
(true
| false
).
type
- The type of request (instant
| request
|
maintain
).
public DescribeFleetsRequest withFilters(Collection<Filter> filters)
The filters.
activity-status
- The progress of the EC2 Fleet ( error
|
pending-fulfillment
| pending-termination
| fulfilled
).
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the target
capacity is decreased below the current EC2 Fleet size (true
| false
).
fleet-state
- The state of the EC2 Fleet (submitted
| active
|
deleted
| failed
| deleted-running
| deleted-terminating
|
modifying
).
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances (
true
| false
).
type
- The type of request (instant
| request
| maintain
).
filters
- The filters.
activity-status
- The progress of the EC2 Fleet ( error
|
pending-fulfillment
| pending-termination
| fulfilled
).
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the
target capacity is decreased below the current EC2 Fleet size (true
| false
).
fleet-state
- The state of the EC2 Fleet (submitted
| active
|
deleted
| failed
| deleted-running
|
deleted-terminating
| modifying
).
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances
(true
| false
).
type
- The type of request (instant
| request
|
maintain
).
public Request<DescribeFleetsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeFleetsRequest>
public String toString()
toString
in class Object
Object.toString()
public DescribeFleetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()