AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CodeReview.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.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
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityAgent {
24namespace Model {
25
34 public:
35 AWS_SECURITYAGENT_API CodeReview() = default;
36 AWS_SECURITYAGENT_API CodeReview(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYAGENT_API CodeReview& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
45 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
46 template <typename CodeReviewIdT = Aws::String>
47 void SetCodeReviewId(CodeReviewIdT&& value) {
48 m_codeReviewIdHasBeenSet = true;
49 m_codeReviewId = std::forward<CodeReviewIdT>(value);
50 }
51 template <typename CodeReviewIdT = Aws::String>
52 CodeReview& WithCodeReviewId(CodeReviewIdT&& value) {
53 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
63 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
64 template <typename AgentSpaceIdT = Aws::String>
65 void SetAgentSpaceId(AgentSpaceIdT&& value) {
66 m_agentSpaceIdHasBeenSet = true;
67 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
68 }
69 template <typename AgentSpaceIdT = Aws::String>
70 CodeReview& WithAgentSpaceId(AgentSpaceIdT&& value) {
71 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTitle() const { return m_title; }
81 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
82 template <typename TitleT = Aws::String>
83 void SetTitle(TitleT&& value) {
84 m_titleHasBeenSet = true;
85 m_title = std::forward<TitleT>(value);
86 }
87 template <typename TitleT = Aws::String>
88 CodeReview& WithTitle(TitleT&& value) {
89 SetTitle(std::forward<TitleT>(value));
90 return *this;
91 }
93
95
98 inline const Assets& GetAssets() const { return m_assets; }
99 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
100 template <typename AssetsT = Assets>
101 void SetAssets(AssetsT&& value) {
102 m_assetsHasBeenSet = true;
103 m_assets = std::forward<AssetsT>(value);
104 }
105 template <typename AssetsT = Assets>
106 CodeReview& WithAssets(AssetsT&& value) {
107 SetAssets(std::forward<AssetsT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
117 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
118 template <typename ServiceRoleT = Aws::String>
119 void SetServiceRole(ServiceRoleT&& value) {
120 m_serviceRoleHasBeenSet = true;
121 m_serviceRole = std::forward<ServiceRoleT>(value);
122 }
123 template <typename ServiceRoleT = Aws::String>
124 CodeReview& WithServiceRole(ServiceRoleT&& value) {
125 SetServiceRole(std::forward<ServiceRoleT>(value));
126 return *this;
127 }
129
131
134 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
135 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
136 template <typename LogConfigT = CloudWatchLog>
137 void SetLogConfig(LogConfigT&& value) {
138 m_logConfigHasBeenSet = true;
139 m_logConfig = std::forward<LogConfigT>(value);
140 }
141 template <typename LogConfigT = CloudWatchLog>
142 CodeReview& WithLogConfig(LogConfigT&& value) {
143 SetLogConfig(std::forward<LogConfigT>(value));
144 return *this;
145 }
147
149
152 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
153 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
155 m_codeRemediationStrategyHasBeenSet = true;
156 m_codeRemediationStrategy = value;
157 }
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
169 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
170 template <typename CreatedAtT = Aws::Utils::DateTime>
171 void SetCreatedAt(CreatedAtT&& value) {
172 m_createdAtHasBeenSet = true;
173 m_createdAt = std::forward<CreatedAtT>(value);
174 }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
176 CodeReview& WithCreatedAt(CreatedAtT&& value) {
177 SetCreatedAt(std::forward<CreatedAtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
187 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
188 template <typename UpdatedAtT = Aws::Utils::DateTime>
189 void SetUpdatedAt(UpdatedAtT&& value) {
190 m_updatedAtHasBeenSet = true;
191 m_updatedAt = std::forward<UpdatedAtT>(value);
192 }
193 template <typename UpdatedAtT = Aws::Utils::DateTime>
194 CodeReview& WithUpdatedAt(UpdatedAtT&& value) {
195 SetUpdatedAt(std::forward<UpdatedAtT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_codeReviewId;
201
202 Aws::String m_agentSpaceId;
203
204 Aws::String m_title;
205
206 Assets m_assets;
207
208 Aws::String m_serviceRole;
209
210 CloudWatchLog m_logConfig;
211
213
214 Aws::Utils::DateTime m_createdAt{};
215
216 Aws::Utils::DateTime m_updatedAt{};
217 bool m_codeReviewIdHasBeenSet = false;
218 bool m_agentSpaceIdHasBeenSet = false;
219 bool m_titleHasBeenSet = false;
220 bool m_assetsHasBeenSet = false;
221 bool m_serviceRoleHasBeenSet = false;
222 bool m_logConfigHasBeenSet = false;
223 bool m_codeRemediationStrategyHasBeenSet = false;
224 bool m_createdAtHasBeenSet = false;
225 bool m_updatedAtHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace SecurityAgent
230} // namespace Aws
CodeReview & WithAssets(AssetsT &&value)
Definition CodeReview.h:106
CodeReview & WithLogConfig(LogConfigT &&value)
Definition CodeReview.h:142
CodeReview & WithUpdatedAt(UpdatedAtT &&value)
Definition CodeReview.h:194
CodeRemediationStrategy GetCodeRemediationStrategy() const
Definition CodeReview.h:152
AWS_SECURITYAGENT_API CodeReview & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeReview & WithCodeReviewId(CodeReviewIdT &&value)
Definition CodeReview.h:52
void SetLogConfig(LogConfigT &&value)
Definition CodeReview.h:137
const Aws::String & GetCodeReviewId() const
Definition CodeReview.h:44
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const CloudWatchLog & GetLogConfig() const
Definition CodeReview.h:134
CodeReview & WithCreatedAt(CreatedAtT &&value)
Definition CodeReview.h:176
const Aws::String & GetAgentSpaceId() const
Definition CodeReview.h:62
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
Definition CodeReview.h:154
AWS_SECURITYAGENT_API CodeReview(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API CodeReview()=default
void SetCreatedAt(CreatedAtT &&value)
Definition CodeReview.h:171
const Aws::String & GetTitle() const
Definition CodeReview.h:80
const Aws::String & GetServiceRole() const
Definition CodeReview.h:116
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition CodeReview.h:65
CodeReview & WithCodeRemediationStrategy(CodeRemediationStrategy value)
Definition CodeReview.h:158
void SetCodeReviewId(CodeReviewIdT &&value)
Definition CodeReview.h:47
const Assets & GetAssets() const
Definition CodeReview.h:98
CodeReview & WithTitle(TitleT &&value)
Definition CodeReview.h:88
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition CodeReview.h:186
CodeReview & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition CodeReview.h:70
const Aws::Utils::DateTime & GetCreatedAt() const
Definition CodeReview.h:168
CodeReview & WithServiceRole(ServiceRoleT &&value)
Definition CodeReview.h:124
void SetUpdatedAt(UpdatedAtT &&value)
Definition CodeReview.h:189
void SetServiceRole(ServiceRoleT &&value)
Definition CodeReview.h:119
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue