AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateCodeReviewRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgentRequest.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/Assets.h>
11#include <aws/securityagent/model/CloudWatchLog.h>
12#include <aws/securityagent/model/CodeRemediationStrategy.h>
13#include <aws/securityagent/model/ValidationMode.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SecurityAgent {
19namespace Model {
20
27 public:
28 AWS_SECURITYAGENT_API UpdateCodeReviewRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateCodeReview"; }
35
36 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
43 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
44 template <typename CodeReviewIdT = Aws::String>
45 void SetCodeReviewId(CodeReviewIdT&& value) {
46 m_codeReviewIdHasBeenSet = true;
47 m_codeReviewId = std::forward<CodeReviewIdT>(value);
48 }
49 template <typename CodeReviewIdT = Aws::String>
50 UpdateCodeReviewRequest& WithCodeReviewId(CodeReviewIdT&& value) {
51 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
61 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
62 template <typename AgentSpaceIdT = Aws::String>
63 void SetAgentSpaceId(AgentSpaceIdT&& value) {
64 m_agentSpaceIdHasBeenSet = true;
65 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
66 }
67 template <typename AgentSpaceIdT = Aws::String>
68 UpdateCodeReviewRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
69 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTitle() const { return m_title; }
79 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
80 template <typename TitleT = Aws::String>
81 void SetTitle(TitleT&& value) {
82 m_titleHasBeenSet = true;
83 m_title = std::forward<TitleT>(value);
84 }
85 template <typename TitleT = Aws::String>
87 SetTitle(std::forward<TitleT>(value));
88 return *this;
89 }
91
93
96 inline const Assets& GetAssets() const { return m_assets; }
97 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
98 template <typename AssetsT = Assets>
99 void SetAssets(AssetsT&& value) {
100 m_assetsHasBeenSet = true;
101 m_assets = std::forward<AssetsT>(value);
102 }
103 template <typename AssetsT = Assets>
105 SetAssets(std::forward<AssetsT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
115 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
116 template <typename ServiceRoleT = Aws::String>
117 void SetServiceRole(ServiceRoleT&& value) {
118 m_serviceRoleHasBeenSet = true;
119 m_serviceRole = std::forward<ServiceRoleT>(value);
120 }
121 template <typename ServiceRoleT = Aws::String>
123 SetServiceRole(std::forward<ServiceRoleT>(value));
124 return *this;
125 }
127
129
132 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
133 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
134 template <typename LogConfigT = CloudWatchLog>
135 void SetLogConfig(LogConfigT&& value) {
136 m_logConfigHasBeenSet = true;
137 m_logConfig = std::forward<LogConfigT>(value);
138 }
139 template <typename LogConfigT = CloudWatchLog>
141 SetLogConfig(std::forward<LogConfigT>(value));
142 return *this;
143 }
145
147
150 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
151 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
153 m_codeRemediationStrategyHasBeenSet = true;
154 m_codeRemediationStrategy = value;
155 }
158 return *this;
159 }
161
163
167 inline ValidationMode GetValidationMode() const { return m_validationMode; }
168 inline bool ValidationModeHasBeenSet() const { return m_validationModeHasBeenSet; }
170 m_validationModeHasBeenSet = true;
171 m_validationMode = value;
172 }
174 SetValidationMode(value);
175 return *this;
176 }
178 private:
179 Aws::String m_codeReviewId;
180
181 Aws::String m_agentSpaceId;
182
183 Aws::String m_title;
184
185 Assets m_assets;
186
187 Aws::String m_serviceRole;
188
189 CloudWatchLog m_logConfig;
190
192
193 ValidationMode m_validationMode{ValidationMode::NOT_SET};
194 bool m_codeReviewIdHasBeenSet = false;
195 bool m_agentSpaceIdHasBeenSet = false;
196 bool m_titleHasBeenSet = false;
197 bool m_assetsHasBeenSet = false;
198 bool m_serviceRoleHasBeenSet = false;
199 bool m_logConfigHasBeenSet = false;
200 bool m_codeRemediationStrategyHasBeenSet = false;
201 bool m_validationModeHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace SecurityAgent
206} // namespace Aws
AWS_SECURITYAGENT_API UpdateCodeReviewRequest()=default
UpdateCodeReviewRequest & WithLogConfig(LogConfigT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
UpdateCodeReviewRequest & WithServiceRole(ServiceRoleT &&value)
UpdateCodeReviewRequest & WithTitle(TitleT &&value)
UpdateCodeReviewRequest & WithCodeReviewId(CodeReviewIdT &&value)
UpdateCodeReviewRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdateCodeReviewRequest & WithAssets(AssetsT &&value)
UpdateCodeReviewRequest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
UpdateCodeReviewRequest & WithValidationMode(ValidationMode value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String