@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetEC2InstanceRecommendationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetEC2InstanceRecommendationsResult() |
Modifier and Type | Method and Description |
---|---|
GetEC2InstanceRecommendationsResult |
clone() |
boolean |
equals(Object obj) |
List<GetRecommendationError> |
getErrors()
An array of objects that describe errors of the request.
|
List<InstanceRecommendation> |
getInstanceRecommendations()
An array of objects that describe instance recommendations.
|
String |
getNextToken()
The token to use to advance to the next page of instance recommendations.
|
int |
hashCode() |
void |
setErrors(Collection<GetRecommendationError> errors)
An array of objects that describe errors of the request.
|
void |
setInstanceRecommendations(Collection<InstanceRecommendation> instanceRecommendations)
An array of objects that describe instance recommendations.
|
void |
setNextToken(String nextToken)
The token to use to advance to the next page of instance recommendations.
|
String |
toString()
Returns a string representation of this object.
|
GetEC2InstanceRecommendationsResult |
withErrors(Collection<GetRecommendationError> errors)
An array of objects that describe errors of the request.
|
GetEC2InstanceRecommendationsResult |
withErrors(GetRecommendationError... errors)
An array of objects that describe errors of the request.
|
GetEC2InstanceRecommendationsResult |
withInstanceRecommendations(Collection<InstanceRecommendation> instanceRecommendations)
An array of objects that describe instance recommendations.
|
GetEC2InstanceRecommendationsResult |
withInstanceRecommendations(InstanceRecommendation... instanceRecommendations)
An array of objects that describe instance recommendations.
|
GetEC2InstanceRecommendationsResult |
withNextToken(String nextToken)
The token to use to advance to the next page of instance recommendations.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The token to use to advance to the next page of instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
nextToken
- The token to use to advance to the next page of instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
public String getNextToken()
The token to use to advance to the next page of instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
This value is null when there are no more pages of instance recommendations to return.
public GetEC2InstanceRecommendationsResult withNextToken(String nextToken)
The token to use to advance to the next page of instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
nextToken
- The token to use to advance to the next page of instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
public List<InstanceRecommendation> getInstanceRecommendations()
An array of objects that describe instance recommendations.
public void setInstanceRecommendations(Collection<InstanceRecommendation> instanceRecommendations)
An array of objects that describe instance recommendations.
instanceRecommendations
- An array of objects that describe instance recommendations.public GetEC2InstanceRecommendationsResult withInstanceRecommendations(InstanceRecommendation... instanceRecommendations)
An array of objects that describe instance recommendations.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceRecommendations(java.util.Collection)
or
withInstanceRecommendations(java.util.Collection)
if you want to override the existing values.
instanceRecommendations
- An array of objects that describe instance recommendations.public GetEC2InstanceRecommendationsResult withInstanceRecommendations(Collection<InstanceRecommendation> instanceRecommendations)
An array of objects that describe instance recommendations.
instanceRecommendations
- An array of objects that describe instance recommendations.public List<GetRecommendationError> getErrors()
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
public void setErrors(Collection<GetRecommendationError> errors)
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
errors
- An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
public GetEC2InstanceRecommendationsResult withErrors(GetRecommendationError... errors)
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
NOTE: This method appends the values to the existing list (if any). Use
setErrors(java.util.Collection)
or withErrors(java.util.Collection)
if you want to override the
existing values.
errors
- An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
public GetEC2InstanceRecommendationsResult withErrors(Collection<GetRecommendationError> errors)
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
errors
- An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
public String toString()
toString
in class Object
Object.toString()
public GetEC2InstanceRecommendationsResult clone()