AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticContext.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11#include <aws/workspaces/model/AgenticContextType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace WorkSpaces {
22namespace Model {
23
31 public:
32 AWS_WORKSPACES_API AgenticContext() = default;
33 AWS_WORKSPACES_API AgenticContext(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_WORKSPACES_API AgenticContext& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 AgenticContext& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
67 AgenticContext& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 AgenticContext& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
99 inline AgenticContextType GetContextType() const { return m_contextType; }
100 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
102 m_contextTypeHasBeenSet = true;
103 m_contextType = value;
104 }
106 SetContextType(value);
107 return *this;
108 }
110
112
116 inline const Aws::String& GetTargetFilePath() const { return m_targetFilePath; }
117 inline bool TargetFilePathHasBeenSet() const { return m_targetFilePathHasBeenSet; }
118 template <typename TargetFilePathT = Aws::String>
119 void SetTargetFilePath(TargetFilePathT&& value) {
120 m_targetFilePathHasBeenSet = true;
121 m_targetFilePath = std::forward<TargetFilePathT>(value);
122 }
123 template <typename TargetFilePathT = Aws::String>
124 AgenticContext& WithTargetFilePath(TargetFilePathT&& value) {
125 SetTargetFilePath(std::forward<TargetFilePathT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetContextBody() const { return m_contextBody; }
135 inline bool ContextBodyHasBeenSet() const { return m_contextBodyHasBeenSet; }
136 template <typename ContextBodyT = Aws::String>
137 void SetContextBody(ContextBodyT&& value) {
138 m_contextBodyHasBeenSet = true;
139 m_contextBody = std::forward<ContextBodyT>(value);
140 }
141 template <typename ContextBodyT = Aws::String>
142 AgenticContext& WithContextBody(ContextBodyT&& value) {
143 SetContextBody(std::forward<ContextBodyT>(value));
144 return *this;
145 }
147
149
152 inline int64_t GetContextBodySizeBytes() const { return m_contextBodySizeBytes; }
153 inline bool ContextBodySizeBytesHasBeenSet() const { return m_contextBodySizeBytesHasBeenSet; }
154 inline void SetContextBodySizeBytes(int64_t value) {
155 m_contextBodySizeBytesHasBeenSet = true;
156 m_contextBodySizeBytes = value;
157 }
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
169 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
170 template <typename CreatedAtT = Aws::Utils::DateTime>
171 void SetCreatedAt(CreatedAtT&& value) {
172 m_createdAtHasBeenSet = true;
173 m_createdAt = std::forward<CreatedAtT>(value);
174 }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
176 AgenticContext& WithCreatedAt(CreatedAtT&& value) {
177 SetCreatedAt(std::forward<CreatedAtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
187 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
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>
194 AgenticContext& WithUpdatedAt(UpdatedAtT&& value) {
195 SetUpdatedAt(std::forward<UpdatedAtT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_id;
201
202 Aws::String m_name;
203
204 Aws::String m_description;
205
207
208 Aws::String m_targetFilePath;
209
210 Aws::String m_contextBody;
211
212 int64_t m_contextBodySizeBytes{0};
213
214 Aws::Utils::DateTime m_createdAt{};
215
216 Aws::Utils::DateTime m_updatedAt{};
217 bool m_idHasBeenSet = false;
218 bool m_nameHasBeenSet = false;
219 bool m_descriptionHasBeenSet = false;
220 bool m_contextTypeHasBeenSet = false;
221 bool m_targetFilePathHasBeenSet = false;
222 bool m_contextBodyHasBeenSet = false;
223 bool m_contextBodySizeBytesHasBeenSet = false;
224 bool m_createdAtHasBeenSet = false;
225 bool m_updatedAtHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace WorkSpaces
230} // namespace Aws
AgenticContext & WithName(NameT &&value)
const Aws::String & GetTargetFilePath() const
void SetContextType(AgenticContextType value)
void SetContextBody(ContextBodyT &&value)
AgenticContext & WithDescription(DescriptionT &&value)
AWS_WORKSPACES_API AgenticContext & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticContext & WithId(IdT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetContextBody() const
AgenticContext & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetDescription() const
AWS_WORKSPACES_API AgenticContext()=default
const Aws::String & GetId() const
AgenticContextType GetContextType() const
AgenticContext & WithContextBody(ContextBodyT &&value)
AgenticContext & WithTargetFilePath(TargetFilePathT &&value)
void SetTargetFilePath(TargetFilePathT &&value)
void SetDescription(DescriptionT &&value)
AgenticContext & WithContextType(AgenticContextType value)
AgenticContext & WithContextBodySizeBytes(int64_t value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetName() const
AWS_WORKSPACES_API AgenticContext(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticContext & WithUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String