@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetEC2InstanceRecommendationsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetEC2InstanceRecommendationsRequest() |
Modifier and Type | Method and Description |
---|---|
GetEC2InstanceRecommendationsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAccountIds()
The IDs of the AWS accounts for which to return instance recommendations.
|
List<Filter> |
getFilters()
An array of objects that describe a filter that returns a more specific list of instance recommendations.
|
List<String> |
getInstanceArns()
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
|
Integer |
getMaxResults()
The maximum number of instance recommendations to return with a single request.
|
String |
getNextToken()
The token to advance to the next page of instance recommendations.
|
int |
hashCode() |
void |
setAccountIds(Collection<String> accountIds)
The IDs of the AWS accounts for which to return instance recommendations.
|
void |
setFilters(Collection<Filter> filters)
An array of objects that describe a filter that returns a more specific list of instance recommendations.
|
void |
setInstanceArns(Collection<String> instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
|
void |
setMaxResults(Integer maxResults)
The maximum number of instance recommendations to return with a single request.
|
void |
setNextToken(String nextToken)
The token to advance to the next page of instance recommendations.
|
String |
toString()
Returns a string representation of this object.
|
GetEC2InstanceRecommendationsRequest |
withAccountIds(Collection<String> accountIds)
The IDs of the AWS accounts for which to return instance recommendations.
|
GetEC2InstanceRecommendationsRequest |
withAccountIds(String... accountIds)
The IDs of the AWS accounts for which to return instance recommendations.
|
GetEC2InstanceRecommendationsRequest |
withFilters(Collection<Filter> filters)
An array of objects that describe a filter that returns a more specific list of instance recommendations.
|
GetEC2InstanceRecommendationsRequest |
withFilters(Filter... filters)
An array of objects that describe a filter that returns a more specific list of instance recommendations.
|
GetEC2InstanceRecommendationsRequest |
withInstanceArns(Collection<String> instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
|
GetEC2InstanceRecommendationsRequest |
withInstanceArns(String... instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
|
GetEC2InstanceRecommendationsRequest |
withMaxResults(Integer maxResults)
The maximum number of instance recommendations to return with a single request.
|
GetEC2InstanceRecommendationsRequest |
withNextToken(String nextToken)
The token to advance to the next page of instance recommendations.
|
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 GetEC2InstanceRecommendationsRequest()
public List<String> getInstanceArns()
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
public void setInstanceArns(Collection<String> instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
instanceArns
- The Amazon Resource Name (ARN) of the instances for which to return recommendations.public GetEC2InstanceRecommendationsRequest withInstanceArns(String... instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceArns(java.util.Collection)
or withInstanceArns(java.util.Collection)
if you want to
override the existing values.
instanceArns
- The Amazon Resource Name (ARN) of the instances for which to return recommendations.public GetEC2InstanceRecommendationsRequest withInstanceArns(Collection<String> instanceArns)
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
instanceArns
- The Amazon Resource Name (ARN) of the instances for which to return recommendations.public void setNextToken(String nextToken)
The token to advance to the next page of instance recommendations.
nextToken
- The token to advance to the next page of instance recommendations.public String getNextToken()
The token to advance to the next page of instance recommendations.
public GetEC2InstanceRecommendationsRequest withNextToken(String nextToken)
The token to advance to the next page of instance recommendations.
nextToken
- The token to advance to the next page of instance recommendations.public void setMaxResults(Integer maxResults)
The maximum number of instance recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
maxResults
- The maximum number of instance recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
public Integer getMaxResults()
The maximum number of instance recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
To retrieve the remaining results, make another request with the returned NextToken
value.
public GetEC2InstanceRecommendationsRequest withMaxResults(Integer maxResults)
The maximum number of instance recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
maxResults
- The maximum number of instance recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
public List<Filter> getFilters()
An array of objects that describe a filter that returns a more specific list of instance recommendations.
public void setFilters(Collection<Filter> filters)
An array of objects that describe a filter that returns a more specific list of instance recommendations.
filters
- An array of objects that describe a filter that returns a more specific list of instance recommendations.public GetEC2InstanceRecommendationsRequest withFilters(Filter... filters)
An array of objects that describe a filter that returns a more specific list of instance recommendations.
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
- An array of objects that describe a filter that returns a more specific list of instance recommendations.public GetEC2InstanceRecommendationsRequest withFilters(Collection<Filter> filters)
An array of objects that describe a filter that returns a more specific list of instance recommendations.
filters
- An array of objects that describe a filter that returns a more specific list of instance recommendations.public List<String> getAccountIds()
The IDs of the AWS accounts for which to return instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
public void setAccountIds(Collection<String> accountIds)
The IDs of the AWS accounts for which to return instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
accountIds
- The IDs of the AWS accounts for which to return instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
public GetEC2InstanceRecommendationsRequest withAccountIds(String... accountIds)
The IDs of the AWS accounts for which to return instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
NOTE: This method appends the values to the existing list (if any). Use
setAccountIds(java.util.Collection)
or withAccountIds(java.util.Collection)
if you want to
override the existing values.
accountIds
- The IDs of the AWS accounts for which to return instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
public GetEC2InstanceRecommendationsRequest withAccountIds(Collection<String> accountIds)
The IDs of the AWS accounts for which to return instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
accountIds
- The IDs of the AWS accounts for which to return instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
public String toString()
toString
in class Object
Object.toString()
public GetEC2InstanceRecommendationsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()