/** * 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 CodeGuruProfiler { namespace Model { /** *

The structure representing the SubmitFeedbackRequest.

See * Also:

AWS * API Reference

*/ class SubmitFeedbackRequest : public CodeGuruProfilerRequest { public: AWS_CODEGURUPROFILER_API SubmitFeedbackRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SubmitFeedback"; } AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override; /** *

The universally unique identifier (UUID) of the * AnomalyInstance object that is included in the analysis * data.

*/ inline const Aws::String& GetAnomalyInstanceId() const{ return m_anomalyInstanceId; } /** *

The universally unique identifier (UUID) of the * AnomalyInstance object that is included in the analysis * data.

*/ inline bool AnomalyInstanceIdHasBeenSet() const { return m_anomalyInstanceIdHasBeenSet; } /** *

The universally unique identifier (UUID) of the * AnomalyInstance object that is included in the analysis * data.

*/ inline void SetAnomalyInstanceId(const Aws::String& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = value; } /** *

The universally unique identifier (UUID) of the * AnomalyInstance object that is included in the analysis * data.

*/ inline void SetAnomalyInstanceId(Aws::String&& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = std::move(value); } /** *

The universally unique identifier (UUID) of the * AnomalyInstance object that is included in the analysis * data.

*/ inline void SetAnomalyInstanceId(const char* value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId.assign(value); } /** *

The universally unique identifier (UUID) of the * AnomalyInstance object that is included in the analysis * data.

*/ inline SubmitFeedbackRequest& WithAnomalyInstanceId(const Aws::String& value) { SetAnomalyInstanceId(value); return *this;} /** *

The universally unique identifier (UUID) of the * AnomalyInstance object that is included in the analysis * data.

*/ inline SubmitFeedbackRequest& WithAnomalyInstanceId(Aws::String&& value) { SetAnomalyInstanceId(std::move(value)); return *this;} /** *

The universally unique identifier (UUID) of the * AnomalyInstance object that is included in the analysis * data.

*/ inline SubmitFeedbackRequest& WithAnomalyInstanceId(const char* value) { SetAnomalyInstanceId(value); return *this;} /** *

Optional feedback about this anomaly.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

Optional feedback about this anomaly.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

Optional feedback about this anomaly.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

Optional feedback about this anomaly.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

Optional feedback about this anomaly.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

Optional feedback about this anomaly.

*/ inline SubmitFeedbackRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

Optional feedback about this anomaly.

*/ inline SubmitFeedbackRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

Optional feedback about this anomaly.

*/ inline SubmitFeedbackRequest& WithComment(const char* value) { SetComment(value); return *this;} /** *

The name of the profiling group that is associated with the analysis * data.

*/ inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; } /** *

The name of the profiling group that is associated with the analysis * data.

*/ inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; } /** *

The name of the profiling group that is associated with the analysis * data.

*/ inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; } /** *

The name of the profiling group that is associated with the analysis * data.

*/ inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); } /** *

The name of the profiling group that is associated with the analysis * data.

*/ inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); } /** *

The name of the profiling group that is associated with the analysis * data.

*/ inline SubmitFeedbackRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;} /** *

The name of the profiling group that is associated with the analysis * data.

*/ inline SubmitFeedbackRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;} /** *

The name of the profiling group that is associated with the analysis * data.

*/ inline SubmitFeedbackRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;} /** *

The feedback tpye. Thee are two valid values, Positive and * Negative.

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

The feedback tpye. Thee are two valid values, Positive and * Negative.

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

The feedback tpye. Thee are two valid values, Positive and * Negative.

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

The feedback tpye. Thee are two valid values, Positive and * Negative.

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

The feedback tpye. Thee are two valid values, Positive and * Negative.

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

The feedback tpye. Thee are two valid values, Positive and * Negative.

*/ inline SubmitFeedbackRequest& WithType(FeedbackType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_anomalyInstanceId; bool m_anomalyInstanceIdHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; Aws::String m_profilingGroupName; bool m_profilingGroupNameHasBeenSet = false; FeedbackType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws