AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
135 inline const CodeReviewSettings& GetCodeReviewSettings() const { return m_codeReviewSettings; }
136 template <typename CodeReviewSettingsT = CodeReviewSettings>
137 void SetCodeReviewSettings(CodeReviewSettingsT&& value) {
138 m_codeReviewSettingsHasBeenSet = true;
139 m_codeReviewSettings = std::forward<CodeReviewSettingsT>(value);
140 }
141 template <typename CodeReviewSettingsT = CodeReviewSettings>
142 CreateAgentSpaceResult& WithCodeReviewSettings(CodeReviewSettingsT&& value) {
143 SetCodeReviewSettings(std::forward<CodeReviewSettingsT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
154 template <typename KmsKeyIdT = Aws::String>
155 void SetKmsKeyId(KmsKeyIdT&& value) {
156 m_kmsKeyIdHasBeenSet = true;
157 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
158 }
159 template <typename KmsKeyIdT = Aws::String>
161 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
171 template <typename CreatedAtT = Aws::Utils::DateTime>
172 void SetCreatedAt(CreatedAtT&& value) {
173 m_createdAtHasBeenSet = true;
174 m_createdAt = std::forward<CreatedAtT>(value);
175 }
176 template <typename CreatedAtT = Aws::Utils::DateTime>
178 SetCreatedAt(std::forward<CreatedAtT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
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>
195 SetUpdatedAt(std::forward<UpdatedAtT>(value));
196 return *this;
197 }
199
201
202 inline const Aws::String& GetRequestId() const { return m_requestId; }
203 template <typename RequestIdT = Aws::String>
204 void SetRequestId(RequestIdT&& value) {
205 m_requestIdHasBeenSet = true;
206 m_requestId = std::forward<RequestIdT>(value);
207 }
208 template <typename RequestIdT = Aws::String>
210 SetRequestId(std::forward<RequestIdT>(value));
211 return *this;
212 }
214 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
215
216 private:
217 Aws::String m_agentSpaceId;
218
219 Aws::String m_name;
220
221 Aws::String m_description;
222
223 AWSResources m_awsResources;
224
225 Aws::Vector<Aws::String> m_targetDomainIds;
226
227 CodeReviewSettings m_codeReviewSettings;
228
229 Aws::String m_kmsKeyId;
230
231 Aws::Utils::DateTime m_createdAt{};
232
233 Aws::Utils::DateTime m_updatedAt{};
234
235 Aws::String m_requestId;
236 Aws::Http::HttpResponseCode m_HttpResponseCode;
237 bool m_agentSpaceIdHasBeenSet = false;
238 bool m_nameHasBeenSet = false;
239 bool m_descriptionHasBeenSet = false;
240 bool m_awsResourcesHasBeenSet = false;
241 bool m_targetDomainIdsHasBeenSet = false;
242 bool m_codeReviewSettingsHasBeenSet = false;
243 bool m_kmsKeyIdHasBeenSet = false;
244 bool m_createdAtHasBeenSet = false;
245 bool m_updatedAtHasBeenSet = false;
246 bool m_requestIdHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace SecurityAgent
251} // 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