@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 ID of the Amazon Web Services account for which to return instance recommendations.
|
List<Filter> |
getFilters()
An array of objects to specify 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.
|
RecommendationPreferences |
getRecommendationPreferences()
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
|
int |
hashCode() |
void |
setAccountIds(Collection<String> accountIds)
The ID of the Amazon Web Services account for which to return instance recommendations.
|
void |
setFilters(Collection<Filter> filters)
An array of objects to specify 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.
|
void |
setRecommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
|
String |
toString()
Returns a string representation of this object.
|
GetEC2InstanceRecommendationsRequest |
withAccountIds(Collection<String> accountIds)
The ID of the Amazon Web Services account for which to return instance recommendations.
|
GetEC2InstanceRecommendationsRequest |
withAccountIds(String... accountIds)
The ID of the Amazon Web Services account for which to return instance recommendations.
|
GetEC2InstanceRecommendationsRequest |
withFilters(Collection<Filter> filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
|
GetEC2InstanceRecommendationsRequest |
withFilters(Filter... filters)
An array of objects to specify 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.
|
GetEC2InstanceRecommendationsRequest |
withRecommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
|
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 to specify a filter that returns a more specific list of instance recommendations.
public void setFilters(Collection<Filter> filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
filters
- An array of objects to specify a filter that returns a more specific list of instance recommendations.public GetEC2InstanceRecommendationsRequest withFilters(Filter... filters)
An array of objects to specify 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 to specify a filter that returns a more specific list of instance recommendations.public GetEC2InstanceRecommendationsRequest withFilters(Collection<Filter> filters)
An array of objects to specify a filter that returns a more specific list of instance recommendations.
filters
- An array of objects to specify a filter that returns a more specific list of instance recommendations.public List<String> getAccountIds()
The ID of the Amazon Web Services account for which to return instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.
Only one account ID can be specified per request.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.
Only one account ID can be specified per request.
public void setAccountIds(Collection<String> accountIds)
The ID of the Amazon Web Services account for which to return instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.
Only one account ID can be specified per request.
accountIds
- The ID of the Amazon Web Services account for which to return instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.
Only one account ID can be specified per request.
public GetEC2InstanceRecommendationsRequest withAccountIds(String... accountIds)
The ID of the Amazon Web Services account for which to return instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account 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 ID of the Amazon Web Services account for which to return instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.
Only one account ID can be specified per request.
public GetEC2InstanceRecommendationsRequest withAccountIds(Collection<String> accountIds)
The ID of the Amazon Web Services account for which to return instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.
Only one account ID can be specified per request.
accountIds
- The ID of the Amazon Web Services account for which to return instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.
Only one account ID can be specified per request.
public void setRecommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
recommendationPreferences
- An object to specify the preferences for the Amazon EC2 instance recommendations to return in the
response.public RecommendationPreferences getRecommendationPreferences()
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
public GetEC2InstanceRecommendationsRequest withRecommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response.
recommendationPreferences
- An object to specify the preferences for the Amazon EC2 instance recommendations to return in the
response.public String toString()
toString
in class Object
Object.toString()
public GetEC2InstanceRecommendationsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.