AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateCommentRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Assurance {
15namespace Model {
16
20 public:
21 AWS_ASSURANCE_API CreateCommentRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateComment"; }
28
29 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
38 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
39 template <typename EnvironmentArnT = Aws::String>
40 void SetEnvironmentArn(EnvironmentArnT&& value) {
41 m_environmentArnHasBeenSet = true;
42 m_environmentArn = std::forward<EnvironmentArnT>(value);
43 }
44 template <typename EnvironmentArnT = Aws::String>
45 CreateCommentRequest& WithEnvironmentArn(EnvironmentArnT&& value) {
46 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetProject() const { return m_project; }
56 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
57 template <typename ProjectT = Aws::String>
58 void SetProject(ProjectT&& value) {
59 m_projectHasBeenSet = true;
60 m_project = std::forward<ProjectT>(value);
61 }
62 template <typename ProjectT = Aws::String>
63 CreateCommentRequest& WithProject(ProjectT&& value) {
64 SetProject(std::forward<ProjectT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetFramework() const { return m_framework; }
74 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
75 template <typename FrameworkT = Aws::String>
76 void SetFramework(FrameworkT&& value) {
77 m_frameworkHasBeenSet = true;
78 m_framework = std::forward<FrameworkT>(value);
79 }
80 template <typename FrameworkT = Aws::String>
81 CreateCommentRequest& WithFramework(FrameworkT&& value) {
82 SetFramework(std::forward<FrameworkT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
92 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
93 template <typename FrameworkVersionT = Aws::String>
94 void SetFrameworkVersion(FrameworkVersionT&& value) {
95 m_frameworkVersionHasBeenSet = true;
96 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
97 }
98 template <typename FrameworkVersionT = Aws::String>
99 CreateCommentRequest& WithFrameworkVersion(FrameworkVersionT&& value) {
100 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetControlId() const { return m_controlId; }
111 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
112 template <typename ControlIdT = Aws::String>
113 void SetControlId(ControlIdT&& value) {
114 m_controlIdHasBeenSet = true;
115 m_controlId = std::forward<ControlIdT>(value);
116 }
117 template <typename ControlIdT = Aws::String>
118 CreateCommentRequest& WithControlId(ControlIdT&& value) {
119 SetControlId(std::forward<ControlIdT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetTaskId() const { return m_taskId; }
129 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
130 template <typename TaskIdT = Aws::String>
131 void SetTaskId(TaskIdT&& value) {
132 m_taskIdHasBeenSet = true;
133 m_taskId = std::forward<TaskIdT>(value);
134 }
135 template <typename TaskIdT = Aws::String>
137 SetTaskId(std::forward<TaskIdT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetContent() const { return m_content; }
147 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
148 template <typename ContentT = Aws::String>
149 void SetContent(ContentT&& value) {
150 m_contentHasBeenSet = true;
151 m_content = std::forward<ContentT>(value);
152 }
153 template <typename ContentT = Aws::String>
155 SetContent(std::forward<ContentT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_environmentArn;
161
162 Aws::String m_project;
163
164 Aws::String m_framework;
165
166 Aws::String m_frameworkVersion;
167
168 Aws::String m_controlId;
169
170 Aws::String m_taskId;
171
172 Aws::String m_content;
173 bool m_environmentArnHasBeenSet = false;
174 bool m_projectHasBeenSet = false;
175 bool m_frameworkHasBeenSet = false;
176 bool m_frameworkVersionHasBeenSet = false;
177 bool m_controlIdHasBeenSet = false;
178 bool m_taskIdHasBeenSet = false;
179 bool m_contentHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace Assurance
184} // namespace Aws
CreateCommentRequest & WithControlId(ControlIdT &&value)
CreateCommentRequest & WithFrameworkVersion(FrameworkVersionT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_ASSURANCE_API Aws::String SerializePayload() const override
void SetEnvironmentArn(EnvironmentArnT &&value)
CreateCommentRequest & WithTaskId(TaskIdT &&value)
CreateCommentRequest & WithFramework(FrameworkT &&value)
CreateCommentRequest & WithContent(ContentT &&value)
void SetFrameworkVersion(FrameworkVersionT &&value)
AWS_ASSURANCE_API CreateCommentRequest()=default
CreateCommentRequest & WithProject(ProjectT &&value)
CreateCommentRequest & WithEnvironmentArn(EnvironmentArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String