/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codegurureviewer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutRecommendationFeedbackRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) of the CodeReview object. *
*/ private String codeReviewArn; /** ** The recommendation ID that can be used to track the provided recommendations and then to collect the feedback. *
*/ private String recommendationId; /** ** List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all * your feedback. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the CodeReview object. *
* * @param codeReviewArn * The Amazon Resource Name (ARN) of the CodeReview object. */ public void setCodeReviewArn(String codeReviewArn) { this.codeReviewArn = codeReviewArn; } /** ** The Amazon Resource Name (ARN) of the CodeReview object. *
* * @return The Amazon Resource Name (ARN) of the CodeReview * object. */ public String getCodeReviewArn() { return this.codeReviewArn; } /** ** The Amazon Resource Name (ARN) of the CodeReview object. *
* * @param codeReviewArn * The Amazon Resource Name (ARN) of the CodeReview object. * @return Returns a reference to this object so that method calls can be chained together. */ public PutRecommendationFeedbackRequest withCodeReviewArn(String codeReviewArn) { setCodeReviewArn(codeReviewArn); return this; } /** ** The recommendation ID that can be used to track the provided recommendations and then to collect the feedback. *
* * @param recommendationId * The recommendation ID that can be used to track the provided recommendations and then to collect the * feedback. */ public void setRecommendationId(String recommendationId) { this.recommendationId = recommendationId; } /** ** The recommendation ID that can be used to track the provided recommendations and then to collect the feedback. *
* * @return The recommendation ID that can be used to track the provided recommendations and then to collect the * feedback. */ public String getRecommendationId() { return this.recommendationId; } /** ** The recommendation ID that can be used to track the provided recommendations and then to collect the feedback. *
* * @param recommendationId * The recommendation ID that can be used to track the provided recommendations and then to collect the * feedback. * @return Returns a reference to this object so that method calls can be chained together. */ public PutRecommendationFeedbackRequest withRecommendationId(String recommendationId) { setRecommendationId(recommendationId); return this; } /** ** List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all * your feedback. *
* * @return List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears * all your feedback. * @see Reaction */ public java.util.List* List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all * your feedback. *
* * @param reactions * List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears * all your feedback. * @see Reaction */ public void setReactions(java.util.Collection* List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all * your feedback. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReactions(java.util.Collection)} or {@link #withReactions(java.util.Collection)} if you want to * override the existing values. *
* * @param reactions * List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears * all your feedback. * @return Returns a reference to this object so that method calls can be chained together. * @see Reaction */ public PutRecommendationFeedbackRequest withReactions(String... reactions) { if (this.reactions == null) { setReactions(new java.util.ArrayList* List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all * your feedback. *
* * @param reactions * List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears * all your feedback. * @return Returns a reference to this object so that method calls can be chained together. * @see Reaction */ public PutRecommendationFeedbackRequest withReactions(java.util.Collection* List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all * your feedback. *
* * @param reactions * List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears * all your feedback. * @return Returns a reference to this object so that method calls can be chained together. * @see Reaction */ public PutRecommendationFeedbackRequest withReactions(Reaction... reactions) { java.util.ArrayList