AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
WorkspaceAgenticContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10#include <aws/workspaces/model/AgenticContextType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace WorkSpaces {
21namespace Model {
22
30 public:
31 AWS_WORKSPACES_API WorkspaceAgenticContext() = default;
32 AWS_WORKSPACES_API WorkspaceAgenticContext(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API WorkspaceAgenticContext& 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
80 inline AgenticContextType GetContextType() const { return m_contextType; }
81 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
83 m_contextTypeHasBeenSet = true;
84 m_contextType = value;
85 }
87 SetContextType(value);
88 return *this;
89 }
91
93
97 inline const Aws::String& GetFileName() const { return m_fileName; }
98 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
99 template <typename FileNameT = Aws::String>
100 void SetFileName(FileNameT&& value) {
101 m_fileNameHasBeenSet = true;
102 m_fileName = std::forward<FileNameT>(value);
103 }
104 template <typename FileNameT = Aws::String>
106 SetFileName(std::forward<FileNameT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_id;
112
113 Aws::String m_name;
114
116
117 Aws::String m_fileName;
118 bool m_idHasBeenSet = false;
119 bool m_nameHasBeenSet = false;
120 bool m_contextTypeHasBeenSet = false;
121 bool m_fileNameHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace WorkSpaces
126} // namespace Aws
AWS_WORKSPACES_API WorkspaceAgenticContext()=default
AWS_WORKSPACES_API WorkspaceAgenticContext & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceAgenticContext & WithId(IdT &&value)
AWS_WORKSPACES_API WorkspaceAgenticContext(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceAgenticContext & WithName(NameT &&value)
WorkspaceAgenticContext & WithContextType(AgenticContextType value)
WorkspaceAgenticContext & WithFileName(FileNameT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String