AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AgentSpace.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/AgentSpacePreferenceKey.h>
12#include <aws/devops-agent/model/AwsSourceMode.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DevOpsAgent {
24namespace Model {
25
33 public:
34 AWS_DEVOPSAGENT_API AgentSpace() = default;
35 AWS_DEVOPSAGENT_API AgentSpace(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVOPSAGENT_API AgentSpace& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 AgentSpace& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 AgentSpace& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetLocale() const { return m_locale; }
81 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
82 template <typename LocaleT = Aws::String>
83 void SetLocale(LocaleT&& value) {
84 m_localeHasBeenSet = true;
85 m_locale = std::forward<LocaleT>(value);
86 }
87 template <typename LocaleT = Aws::String>
88 AgentSpace& WithLocale(LocaleT&& value) {
89 SetLocale(std::forward<LocaleT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
99 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 void SetCreatedAt(CreatedAtT&& value) {
102 m_createdAtHasBeenSet = true;
103 m_createdAt = std::forward<CreatedAtT>(value);
104 }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
106 AgentSpace& WithCreatedAt(CreatedAtT&& value) {
107 SetCreatedAt(std::forward<CreatedAtT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
117 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
118 template <typename UpdatedAtT = Aws::Utils::DateTime>
119 void SetUpdatedAt(UpdatedAtT&& value) {
120 m_updatedAtHasBeenSet = true;
121 m_updatedAt = std::forward<UpdatedAtT>(value);
122 }
123 template <typename UpdatedAtT = Aws::Utils::DateTime>
124 AgentSpace& WithUpdatedAt(UpdatedAtT&& value) {
125 SetUpdatedAt(std::forward<UpdatedAtT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
136 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
137 template <typename KmsKeyArnT = Aws::String>
138 void SetKmsKeyArn(KmsKeyArnT&& value) {
139 m_kmsKeyArnHasBeenSet = true;
140 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
141 }
142 template <typename KmsKeyArnT = Aws::String>
143 AgentSpace& WithKmsKeyArn(KmsKeyArnT&& value) {
144 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
154 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
155 template <typename AgentSpaceIdT = Aws::String>
156 void SetAgentSpaceId(AgentSpaceIdT&& value) {
157 m_agentSpaceIdHasBeenSet = true;
158 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
159 }
160 template <typename AgentSpaceIdT = Aws::String>
161 AgentSpace& WithAgentSpaceId(AgentSpaceIdT&& value) {
162 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::Map<AgentSpacePreferenceKey, bool>& GetPreferences() const { return m_preferences; }
173 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
174 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
175 void SetPreferences(PreferencesT&& value) {
176 m_preferencesHasBeenSet = true;
177 m_preferences = std::forward<PreferencesT>(value);
178 }
179 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
180 AgentSpace& WithPreferences(PreferencesT&& value) {
181 SetPreferences(std::forward<PreferencesT>(value));
182 return *this;
183 }
185 m_preferencesHasBeenSet = true;
186 m_preferences.emplace(key, value);
187 return *this;
188 }
190
192
197 inline AwsSourceMode GetAwsSourceMode() const { return m_awsSourceMode; }
198 inline bool AwsSourceModeHasBeenSet() const { return m_awsSourceModeHasBeenSet; }
199 inline void SetAwsSourceMode(AwsSourceMode value) {
200 m_awsSourceModeHasBeenSet = true;
201 m_awsSourceMode = value;
202 }
204 SetAwsSourceMode(value);
205 return *this;
206 }
208 private:
209 Aws::String m_name;
210
211 Aws::String m_description;
212
213 Aws::String m_locale;
214
215 Aws::Utils::DateTime m_createdAt{};
216
217 Aws::Utils::DateTime m_updatedAt{};
218
219 Aws::String m_kmsKeyArn;
220
221 Aws::String m_agentSpaceId;
222
224
225 AwsSourceMode m_awsSourceMode{AwsSourceMode::NOT_SET};
226 bool m_nameHasBeenSet = false;
227 bool m_descriptionHasBeenSet = false;
228 bool m_localeHasBeenSet = false;
229 bool m_createdAtHasBeenSet = false;
230 bool m_updatedAtHasBeenSet = false;
231 bool m_kmsKeyArnHasBeenSet = false;
232 bool m_agentSpaceIdHasBeenSet = false;
233 bool m_preferencesHasBeenSet = false;
234 bool m_awsSourceModeHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace DevOpsAgent
239} // namespace Aws
AWS_DEVOPSAGENT_API AgentSpace(Aws::Utils::Json::JsonView jsonValue)
AgentSpace & WithKmsKeyArn(KmsKeyArnT &&value)
Definition AgentSpace.h:143
const Aws::String & GetName() const
Definition AgentSpace.h:43
const Aws::Map< AgentSpacePreferenceKey, bool > & GetPreferences() const
Definition AgentSpace.h:172
AgentSpace & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition AgentSpace.h:161
AWS_DEVOPSAGENT_API AgentSpace & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AgentSpace & WithCreatedAt(CreatedAtT &&value)
Definition AgentSpace.h:106
void SetLocale(LocaleT &&value)
Definition AgentSpace.h:83
AgentSpace & WithLocale(LocaleT &&value)
Definition AgentSpace.h:88
void SetCreatedAt(CreatedAtT &&value)
Definition AgentSpace.h:101
const Aws::String & GetLocale() const
Definition AgentSpace.h:80
AWS_DEVOPSAGENT_API AgentSpace()=default
const Aws::String & GetKmsKeyArn() const
Definition AgentSpace.h:135
void SetAwsSourceMode(AwsSourceMode value)
Definition AgentSpace.h:199
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AgentSpace.h:98
void SetPreferences(PreferencesT &&value)
Definition AgentSpace.h:175
const Aws::String & GetDescription() const
Definition AgentSpace.h:61
void SetKmsKeyArn(KmsKeyArnT &&value)
Definition AgentSpace.h:138
AgentSpace & WithUpdatedAt(UpdatedAtT &&value)
Definition AgentSpace.h:124
AgentSpace & AddPreferences(AgentSpacePreferenceKey key, bool value)
Definition AgentSpace.h:184
void SetUpdatedAt(UpdatedAtT &&value)
Definition AgentSpace.h:119
AgentSpace & WithDescription(DescriptionT &&value)
Definition AgentSpace.h:69
void SetDescription(DescriptionT &&value)
Definition AgentSpace.h:64
AwsSourceMode GetAwsSourceMode() const
Definition AgentSpace.h:197
AgentSpace & WithName(NameT &&value)
Definition AgentSpace.h:51
const Aws::String & GetAgentSpaceId() const
Definition AgentSpace.h:153
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition AgentSpace.h:156
AgentSpace & WithAwsSourceMode(AwsSourceMode value)
Definition AgentSpace.h:203
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AgentSpace.h:116
AgentSpace & WithPreferences(PreferencesT &&value)
Definition AgentSpace.h:180
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue