AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CreateAgentSpaceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityagent/SecurityAgent_EXPORTS.h>
12#include <aws/securityagent/model/AWSResources.h>
13#include <aws/securityagent/model/CodeReviewSettings.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SecurityAgent {
27namespace Model {
34 public:
35 AWS_SECURITYAGENT_API CreateAgentSpaceResult() = default;
38
40
43 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
44 template <typename AgentSpaceIdT = Aws::String>
45 void SetAgentSpaceId(AgentSpaceIdT&& value) {
46 m_agentSpaceIdHasBeenSet = true;
47 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
48 }
49 template <typename AgentSpaceIdT = Aws::String>
50 CreateAgentSpaceResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
51 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 CreateAgentSpaceResult& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const AWSResources& GetAwsResources() const { return m_awsResources; }
95 template <typename AwsResourcesT = AWSResources>
96 void SetAwsResources(AwsResourcesT&& value) {
97 m_awsResourcesHasBeenSet = true;
98 m_awsResources = std::forward<AwsResourcesT>(value);
99 }
100 template <typename AwsResourcesT = AWSResources>
101 CreateAgentSpaceResult& WithAwsResources(AwsResourcesT&& value) {
102 SetAwsResources(std::forward<AwsResourcesT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Aws::String>& GetTargetDomainIds() const { return m_targetDomainIds; }
112 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
113 void SetTargetDomainIds(TargetDomainIdsT&& value) {
114 m_targetDomainIdsHasBeenSet = true;
115 m_targetDomainIds = std::forward<TargetDomainIdsT>(value);
116 }
117 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
118 CreateAgentSpaceResult& WithTargetDomainIds(TargetDomainIdsT&& value) {
119 SetTargetDomainIds(std::forward<TargetDomainIdsT>(value));
120 return *this;
121 }
122 template <typename TargetDomainIdsT = Aws::String>
123 CreateAgentSpaceResult& AddTargetDomainIds(TargetDomainIdsT&& value) {
124 m_targetDomainIdsHasBeenSet = true;
125 m_targetDomainIds.emplace_back(std::forward<TargetDomainIdsT>(value));
126 return *this;
127 }
129
131
134 inline const CodeReviewSettings& GetCodeReviewSettings() const { return m_codeReviewSettings; }
135 template <typename CodeReviewSettingsT = CodeReviewSettings>
136 void SetCodeReviewSettings(CodeReviewSettingsT&& value) {
137 m_codeReviewSettingsHasBeenSet = true;
138 m_codeReviewSettings = std::forward<CodeReviewSettingsT>(value);
139 }
140 template <typename CodeReviewSettingsT = CodeReviewSettings>
141 CreateAgentSpaceResult& WithCodeReviewSettings(CodeReviewSettingsT&& value) {
142 SetCodeReviewSettings(std::forward<CodeReviewSettingsT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
153 template <typename KmsKeyIdT = Aws::String>
154 void SetKmsKeyId(KmsKeyIdT&& value) {
155 m_kmsKeyIdHasBeenSet = true;
156 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
157 }
158 template <typename KmsKeyIdT = Aws::String>
160 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
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>
177 SetCreatedAt(std::forward<CreatedAtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
187 template <typename UpdatedAtT = Aws::Utils::DateTime>
188 void SetUpdatedAt(UpdatedAtT&& value) {
189 m_updatedAtHasBeenSet = true;
190 m_updatedAt = std::forward<UpdatedAtT>(value);
191 }
192 template <typename UpdatedAtT = Aws::Utils::DateTime>
194 SetUpdatedAt(std::forward<UpdatedAtT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::String m_agentSpaceId;
217
218 Aws::String m_name;
219
220 Aws::String m_description;
221
222 AWSResources m_awsResources;
223
224 Aws::Vector<Aws::String> m_targetDomainIds;
225
226 CodeReviewSettings m_codeReviewSettings;
227
228 Aws::String m_kmsKeyId;
229
230 Aws::Utils::DateTime m_createdAt{};
231
232 Aws::Utils::DateTime m_updatedAt{};
233
234 Aws::String m_requestId;
235 Aws::Http::HttpResponseCode m_HttpResponseCode;
236 bool m_agentSpaceIdHasBeenSet = false;
237 bool m_nameHasBeenSet = false;
238 bool m_descriptionHasBeenSet = false;
239 bool m_awsResourcesHasBeenSet = false;
240 bool m_targetDomainIdsHasBeenSet = false;
241 bool m_codeReviewSettingsHasBeenSet = false;
242 bool m_kmsKeyIdHasBeenSet = false;
243 bool m_createdAtHasBeenSet = false;
244 bool m_updatedAtHasBeenSet = false;
245 bool m_requestIdHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace SecurityAgent
250} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const CodeReviewSettings & GetCodeReviewSettings() const
const Aws::Vector< Aws::String > & GetTargetDomainIds() const
AWS_SECURITYAGENT_API CreateAgentSpaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateAgentSpaceResult & WithRequestId(RequestIdT &&value)
CreateAgentSpaceResult & WithTargetDomainIds(TargetDomainIdsT &&value)
CreateAgentSpaceResult & WithAwsResources(AwsResourcesT &&value)
CreateAgentSpaceResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYAGENT_API CreateAgentSpaceResult()=default
CreateAgentSpaceResult & WithKmsKeyId(KmsKeyIdT &&value)
CreateAgentSpaceResult & AddTargetDomainIds(TargetDomainIdsT &&value)
CreateAgentSpaceResult & WithName(NameT &&value)
CreateAgentSpaceResult & WithCreatedAt(CreatedAtT &&value)
CreateAgentSpaceResult & WithAgentSpaceId(AgentSpaceIdT &&value)
AWS_SECURITYAGENT_API CreateAgentSpaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateAgentSpaceResult & WithCodeReviewSettings(CodeReviewSettingsT &&value)
CreateAgentSpaceResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue