AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubmitFeedbackRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeguruprofiler/model/FeedbackType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeGuruProfiler
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_CODEGURUPROFILER_API SubmitFeedbackRequest() = default;
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_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
38
39
41
47 inline const Aws::String& GetAnomalyInstanceId() const { return m_anomalyInstanceId; }
48 inline bool AnomalyInstanceIdHasBeenSet() const { return m_anomalyInstanceIdHasBeenSet; }
49 template<typename AnomalyInstanceIdT = Aws::String>
50 void SetAnomalyInstanceId(AnomalyInstanceIdT&& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = std::forward<AnomalyInstanceIdT>(value); }
51 template<typename AnomalyInstanceIdT = Aws::String>
52 SubmitFeedbackRequest& WithAnomalyInstanceId(AnomalyInstanceIdT&& value) { SetAnomalyInstanceId(std::forward<AnomalyInstanceIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetComment() const { return m_comment; }
60 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
61 template<typename CommentT = Aws::String>
62 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
63 template<typename CommentT = Aws::String>
64 SubmitFeedbackRequest& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
66
68
72 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
73 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
74 template<typename ProfilingGroupNameT = Aws::String>
75 void SetProfilingGroupName(ProfilingGroupNameT&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::forward<ProfilingGroupNameT>(value); }
76 template<typename ProfilingGroupNameT = Aws::String>
77 SubmitFeedbackRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) { SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value)); return *this;}
79
81
85 inline FeedbackType GetType() const { return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(FeedbackType value) { m_typeHasBeenSet = true; m_type = value; }
88 inline SubmitFeedbackRequest& WithType(FeedbackType value) { SetType(value); return *this;}
90 private:
91
92 Aws::String m_anomalyInstanceId;
93 bool m_anomalyInstanceIdHasBeenSet = false;
94
95 Aws::String m_comment;
96 bool m_commentHasBeenSet = false;
97
98 Aws::String m_profilingGroupName;
99 bool m_profilingGroupNameHasBeenSet = false;
100
102 bool m_typeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CodeGuruProfiler
107} // 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