* The token to advance to the next page of Amazon ECS service recommendations. *
*/ private String nextToken; /** ** An array of objects that describe the Amazon ECS service recommendations. *
*/ private java.util.List* An array of objects that describe errors of the request. *
*/ private java.util.List* The token to advance to the next page of Amazon ECS service recommendations. *
* * @param nextToken * The token to advance to the next page of Amazon ECS service recommendations. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The token to advance to the next page of Amazon ECS service recommendations. *
* * @return The token to advance to the next page of Amazon ECS service recommendations. */ public String getNextToken() { return this.nextToken; } /** ** The token to advance to the next page of Amazon ECS service recommendations. *
* * @param nextToken * The token to advance to the next page of Amazon ECS service recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public GetECSServiceRecommendationsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** An array of objects that describe the Amazon ECS service recommendations. *
* * @return An array of objects that describe the Amazon ECS service recommendations. */ public java.util.List* An array of objects that describe the Amazon ECS service recommendations. *
* * @param ecsServiceRecommendations * An array of objects that describe the Amazon ECS service recommendations. */ public void setEcsServiceRecommendations(java.util.Collection* An array of objects that describe the Amazon ECS service recommendations. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEcsServiceRecommendations(java.util.Collection)} or * {@link #withEcsServiceRecommendations(java.util.Collection)} if you want to override the existing values. *
* * @param ecsServiceRecommendations * An array of objects that describe the Amazon ECS service recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public GetECSServiceRecommendationsResult withEcsServiceRecommendations(ECSServiceRecommendation... ecsServiceRecommendations) { if (this.ecsServiceRecommendations == null) { setEcsServiceRecommendations(new java.util.ArrayList* An array of objects that describe the Amazon ECS service recommendations. *
* * @param ecsServiceRecommendations * An array of objects that describe the Amazon ECS service recommendations. * @return Returns a reference to this object so that method calls can be chained together. */ public GetECSServiceRecommendationsResult withEcsServiceRecommendations(java.util.Collection* An array of objects that describe errors of the request. *
* * @return An array of objects that describe errors of the request. */ public java.util.List* An array of objects that describe errors of the request. *
* * @param errors * An array of objects that describe errors of the request. */ public void setErrors(java.util.Collection* An array of objects that describe errors of the request. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the * existing values. *
* * @param errors * An array of objects that describe errors of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetECSServiceRecommendationsResult withErrors(GetRecommendationError... errors) { if (this.errors == null) { setErrors(new java.util.ArrayList* An array of objects that describe errors of the request. *
* * @param errors * An array of objects that describe errors of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetECSServiceRecommendationsResult withErrors(java.util.Collection