AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SubmitFeedbackRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
8#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
9#include <aws/codeguruprofiler/model/FeedbackType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeGuruProfiler {
16namespace Model {
17
25 public:
26 AWS_CODEGURUPROFILER_API SubmitFeedbackRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SubmitFeedback"; }
33
34 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
35
37
43 inline const Aws::String& GetAnomalyInstanceId() const { return m_anomalyInstanceId; }
44 inline bool AnomalyInstanceIdHasBeenSet() const { return m_anomalyInstanceIdHasBeenSet; }
45 template <typename AnomalyInstanceIdT = Aws::String>
46 void SetAnomalyInstanceId(AnomalyInstanceIdT&& value) {
47 m_anomalyInstanceIdHasBeenSet = true;
48 m_anomalyInstanceId = std::forward<AnomalyInstanceIdT>(value);
49 }
50 template <typename AnomalyInstanceIdT = Aws::String>
51 SubmitFeedbackRequest& WithAnomalyInstanceId(AnomalyInstanceIdT&& value) {
52 SetAnomalyInstanceId(std::forward<AnomalyInstanceIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetComment() const { return m_comment; }
62 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
63 template <typename CommentT = Aws::String>
64 void SetComment(CommentT&& value) {
65 m_commentHasBeenSet = true;
66 m_comment = std::forward<CommentT>(value);
67 }
68 template <typename CommentT = Aws::String>
70 SetComment(std::forward<CommentT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
81 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
82 template <typename ProfilingGroupNameT = Aws::String>
83 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
84 m_profilingGroupNameHasBeenSet = true;
85 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
86 }
87 template <typename ProfilingGroupNameT = Aws::String>
88 SubmitFeedbackRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) {
89 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
90 return *this;
91 }
93
95
99 inline FeedbackType GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(FeedbackType value) {
102 m_typeHasBeenSet = true;
103 m_type = value;
104 }
106 SetType(value);
107 return *this;
108 }
110 private:
111 Aws::String m_anomalyInstanceId;
112
113 Aws::String m_comment;
114
115 Aws::String m_profilingGroupName;
116
118 bool m_anomalyInstanceIdHasBeenSet = false;
119 bool m_commentHasBeenSet = false;
120 bool m_profilingGroupNameHasBeenSet = false;
121 bool m_typeHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CodeGuruProfiler
126} // namespace Aws
SubmitFeedbackRequest & WithAnomalyInstanceId(AnomalyInstanceIdT &&value)
SubmitFeedbackRequest & WithComment(CommentT &&value)
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
SubmitFeedbackRequest & WithType(FeedbackType value)
SubmitFeedbackRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
AWS_CODEGURUPROFILER_API SubmitFeedbackRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String