AWS SDK for C++  1.9.15
AWS SDK for C++
SubmitFeedbackRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CodeGuruProfiler
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "SubmitFeedback"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
46  inline const Aws::String& GetAnomalyInstanceId() const{ return m_anomalyInstanceId; }
47 
54  inline bool AnomalyInstanceIdHasBeenSet() const { return m_anomalyInstanceIdHasBeenSet; }
55 
62  inline void SetAnomalyInstanceId(const Aws::String& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = value; }
63 
70  inline void SetAnomalyInstanceId(Aws::String&& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = std::move(value); }
71 
78  inline void SetAnomalyInstanceId(const char* value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId.assign(value); }
79 
86  inline SubmitFeedbackRequest& WithAnomalyInstanceId(const Aws::String& value) { SetAnomalyInstanceId(value); return *this;}
87 
94  inline SubmitFeedbackRequest& WithAnomalyInstanceId(Aws::String&& value) { SetAnomalyInstanceId(std::move(value)); return *this;}
95 
102  inline SubmitFeedbackRequest& WithAnomalyInstanceId(const char* value) { SetAnomalyInstanceId(value); return *this;}
103 
104 
108  inline const Aws::String& GetComment() const{ return m_comment; }
109 
113  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
114 
118  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
119 
123  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
124 
128  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
129 
133  inline SubmitFeedbackRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
134 
138  inline SubmitFeedbackRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
139 
143  inline SubmitFeedbackRequest& WithComment(const char* value) { SetComment(value); return *this;}
144 
145 
150  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
151 
156  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
157 
162  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
163 
168  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
169 
174  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
175 
180  inline SubmitFeedbackRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
181 
186  inline SubmitFeedbackRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
187 
192  inline SubmitFeedbackRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
193 
194 
199  inline const FeedbackType& GetType() const{ return m_type; }
200 
205  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
206 
211  inline void SetType(const FeedbackType& value) { m_typeHasBeenSet = true; m_type = value; }
212 
217  inline void SetType(FeedbackType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
218 
223  inline SubmitFeedbackRequest& WithType(const FeedbackType& value) { SetType(value); return *this;}
224 
229  inline SubmitFeedbackRequest& WithType(FeedbackType&& value) { SetType(std::move(value)); return *this;}
230 
231  private:
232 
233  Aws::String m_anomalyInstanceId;
234  bool m_anomalyInstanceIdHasBeenSet;
235 
236  Aws::String m_comment;
237  bool m_commentHasBeenSet;
238 
239  Aws::String m_profilingGroupName;
240  bool m_profilingGroupNameHasBeenSet;
241 
242  FeedbackType m_type;
243  bool m_typeHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace CodeGuruProfiler
248 } // namespace Aws
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithAnomalyInstanceId
SubmitFeedbackRequest & WithAnomalyInstanceId(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:94
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: SubmitFeedbackRequest.h:205
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithAnomalyInstanceId
SubmitFeedbackRequest & WithAnomalyInstanceId(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:86
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithComment
SubmitFeedbackRequest & WithComment(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:138
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithComment
SubmitFeedbackRequest & WithComment(const char *value)
Definition: SubmitFeedbackRequest.h:143
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithType
SubmitFeedbackRequest & WithType(FeedbackType &&value)
Definition: SubmitFeedbackRequest.h:229
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetAnomalyInstanceId
void SetAnomalyInstanceId(const char *value)
Definition: SubmitFeedbackRequest.h:78
AWS_CODEGURUPROFILER_API
#define AWS_CODEGURUPROFILER_API
Definition: CodeGuruProfiler_EXPORTS.h:28
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::GetComment
const Aws::String & GetComment() const
Definition: SubmitFeedbackRequest.h:108
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetAnomalyInstanceId
void SetAnomalyInstanceId(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:70
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetProfilingGroupName
void SetProfilingGroupName(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:168
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::GetType
const FeedbackType & GetType() const
Definition: SubmitFeedbackRequest.h:199
CodeGuruProfiler_EXPORTS.h
CodeGuruProfilerRequest.h
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetProfilingGroupName
void SetProfilingGroupName(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:162
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithProfilingGroupName
SubmitFeedbackRequest & WithProfilingGroupName(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:180
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetAnomalyInstanceId
void SetAnomalyInstanceId(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:62
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetComment
void SetComment(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:123
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest
Definition: SubmitFeedbackRequest.h:27
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithType
SubmitFeedbackRequest & WithType(const FeedbackType &value)
Definition: SubmitFeedbackRequest.h:223
FeedbackType.h
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithAnomalyInstanceId
SubmitFeedbackRequest & WithAnomalyInstanceId(const char *value)
Definition: SubmitFeedbackRequest.h:102
AWSString.h
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithComment
SubmitFeedbackRequest & WithComment(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:133
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithProfilingGroupName
SubmitFeedbackRequest & WithProfilingGroupName(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:186
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: SubmitFeedbackRequest.h:113
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetProfilingGroupName
void SetProfilingGroupName(const char *value)
Definition: SubmitFeedbackRequest.h:174
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetComment
void SetComment(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:118
Aws::CodeGuruProfiler::Model::FeedbackType
FeedbackType
Definition: FeedbackType.h:17
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::GetProfilingGroupName
const Aws::String & GetProfilingGroupName() const
Definition: SubmitFeedbackRequest.h:150
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetComment
void SetComment(const char *value)
Definition: SubmitFeedbackRequest.h:128
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SubmitFeedbackRequest.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::ProfilingGroupNameHasBeenSet
bool ProfilingGroupNameHasBeenSet() const
Definition: SubmitFeedbackRequest.h:156
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::AnomalyInstanceIdHasBeenSet
bool AnomalyInstanceIdHasBeenSet() const
Definition: SubmitFeedbackRequest.h:54
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::WithProfilingGroupName
SubmitFeedbackRequest & WithProfilingGroupName(const char *value)
Definition: SubmitFeedbackRequest.h:192
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetType
void SetType(const FeedbackType &value)
Definition: SubmitFeedbackRequest.h:211
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SetType
void SetType(FeedbackType &&value)
Definition: SubmitFeedbackRequest.h:217
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::GetAnomalyInstanceId
const Aws::String & GetAnomalyInstanceId() const
Definition: SubmitFeedbackRequest.h:46
Aws::CodeGuruProfiler::Model::SubmitFeedbackRequest::SubmitFeedbackRequest
SubmitFeedbackRequest()
Aws::CodeGuruProfiler::CodeGuruProfilerRequest
Definition: CodeGuruProfilerRequest.h:18