AWS SDK for C++

AWS SDK for C++ Version 1.11.887

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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsAgent {
23namespace Model {
24
32 public:
33 AWS_DEVOPSAGENT_API AgentSpace() = default;
34 AWS_DEVOPSAGENT_API AgentSpace(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSAGENT_API AgentSpace& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 AgentSpace& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 AgentSpace& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetLocale() const { return m_locale; }
80 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
81 template <typename LocaleT = Aws::String>
82 void SetLocale(LocaleT&& value) {
83 m_localeHasBeenSet = true;
84 m_locale = std::forward<LocaleT>(value);
85 }
86 template <typename LocaleT = Aws::String>
87 AgentSpace& WithLocale(LocaleT&& value) {
88 SetLocale(std::forward<LocaleT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
98 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
99 template <typename CreatedAtT = Aws::Utils::DateTime>
100 void SetCreatedAt(CreatedAtT&& value) {
101 m_createdAtHasBeenSet = true;
102 m_createdAt = std::forward<CreatedAtT>(value);
103 }
104 template <typename CreatedAtT = Aws::Utils::DateTime>
105 AgentSpace& WithCreatedAt(CreatedAtT&& value) {
106 SetCreatedAt(std::forward<CreatedAtT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
116 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
117 template <typename UpdatedAtT = Aws::Utils::DateTime>
118 void SetUpdatedAt(UpdatedAtT&& value) {
119 m_updatedAtHasBeenSet = true;
120 m_updatedAt = std::forward<UpdatedAtT>(value);
121 }
122 template <typename UpdatedAtT = Aws::Utils::DateTime>
123 AgentSpace& WithUpdatedAt(UpdatedAtT&& value) {
124 SetUpdatedAt(std::forward<UpdatedAtT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
135 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
136 template <typename KmsKeyArnT = Aws::String>
137 void SetKmsKeyArn(KmsKeyArnT&& value) {
138 m_kmsKeyArnHasBeenSet = true;
139 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
140 }
141 template <typename KmsKeyArnT = Aws::String>
142 AgentSpace& WithKmsKeyArn(KmsKeyArnT&& value) {
143 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
153 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
154 template <typename AgentSpaceIdT = Aws::String>
155 void SetAgentSpaceId(AgentSpaceIdT&& value) {
156 m_agentSpaceIdHasBeenSet = true;
157 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
158 }
159 template <typename AgentSpaceIdT = Aws::String>
160 AgentSpace& WithAgentSpaceId(AgentSpaceIdT&& value) {
161 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::Map<AgentSpacePreferenceKey, bool>& GetPreferences() const { return m_preferences; }
172 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
173 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
174 void SetPreferences(PreferencesT&& value) {
175 m_preferencesHasBeenSet = true;
176 m_preferences = std::forward<PreferencesT>(value);
177 }
178 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
179 AgentSpace& WithPreferences(PreferencesT&& value) {
180 SetPreferences(std::forward<PreferencesT>(value));
181 return *this;
182 }
184 m_preferencesHasBeenSet = true;
185 m_preferences.emplace(key, value);
186 return *this;
187 }
189 private:
190 Aws::String m_name;
191
192 Aws::String m_description;
193
194 Aws::String m_locale;
195
196 Aws::Utils::DateTime m_createdAt{};
197
198 Aws::Utils::DateTime m_updatedAt{};
199
200 Aws::String m_kmsKeyArn;
201
202 Aws::String m_agentSpaceId;
203
205 bool m_nameHasBeenSet = false;
206 bool m_descriptionHasBeenSet = false;
207 bool m_localeHasBeenSet = false;
208 bool m_createdAtHasBeenSet = false;
209 bool m_updatedAtHasBeenSet = false;
210 bool m_kmsKeyArnHasBeenSet = false;
211 bool m_agentSpaceIdHasBeenSet = false;
212 bool m_preferencesHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace DevOpsAgent
217} // namespace Aws
AWS_DEVOPSAGENT_API AgentSpace(Aws::Utils::Json::JsonView jsonValue)
AgentSpace & WithKmsKeyArn(KmsKeyArnT &&value)
Definition AgentSpace.h:142
const Aws::String & GetName() const
Definition AgentSpace.h:42
const Aws::Map< AgentSpacePreferenceKey, bool > & GetPreferences() const
Definition AgentSpace.h:171
AgentSpace & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition AgentSpace.h:160
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:105
void SetLocale(LocaleT &&value)
Definition AgentSpace.h:82
AgentSpace & WithLocale(LocaleT &&value)
Definition AgentSpace.h:87
void SetCreatedAt(CreatedAtT &&value)
Definition AgentSpace.h:100
const Aws::String & GetLocale() const
Definition AgentSpace.h:79
AWS_DEVOPSAGENT_API AgentSpace()=default
const Aws::String & GetKmsKeyArn() const
Definition AgentSpace.h:134
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AgentSpace.h:97
void SetPreferences(PreferencesT &&value)
Definition AgentSpace.h:174
const Aws::String & GetDescription() const
Definition AgentSpace.h:60
void SetKmsKeyArn(KmsKeyArnT &&value)
Definition AgentSpace.h:137
AgentSpace & WithUpdatedAt(UpdatedAtT &&value)
Definition AgentSpace.h:123
AgentSpace & AddPreferences(AgentSpacePreferenceKey key, bool value)
Definition AgentSpace.h:183
void SetUpdatedAt(UpdatedAtT &&value)
Definition AgentSpace.h:118
AgentSpace & WithDescription(DescriptionT &&value)
Definition AgentSpace.h:68
void SetDescription(DescriptionT &&value)
Definition AgentSpace.h:63
AgentSpace & WithName(NameT &&value)
Definition AgentSpace.h:50
const Aws::String & GetAgentSpaceId() const
Definition AgentSpace.h:152
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition AgentSpace.h:155
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AgentSpace.h:115
AgentSpace & WithPreferences(PreferencesT &&value)
Definition AgentSpace.h:179
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