AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticContextMetadata.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
30 public:
31 AWS_WORKSPACES_API AgenticContextMetadata() = default;
32 AWS_WORKSPACES_API AgenticContextMetadata(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API AgenticContextMetadata& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 AgenticContextMetadata& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
98 inline AgenticContextType GetContextType() const { return m_contextType; }
99 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
101 m_contextTypeHasBeenSet = true;
102 m_contextType = value;
103 }
105 SetContextType(value);
106 return *this;
107 }
109
111
115 inline const Aws::String& GetTargetFilePath() const { return m_targetFilePath; }
116 inline bool TargetFilePathHasBeenSet() const { return m_targetFilePathHasBeenSet; }
117 template <typename TargetFilePathT = Aws::String>
118 void SetTargetFilePath(TargetFilePathT&& value) {
119 m_targetFilePathHasBeenSet = true;
120 m_targetFilePath = std::forward<TargetFilePathT>(value);
121 }
122 template <typename TargetFilePathT = Aws::String>
123 AgenticContextMetadata& WithTargetFilePath(TargetFilePathT&& value) {
124 SetTargetFilePath(std::forward<TargetFilePathT>(value));
125 return *this;
126 }
128
130
133 inline int64_t GetContextBodySizeBytes() const { return m_contextBodySizeBytes; }
134 inline bool ContextBodySizeBytesHasBeenSet() const { return m_contextBodySizeBytesHasBeenSet; }
135 inline void SetContextBodySizeBytes(int64_t value) {
136 m_contextBodySizeBytesHasBeenSet = true;
137 m_contextBodySizeBytes = value;
138 }
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
150 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 void SetCreatedAt(CreatedAtT&& value) {
153 m_createdAtHasBeenSet = true;
154 m_createdAt = std::forward<CreatedAtT>(value);
155 }
156 template <typename CreatedAtT = Aws::Utils::DateTime>
158 SetCreatedAt(std::forward<CreatedAtT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
168 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
169 template <typename UpdatedAtT = Aws::Utils::DateTime>
170 void SetUpdatedAt(UpdatedAtT&& value) {
171 m_updatedAtHasBeenSet = true;
172 m_updatedAt = std::forward<UpdatedAtT>(value);
173 }
174 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 SetUpdatedAt(std::forward<UpdatedAtT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_id;
182
183 Aws::String m_name;
184
185 Aws::String m_description;
186
188
189 Aws::String m_targetFilePath;
190
191 int64_t m_contextBodySizeBytes{0};
192
193 Aws::Utils::DateTime m_createdAt{};
194
195 Aws::Utils::DateTime m_updatedAt{};
196 bool m_idHasBeenSet = false;
197 bool m_nameHasBeenSet = false;
198 bool m_descriptionHasBeenSet = false;
199 bool m_contextTypeHasBeenSet = false;
200 bool m_targetFilePathHasBeenSet = false;
201 bool m_contextBodySizeBytesHasBeenSet = false;
202 bool m_createdAtHasBeenSet = false;
203 bool m_updatedAtHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace WorkSpaces
208} // namespace Aws
AgenticContextMetadata & WithUpdatedAt(UpdatedAtT &&value)
AgenticContextMetadata & WithContextType(AgenticContextType value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_WORKSPACES_API AgenticContextMetadata & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticContextMetadata & WithDescription(DescriptionT &&value)
AgenticContextMetadata & WithContextBodySizeBytes(int64_t value)
AWS_WORKSPACES_API AgenticContextMetadata(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticContextMetadata & WithTargetFilePath(TargetFilePathT &&value)
AgenticContextMetadata & WithId(IdT &&value)
AWS_WORKSPACES_API AgenticContextMetadata()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
AgenticContextMetadata & WithName(NameT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AgenticContextMetadata & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String