AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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
34 public:
35 AWS_SECURITYAGENT_API AgentSpace() = default;
36 AWS_SECURITYAGENT_API AgentSpace(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYAGENT_API AgentSpace& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
45 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
46 template <typename AgentSpaceIdT = Aws::String>
47 void SetAgentSpaceId(AgentSpaceIdT&& value) {
48 m_agentSpaceIdHasBeenSet = true;
49 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
50 }
51 template <typename AgentSpaceIdT = Aws::String>
52 AgentSpace& WithAgentSpaceId(AgentSpaceIdT&& value) {
53 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 AgentSpace& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 AgentSpace& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const AWSResources& GetAwsResources() const { return m_awsResources; }
99 inline bool AwsResourcesHasBeenSet() const { return m_awsResourcesHasBeenSet; }
100 template <typename AwsResourcesT = AWSResources>
101 void SetAwsResources(AwsResourcesT&& value) {
102 m_awsResourcesHasBeenSet = true;
103 m_awsResources = std::forward<AwsResourcesT>(value);
104 }
105 template <typename AwsResourcesT = AWSResources>
106 AgentSpace& WithAwsResources(AwsResourcesT&& value) {
107 SetAwsResources(std::forward<AwsResourcesT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<Aws::String>& GetTargetDomainIds() const { return m_targetDomainIds; }
117 inline bool TargetDomainIdsHasBeenSet() const { return m_targetDomainIdsHasBeenSet; }
118 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
119 void SetTargetDomainIds(TargetDomainIdsT&& value) {
120 m_targetDomainIdsHasBeenSet = true;
121 m_targetDomainIds = std::forward<TargetDomainIdsT>(value);
122 }
123 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
124 AgentSpace& WithTargetDomainIds(TargetDomainIdsT&& value) {
125 SetTargetDomainIds(std::forward<TargetDomainIdsT>(value));
126 return *this;
127 }
128 template <typename TargetDomainIdsT = Aws::String>
129 AgentSpace& AddTargetDomainIds(TargetDomainIdsT&& value) {
130 m_targetDomainIdsHasBeenSet = true;
131 m_targetDomainIds.emplace_back(std::forward<TargetDomainIdsT>(value));
132 return *this;
133 }
135
137
140 inline const CodeReviewSettings& GetCodeReviewSettings() const { return m_codeReviewSettings; }
141 inline bool CodeReviewSettingsHasBeenSet() const { return m_codeReviewSettingsHasBeenSet; }
142 template <typename CodeReviewSettingsT = CodeReviewSettings>
143 void SetCodeReviewSettings(CodeReviewSettingsT&& value) {
144 m_codeReviewSettingsHasBeenSet = true;
145 m_codeReviewSettings = std::forward<CodeReviewSettingsT>(value);
146 }
147 template <typename CodeReviewSettingsT = CodeReviewSettings>
148 AgentSpace& WithCodeReviewSettings(CodeReviewSettingsT&& value) {
149 SetCodeReviewSettings(std::forward<CodeReviewSettingsT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
160 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
161 template <typename KmsKeyIdT = Aws::String>
162 void SetKmsKeyId(KmsKeyIdT&& value) {
163 m_kmsKeyIdHasBeenSet = true;
164 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
165 }
166 template <typename KmsKeyIdT = Aws::String>
167 AgentSpace& WithKmsKeyId(KmsKeyIdT&& value) {
168 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
178 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
180 void SetCreatedAt(CreatedAtT&& value) {
181 m_createdAtHasBeenSet = true;
182 m_createdAt = std::forward<CreatedAtT>(value);
183 }
184 template <typename CreatedAtT = Aws::Utils::DateTime>
185 AgentSpace& WithCreatedAt(CreatedAtT&& value) {
186 SetCreatedAt(std::forward<CreatedAtT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
196 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
197 template <typename UpdatedAtT = Aws::Utils::DateTime>
198 void SetUpdatedAt(UpdatedAtT&& value) {
199 m_updatedAtHasBeenSet = true;
200 m_updatedAt = std::forward<UpdatedAtT>(value);
201 }
202 template <typename UpdatedAtT = Aws::Utils::DateTime>
203 AgentSpace& WithUpdatedAt(UpdatedAtT&& value) {
204 SetUpdatedAt(std::forward<UpdatedAtT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_agentSpaceId;
210
211 Aws::String m_name;
212
213 Aws::String m_description;
214
215 AWSResources m_awsResources;
216
217 Aws::Vector<Aws::String> m_targetDomainIds;
218
219 CodeReviewSettings m_codeReviewSettings;
220
221 Aws::String m_kmsKeyId;
222
223 Aws::Utils::DateTime m_createdAt{};
224
225 Aws::Utils::DateTime m_updatedAt{};
226 bool m_agentSpaceIdHasBeenSet = false;
227 bool m_nameHasBeenSet = false;
228 bool m_descriptionHasBeenSet = false;
229 bool m_awsResourcesHasBeenSet = false;
230 bool m_targetDomainIdsHasBeenSet = false;
231 bool m_codeReviewSettingsHasBeenSet = false;
232 bool m_kmsKeyIdHasBeenSet = false;
233 bool m_createdAtHasBeenSet = false;
234 bool m_updatedAtHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace SecurityAgent
239} // namespace Aws
AgentSpace & AddTargetDomainIds(TargetDomainIdsT &&value)
Definition AgentSpace.h:129
AWS_SECURITYAGENT_API AgentSpace & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentSpace & WithAwsResources(AwsResourcesT &&value)
Definition AgentSpace.h:106
const Aws::Vector< Aws::String > & GetTargetDomainIds() const
Definition AgentSpace.h:116
AgentSpace & WithKmsKeyId(KmsKeyIdT &&value)
Definition AgentSpace.h:167
AgentSpace & WithDescription(DescriptionT &&value)
Definition AgentSpace.h:88
void SetUpdatedAt(UpdatedAtT &&value)
Definition AgentSpace.h:198
void SetCodeReviewSettings(CodeReviewSettingsT &&value)
Definition AgentSpace.h:143
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAgentSpaceId() const
Definition AgentSpace.h:44
AgentSpace & WithTargetDomainIds(TargetDomainIdsT &&value)
Definition AgentSpace.h:124
void SetAwsResources(AwsResourcesT &&value)
Definition AgentSpace.h:101
const Aws::String & GetDescription() const
Definition AgentSpace.h:80
const Aws::String & GetName() const
Definition AgentSpace.h:62
const AWSResources & GetAwsResources() const
Definition AgentSpace.h:98
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AgentSpace.h:195
void SetDescription(DescriptionT &&value)
Definition AgentSpace.h:83
const Aws::String & GetKmsKeyId() const
Definition AgentSpace.h:159
AWS_SECURITYAGENT_API AgentSpace(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API AgentSpace()=default
void SetKmsKeyId(KmsKeyIdT &&value)
Definition AgentSpace.h:162
void SetCreatedAt(CreatedAtT &&value)
Definition AgentSpace.h:180
AgentSpace & WithCodeReviewSettings(CodeReviewSettingsT &&value)
Definition AgentSpace.h:148
AgentSpace & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition AgentSpace.h:52
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition AgentSpace.h:47
AgentSpace & WithCreatedAt(CreatedAtT &&value)
Definition AgentSpace.h:185
AgentSpace & WithName(NameT &&value)
Definition AgentSpace.h:70
AgentSpace & WithUpdatedAt(UpdatedAtT &&value)
Definition AgentSpace.h:203
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AgentSpace.h:177
void SetTargetDomainIds(TargetDomainIdsT &&value)
Definition AgentSpace.h:119
const CodeReviewSettings & GetCodeReviewSettings() const
Definition AgentSpace.h:140
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue