AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateAgenticContextRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workspaces/WorkSpacesRequest.h>
11#include <aws/workspaces/WorkSpaces_EXPORTS.h>
12#include <aws/workspaces/model/AgenticContextType.h>
13#include <aws/workspaces/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace WorkSpaces {
19namespace Model {
20
24 public:
25 AWS_WORKSPACES_API CreateAgenticContextRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAgenticContext"; }
32
33 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
34
36
38
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template <typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) {
51 m_clientTokenHasBeenSet = true;
52 m_clientToken = std::forward<ClientTokenT>(value);
53 }
54 template <typename ClientTokenT = Aws::String>
56 SetClientToken(std::forward<ClientTokenT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template <typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) {
87 m_descriptionHasBeenSet = true;
88 m_description = std::forward<DescriptionT>(value);
89 }
90 template <typename DescriptionT = Aws::String>
92 SetDescription(std::forward<DescriptionT>(value));
93 return *this;
94 }
96
98
105 inline AgenticContextType GetContextType() const { return m_contextType; }
106 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
108 m_contextTypeHasBeenSet = true;
109 m_contextType = value;
110 }
112 SetContextType(value);
113 return *this;
114 }
116
118
125 inline const Aws::String& GetTargetFilePath() const { return m_targetFilePath; }
126 inline bool TargetFilePathHasBeenSet() const { return m_targetFilePathHasBeenSet; }
127 template <typename TargetFilePathT = Aws::String>
128 void SetTargetFilePath(TargetFilePathT&& value) {
129 m_targetFilePathHasBeenSet = true;
130 m_targetFilePath = std::forward<TargetFilePathT>(value);
131 }
132 template <typename TargetFilePathT = Aws::String>
134 SetTargetFilePath(std::forward<TargetFilePathT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::String& GetContextBody() const { return m_contextBody; }
145 inline bool ContextBodyHasBeenSet() const { return m_contextBodyHasBeenSet; }
146 template <typename ContextBodyT = Aws::String>
147 void SetContextBody(ContextBodyT&& value) {
148 m_contextBodyHasBeenSet = true;
149 m_contextBody = std::forward<ContextBodyT>(value);
150 }
151 template <typename ContextBodyT = Aws::String>
153 SetContextBody(std::forward<ContextBodyT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template <typename TagsT = Aws::Vector<Tag>>
165 void SetTags(TagsT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags = std::forward<TagsT>(value);
168 }
169 template <typename TagsT = Aws::Vector<Tag>>
171 SetTags(std::forward<TagsT>(value));
172 return *this;
173 }
174 template <typename TagsT = Tag>
176 m_tagsHasBeenSet = true;
177 m_tags.emplace_back(std::forward<TagsT>(value));
178 return *this;
179 }
181 private:
183
184 Aws::String m_name;
185
186 Aws::String m_description;
187
189
190 Aws::String m_targetFilePath;
191
192 Aws::String m_contextBody;
193
194 Aws::Vector<Tag> m_tags;
195 bool m_clientTokenHasBeenSet = true;
196 bool m_nameHasBeenSet = false;
197 bool m_descriptionHasBeenSet = false;
198 bool m_contextTypeHasBeenSet = false;
199 bool m_targetFilePathHasBeenSet = false;
200 bool m_contextBodyHasBeenSet = false;
201 bool m_tagsHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace WorkSpaces
206} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAgenticContextRequest & AddTags(TagsT &&value)
CreateAgenticContextRequest & WithContextBody(ContextBodyT &&value)
CreateAgenticContextRequest & WithClientToken(ClientTokenT &&value)
CreateAgenticContextRequest & WithTargetFilePath(TargetFilePathT &&value)
CreateAgenticContextRequest & WithTags(TagsT &&value)
CreateAgenticContextRequest & WithDescription(DescriptionT &&value)
CreateAgenticContextRequest & WithContextType(AgenticContextType value)
CreateAgenticContextRequest & WithName(NameT &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
AWS_WORKSPACES_API CreateAgenticContextRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector