AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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
14#include <utility>
15
16namespace Aws {
17namespace SecurityAgent {
18namespace Model {
19
26 public:
27 AWS_SECURITYAGENT_API CreateCodeReviewRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCodeReview"; }
34
35 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetTitle() const { return m_title; }
42 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
43 template <typename TitleT = Aws::String>
44 void SetTitle(TitleT&& value) {
45 m_titleHasBeenSet = true;
46 m_title = std::forward<TitleT>(value);
47 }
48 template <typename TitleT = Aws::String>
50 SetTitle(std::forward<TitleT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
60 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
61 template <typename AgentSpaceIdT = Aws::String>
62 void SetAgentSpaceId(AgentSpaceIdT&& value) {
63 m_agentSpaceIdHasBeenSet = true;
64 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
65 }
66 template <typename AgentSpaceIdT = Aws::String>
67 CreateCodeReviewRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
68 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
69 return *this;
70 }
72
74
78 inline const Assets& GetAssets() const { return m_assets; }
79 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
80 template <typename AssetsT = Assets>
81 void SetAssets(AssetsT&& value) {
82 m_assetsHasBeenSet = true;
83 m_assets = std::forward<AssetsT>(value);
84 }
85 template <typename AssetsT = Assets>
87 SetAssets(std::forward<AssetsT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
97 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
98 template <typename ServiceRoleT = Aws::String>
99 void SetServiceRole(ServiceRoleT&& value) {
100 m_serviceRoleHasBeenSet = true;
101 m_serviceRole = std::forward<ServiceRoleT>(value);
102 }
103 template <typename ServiceRoleT = Aws::String>
105 SetServiceRole(std::forward<ServiceRoleT>(value));
106 return *this;
107 }
109
111
114 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
115 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
116 template <typename LogConfigT = CloudWatchLog>
117 void SetLogConfig(LogConfigT&& value) {
118 m_logConfigHasBeenSet = true;
119 m_logConfig = std::forward<LogConfigT>(value);
120 }
121 template <typename LogConfigT = CloudWatchLog>
123 SetLogConfig(std::forward<LogConfigT>(value));
124 return *this;
125 }
127
129
133 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
134 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
136 m_codeRemediationStrategyHasBeenSet = true;
137 m_codeRemediationStrategy = value;
138 }
141 return *this;
142 }
144 private:
145 Aws::String m_title;
146
147 Aws::String m_agentSpaceId;
148
149 Assets m_assets;
150
151 Aws::String m_serviceRole;
152
153 CloudWatchLog m_logConfig;
154
156 bool m_titleHasBeenSet = false;
157 bool m_agentSpaceIdHasBeenSet = false;
158 bool m_assetsHasBeenSet = false;
159 bool m_serviceRoleHasBeenSet = false;
160 bool m_logConfigHasBeenSet = false;
161 bool m_codeRemediationStrategyHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace SecurityAgent
166} // 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 & WithAgentSpaceId(AgentSpaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String