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

Feedback that can be submitted for each instance of an anomaly by the user. * Feedback is be used for improvements in generating recommendations for the * application.

See Also:

AWS * API Reference

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

Optional Positive or Negative feedback submitted by * the user about whether the recommendation is useful or not.

*/ inline const FeedbackType& GetType() const{ return m_type; } /** *

Optional Positive or Negative feedback submitted by * the user about whether the recommendation is useful or not.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Optional Positive or Negative feedback submitted by * the user about whether the recommendation is useful or not.

*/ inline void SetType(const FeedbackType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Optional Positive or Negative feedback submitted by * the user about whether the recommendation is useful or not.

*/ inline void SetType(FeedbackType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Optional Positive or Negative feedback submitted by * the user about whether the recommendation is useful or not.

*/ inline UserFeedback& WithType(const FeedbackType& value) { SetType(value); return *this;} /** *

Optional Positive or Negative feedback submitted by * the user about whether the recommendation is useful or not.

*/ inline UserFeedback& WithType(FeedbackType&& value) { SetType(std::move(value)); return *this;} private: FeedbackType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws