AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreateCodeReviewRequest.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 CreateCodeReviewRequest() = 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 "CreateCodeReview"; }
35
36 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetTitle() const { return m_title; }
43 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
44 template <typename TitleT = Aws::String>
45 void SetTitle(TitleT&& value) {
46 m_titleHasBeenSet = true;
47 m_title = std::forward<TitleT>(value);
48 }
49 template <typename TitleT = Aws::String>
51 SetTitle(std::forward<TitleT>(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 CreateCodeReviewRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
69 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
70 return *this;
71 }
73
75
79 inline const Assets& GetAssets() const { return m_assets; }
80 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
81 template <typename AssetsT = Assets>
82 void SetAssets(AssetsT&& value) {
83 m_assetsHasBeenSet = true;
84 m_assets = std::forward<AssetsT>(value);
85 }
86 template <typename AssetsT = Assets>
88 SetAssets(std::forward<AssetsT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
98 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
99 template <typename ServiceRoleT = Aws::String>
100 void SetServiceRole(ServiceRoleT&& value) {
101 m_serviceRoleHasBeenSet = true;
102 m_serviceRole = std::forward<ServiceRoleT>(value);
103 }
104 template <typename ServiceRoleT = Aws::String>
106 SetServiceRole(std::forward<ServiceRoleT>(value));
107 return *this;
108 }
110
112
115 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
116 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
117 template <typename LogConfigT = CloudWatchLog>
118 void SetLogConfig(LogConfigT&& value) {
119 m_logConfigHasBeenSet = true;
120 m_logConfig = std::forward<LogConfigT>(value);
121 }
122 template <typename LogConfigT = CloudWatchLog>
124 SetLogConfig(std::forward<LogConfigT>(value));
125 return *this;
126 }
128
130
134 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
135 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
137 m_codeRemediationStrategyHasBeenSet = true;
138 m_codeRemediationStrategy = value;
139 }
142 return *this;
143 }
145
147
151 inline ValidationMode GetValidationMode() const { return m_validationMode; }
152 inline bool ValidationModeHasBeenSet() const { return m_validationModeHasBeenSet; }
154 m_validationModeHasBeenSet = true;
155 m_validationMode = value;
156 }
158 SetValidationMode(value);
159 return *this;
160 }
162 private:
163 Aws::String m_title;
164
165 Aws::String m_agentSpaceId;
166
167 Assets m_assets;
168
169 Aws::String m_serviceRole;
170
171 CloudWatchLog m_logConfig;
172
174
175 ValidationMode m_validationMode{ValidationMode::NOT_SET};
176 bool m_titleHasBeenSet = false;
177 bool m_agentSpaceIdHasBeenSet = false;
178 bool m_assetsHasBeenSet = false;
179 bool m_serviceRoleHasBeenSet = false;
180 bool m_logConfigHasBeenSet = false;
181 bool m_codeRemediationStrategyHasBeenSet = false;
182 bool m_validationModeHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace SecurityAgent
187} // namespace Aws
CreateCodeReviewRequest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
CreateCodeReviewRequest & WithServiceRole(ServiceRoleT &&value)
CreateCodeReviewRequest & WithAssets(AssetsT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
AWS_SECURITYAGENT_API CreateCodeReviewRequest()=default
CreateCodeReviewRequest & WithLogConfig(LogConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateCodeReviewRequest & WithTitle(TitleT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreateCodeReviewRequest & WithValidationMode(ValidationMode value)
CreateCodeReviewRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String