AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
AgentSpace.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/AWSResources.h>
12#include <aws/securityagent/model/CodeReviewSettings.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
32 public:
33 AWS_SECURITYAGENT_API AgentSpace() = default;
34 AWS_SECURITYAGENT_API AgentSpace(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API AgentSpace& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
43 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
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 AgentSpace& 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 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 AgentSpace& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 AgentSpace& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const AWSResources& GetAwsResources() const { return m_awsResources; }
97 inline bool AwsResourcesHasBeenSet() const { return m_awsResourcesHasBeenSet; }
98 template <typename AwsResourcesT = AWSResources>
99 void SetAwsResources(AwsResourcesT&& value) {
100 m_awsResourcesHasBeenSet = true;
101 m_awsResources = std::forward<AwsResourcesT>(value);
102 }
103 template <typename AwsResourcesT = AWSResources>
104 AgentSpace& WithAwsResources(AwsResourcesT&& value) {
105 SetAwsResources(std::forward<AwsResourcesT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Aws::String>& GetTargetDomainIds() const { return m_targetDomainIds; }
115 inline bool TargetDomainIdsHasBeenSet() const { return m_targetDomainIdsHasBeenSet; }
116 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
117 void SetTargetDomainIds(TargetDomainIdsT&& value) {
118 m_targetDomainIdsHasBeenSet = true;
119 m_targetDomainIds = std::forward<TargetDomainIdsT>(value);
120 }
121 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
122 AgentSpace& WithTargetDomainIds(TargetDomainIdsT&& value) {
123 SetTargetDomainIds(std::forward<TargetDomainIdsT>(value));
124 return *this;
125 }
126 template <typename TargetDomainIdsT = Aws::String>
127 AgentSpace& AddTargetDomainIds(TargetDomainIdsT&& value) {
128 m_targetDomainIdsHasBeenSet = true;
129 m_targetDomainIds.emplace_back(std::forward<TargetDomainIdsT>(value));
130 return *this;
131 }
133
135
139 inline const CodeReviewSettings& GetCodeReviewSettings() const { return m_codeReviewSettings; }
140 inline bool CodeReviewSettingsHasBeenSet() const { return m_codeReviewSettingsHasBeenSet; }
141 template <typename CodeReviewSettingsT = CodeReviewSettings>
142 void SetCodeReviewSettings(CodeReviewSettingsT&& value) {
143 m_codeReviewSettingsHasBeenSet = true;
144 m_codeReviewSettings = std::forward<CodeReviewSettingsT>(value);
145 }
146 template <typename CodeReviewSettingsT = CodeReviewSettings>
147 AgentSpace& WithCodeReviewSettings(CodeReviewSettingsT&& value) {
148 SetCodeReviewSettings(std::forward<CodeReviewSettingsT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
159 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
160 template <typename KmsKeyIdT = Aws::String>
161 void SetKmsKeyId(KmsKeyIdT&& value) {
162 m_kmsKeyIdHasBeenSet = true;
163 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
164 }
165 template <typename KmsKeyIdT = Aws::String>
166 AgentSpace& WithKmsKeyId(KmsKeyIdT&& value) {
167 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
177 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
178 template <typename CreatedAtT = Aws::Utils::DateTime>
179 void SetCreatedAt(CreatedAtT&& value) {
180 m_createdAtHasBeenSet = true;
181 m_createdAt = std::forward<CreatedAtT>(value);
182 }
183 template <typename CreatedAtT = Aws::Utils::DateTime>
184 AgentSpace& WithCreatedAt(CreatedAtT&& value) {
185 SetCreatedAt(std::forward<CreatedAtT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
195 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
196 template <typename UpdatedAtT = Aws::Utils::DateTime>
197 void SetUpdatedAt(UpdatedAtT&& value) {
198 m_updatedAtHasBeenSet = true;
199 m_updatedAt = std::forward<UpdatedAtT>(value);
200 }
201 template <typename UpdatedAtT = Aws::Utils::DateTime>
202 AgentSpace& WithUpdatedAt(UpdatedAtT&& value) {
203 SetUpdatedAt(std::forward<UpdatedAtT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_agentSpaceId;
209
210 Aws::String m_name;
211
212 Aws::String m_description;
213
214 AWSResources m_awsResources;
215
216 Aws::Vector<Aws::String> m_targetDomainIds;
217
218 CodeReviewSettings m_codeReviewSettings;
219
220 Aws::String m_kmsKeyId;
221
222 Aws::Utils::DateTime m_createdAt{};
223
224 Aws::Utils::DateTime m_updatedAt{};
225 bool m_agentSpaceIdHasBeenSet = false;
226 bool m_nameHasBeenSet = false;
227 bool m_descriptionHasBeenSet = false;
228 bool m_awsResourcesHasBeenSet = false;
229 bool m_targetDomainIdsHasBeenSet = false;
230 bool m_codeReviewSettingsHasBeenSet = false;
231 bool m_kmsKeyIdHasBeenSet = false;
232 bool m_createdAtHasBeenSet = false;
233 bool m_updatedAtHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace SecurityAgent
238} // namespace Aws
AgentSpace & AddTargetDomainIds(TargetDomainIdsT &&value)
Definition AgentSpace.h:127
AWS_SECURITYAGENT_API AgentSpace & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentSpace & WithAwsResources(AwsResourcesT &&value)
Definition AgentSpace.h:104
const Aws::Vector< Aws::String > & GetTargetDomainIds() const
Definition AgentSpace.h:114
AgentSpace & WithKmsKeyId(KmsKeyIdT &&value)
Definition AgentSpace.h:166
AgentSpace & WithDescription(DescriptionT &&value)
Definition AgentSpace.h:86
void SetUpdatedAt(UpdatedAtT &&value)
Definition AgentSpace.h:197
void SetCodeReviewSettings(CodeReviewSettingsT &&value)
Definition AgentSpace.h:142
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAgentSpaceId() const
Definition AgentSpace.h:42
AgentSpace & WithTargetDomainIds(TargetDomainIdsT &&value)
Definition AgentSpace.h:122
void SetAwsResources(AwsResourcesT &&value)
Definition AgentSpace.h:99
const Aws::String & GetDescription() const
Definition AgentSpace.h:78
const Aws::String & GetName() const
Definition AgentSpace.h:60
const AWSResources & GetAwsResources() const
Definition AgentSpace.h:96
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AgentSpace.h:194
void SetDescription(DescriptionT &&value)
Definition AgentSpace.h:81
const Aws::String & GetKmsKeyId() const
Definition AgentSpace.h:158
AWS_SECURITYAGENT_API AgentSpace(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API AgentSpace()=default
void SetKmsKeyId(KmsKeyIdT &&value)
Definition AgentSpace.h:161
void SetCreatedAt(CreatedAtT &&value)
Definition AgentSpace.h:179
AgentSpace & WithCodeReviewSettings(CodeReviewSettingsT &&value)
Definition AgentSpace.h:147
AgentSpace & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition AgentSpace.h:50
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition AgentSpace.h:45
AgentSpace & WithCreatedAt(CreatedAtT &&value)
Definition AgentSpace.h:184
AgentSpace & WithName(NameT &&value)
Definition AgentSpace.h:68
AgentSpace & WithUpdatedAt(UpdatedAtT &&value)
Definition AgentSpace.h:202
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AgentSpace.h:176
void SetTargetDomainIds(TargetDomainIdsT &&value)
Definition AgentSpace.h:117
const CodeReviewSettings & GetCodeReviewSettings() const
Definition AgentSpace.h:139
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue