AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnomalyInstanceId(const Aws::String& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = value; }
50 inline void SetAnomalyInstanceId(Aws::String&& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = std::move(value); }
51 inline void SetAnomalyInstanceId(const char* value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId.assign(value); }
52 inline SubmitFeedbackRequest& WithAnomalyInstanceId(const Aws::String& value) { SetAnomalyInstanceId(value); return *this;}
53 inline SubmitFeedbackRequest& WithAnomalyInstanceId(Aws::String&& value) { SetAnomalyInstanceId(std::move(value)); return *this;}
54 inline SubmitFeedbackRequest& WithAnomalyInstanceId(const char* value) { SetAnomalyInstanceId(value); return *this;}
56
58
61 inline const Aws::String& GetComment() const{ return m_comment; }
62 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
63 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
64 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
65 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
66 inline SubmitFeedbackRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
67 inline SubmitFeedbackRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
68 inline SubmitFeedbackRequest& WithComment(const char* value) { SetComment(value); return *this;}
70
72
76 inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
77 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
78 inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
79 inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
80 inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
82 inline SubmitFeedbackRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
83 inline SubmitFeedbackRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
85
87
91 inline const FeedbackType& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const FeedbackType& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(FeedbackType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline SubmitFeedbackRequest& WithType(const FeedbackType& value) { SetType(value); return *this;}
96 inline SubmitFeedbackRequest& WithType(FeedbackType&& value) { SetType(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_anomalyInstanceId;
101 bool m_anomalyInstanceIdHasBeenSet = false;
102
103 Aws::String m_comment;
104 bool m_commentHasBeenSet = false;
105
106 Aws::String m_profilingGroupName;
107 bool m_profilingGroupNameHasBeenSet = false;
108
109 FeedbackType m_type;
110 bool m_typeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CodeGuruProfiler
115} // namespace Aws
SubmitFeedbackRequest & WithAnomalyInstanceId(const Aws::String &value)
SubmitFeedbackRequest & WithProfilingGroupName(Aws::String &&value)
SubmitFeedbackRequest & WithAnomalyInstanceId(const char *value)
SubmitFeedbackRequest & WithProfilingGroupName(const char *value)
SubmitFeedbackRequest & WithAnomalyInstanceId(Aws::String &&value)
SubmitFeedbackRequest & WithType(const FeedbackType &value)
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
SubmitFeedbackRequest & WithComment(const Aws::String &value)
SubmitFeedbackRequest & WithProfilingGroupName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SubmitFeedbackRequest & WithComment(Aws::String &&value)
SubmitFeedbackRequest & WithType(FeedbackType &&value)
SubmitFeedbackRequest & WithComment(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String