/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeGuruReviewer { namespace Model { /** *

Information about recommendation feedback summaries.

See Also:

* AWS * API Reference

*/ class RecommendationFeedbackSummary { public: AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary(); AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The recommendation ID that can be used to track the provided recommendations. * Later on it can be used to collect the feedback.

*/ inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; } /** *

The recommendation ID that can be used to track the provided recommendations. * Later on it can be used to collect the feedback.

*/ inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; } /** *

The recommendation ID that can be used to track the provided recommendations. * Later on it can be used to collect the feedback.

*/ inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; } /** *

The recommendation ID that can be used to track the provided recommendations. * Later on it can be used to collect the feedback.

*/ inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); } /** *

The recommendation ID that can be used to track the provided recommendations. * Later on it can be used to collect the feedback.

*/ inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); } /** *

The recommendation ID that can be used to track the provided recommendations. * Later on it can be used to collect the feedback.

*/ inline RecommendationFeedbackSummary& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;} /** *

The recommendation ID that can be used to track the provided recommendations. * Later on it can be used to collect the feedback.

*/ inline RecommendationFeedbackSummary& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;} /** *

The recommendation ID that can be used to track the provided recommendations. * Later on it can be used to collect the feedback.

*/ inline RecommendationFeedbackSummary& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;} /** *

List for storing reactions. Reactions are utf-8 text code for emojis.

*/ inline const Aws::Vector& GetReactions() const{ return m_reactions; } /** *

List for storing reactions. Reactions are utf-8 text code for emojis.

*/ inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; } /** *

List for storing reactions. Reactions are utf-8 text code for emojis.

*/ inline void SetReactions(const Aws::Vector& value) { m_reactionsHasBeenSet = true; m_reactions = value; } /** *

List for storing reactions. Reactions are utf-8 text code for emojis.

*/ inline void SetReactions(Aws::Vector&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); } /** *

List for storing reactions. Reactions are utf-8 text code for emojis.

*/ inline RecommendationFeedbackSummary& WithReactions(const Aws::Vector& value) { SetReactions(value); return *this;} /** *

List for storing reactions. Reactions are utf-8 text code for emojis.

*/ inline RecommendationFeedbackSummary& WithReactions(Aws::Vector&& value) { SetReactions(std::move(value)); return *this;} /** *

List for storing reactions. Reactions are utf-8 text code for emojis.

*/ inline RecommendationFeedbackSummary& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; } /** *

List for storing reactions. Reactions are utf-8 text code for emojis.

*/ inline RecommendationFeedbackSummary& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; } /** *

The ID of the user that gave the feedback.

The UserId is * an IAM principal that can be specified as an Amazon Web Services account ID or * an Amazon Resource Name (ARN). For more information, see * Specifying a Principal in the Amazon Web Services Identity and Access * Management User Guide.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The ID of the user that gave the feedback.

The UserId is * an IAM principal that can be specified as an Amazon Web Services account ID or * an Amazon Resource Name (ARN). For more information, see * Specifying a Principal in the Amazon Web Services Identity and Access * Management User Guide.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The ID of the user that gave the feedback.

The UserId is * an IAM principal that can be specified as an Amazon Web Services account ID or * an Amazon Resource Name (ARN). For more information, see * Specifying a Principal in the Amazon Web Services Identity and Access * Management User Guide.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The ID of the user that gave the feedback.

The UserId is * an IAM principal that can be specified as an Amazon Web Services account ID or * an Amazon Resource Name (ARN). For more information, see * Specifying a Principal in the Amazon Web Services Identity and Access * Management User Guide.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The ID of the user that gave the feedback.

The UserId is * an IAM principal that can be specified as an Amazon Web Services account ID or * an Amazon Resource Name (ARN). For more information, see * Specifying a Principal in the Amazon Web Services Identity and Access * Management User Guide.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The ID of the user that gave the feedback.

The UserId is * an IAM principal that can be specified as an Amazon Web Services account ID or * an Amazon Resource Name (ARN). For more information, see * Specifying a Principal in the Amazon Web Services Identity and Access * Management User Guide.

*/ inline RecommendationFeedbackSummary& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The ID of the user that gave the feedback.

The UserId is * an IAM principal that can be specified as an Amazon Web Services account ID or * an Amazon Resource Name (ARN). For more information, see * Specifying a Principal in the Amazon Web Services Identity and Access * Management User Guide.

*/ inline RecommendationFeedbackSummary& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The ID of the user that gave the feedback.

The UserId is * an IAM principal that can be specified as an Amazon Web Services account ID or * an Amazon Resource Name (ARN). For more information, see * Specifying a Principal in the Amazon Web Services Identity and Access * Management User Guide.

*/ inline RecommendationFeedbackSummary& WithUserId(const char* value) { SetUserId(value); return *this;} private: Aws::String m_recommendationId; bool m_recommendationIdHasBeenSet = false; Aws::Vector m_reactions; bool m_reactionsHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws