AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CreateSessionLoggerRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces-web/WorkSpacesWebRequest.h>
12#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
13#include <aws/workspaces-web/model/EventFilter.h>
14#include <aws/workspaces-web/model/LogConfiguration.h>
15#include <aws/workspaces-web/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace WorkSpacesWeb {
21namespace Model {
22
26 public:
27 AWS_WORKSPACESWEB_API CreateSessionLoggerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSessionLogger"; }
34
35 AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override;
36
38
41 inline const EventFilter& GetEventFilter() const { return m_eventFilter; }
42 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
43 template <typename EventFilterT = EventFilter>
44 void SetEventFilter(EventFilterT&& value) {
45 m_eventFilterHasBeenSet = true;
46 m_eventFilter = std::forward<EventFilterT>(value);
47 }
48 template <typename EventFilterT = EventFilter>
50 SetEventFilter(std::forward<EventFilterT>(value));
51 return *this;
52 }
54
56
59 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
60 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
61 template <typename LogConfigurationT = LogConfiguration>
62 void SetLogConfiguration(LogConfigurationT&& value) {
63 m_logConfigurationHasBeenSet = true;
64 m_logConfiguration = std::forward<LogConfigurationT>(value);
65 }
66 template <typename LogConfigurationT = LogConfiguration>
68 SetLogConfiguration(std::forward<LogConfigurationT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDisplayName() const { return m_displayName; }
78 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
79 template <typename DisplayNameT = Aws::String>
80 void SetDisplayName(DisplayNameT&& value) {
81 m_displayNameHasBeenSet = true;
82 m_displayName = std::forward<DisplayNameT>(value);
83 }
84 template <typename DisplayNameT = Aws::String>
86 SetDisplayName(std::forward<DisplayNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
96 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
97 template <typename CustomerManagedKeyT = Aws::String>
98 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
99 m_customerManagedKeyHasBeenSet = true;
100 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
101 }
102 template <typename CustomerManagedKeyT = Aws::String>
104 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
114 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
115 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
116 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
117 m_additionalEncryptionContextHasBeenSet = true;
118 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
119 }
120 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
121 CreateSessionLoggerRequest& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
122 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
123 return *this;
124 }
125 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
126 CreateSessionLoggerRequest& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key,
127 AdditionalEncryptionContextValueT&& value) {
128 m_additionalEncryptionContextHasBeenSet = true;
129 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
130 std::forward<AdditionalEncryptionContextValueT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Vector<Tag>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Vector<Tag>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsT = Tag>
153 m_tagsHasBeenSet = true;
154 m_tags.emplace_back(std::forward<TagsT>(value));
155 return *this;
156 }
158
160
168 inline const Aws::String& GetClientToken() const { return m_clientToken; }
169 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
170 template <typename ClientTokenT = Aws::String>
171 void SetClientToken(ClientTokenT&& value) {
172 m_clientTokenHasBeenSet = true;
173 m_clientToken = std::forward<ClientTokenT>(value);
174 }
175 template <typename ClientTokenT = Aws::String>
177 SetClientToken(std::forward<ClientTokenT>(value));
178 return *this;
179 }
181 private:
182 EventFilter m_eventFilter;
183
184 LogConfiguration m_logConfiguration;
185
186 Aws::String m_displayName;
187
188 Aws::String m_customerManagedKey;
189
190 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
191
192 Aws::Vector<Tag> m_tags;
193
195 bool m_eventFilterHasBeenSet = false;
196 bool m_logConfigurationHasBeenSet = false;
197 bool m_displayNameHasBeenSet = false;
198 bool m_customerManagedKeyHasBeenSet = false;
199 bool m_additionalEncryptionContextHasBeenSet = false;
200 bool m_tagsHasBeenSet = false;
201 bool m_clientTokenHasBeenSet = true;
202};
203
204} // namespace Model
205} // namespace WorkSpacesWeb
206} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateSessionLoggerRequest & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
CreateSessionLoggerRequest & WithClientToken(ClientTokenT &&value)
CreateSessionLoggerRequest & WithEventFilter(EventFilterT &&value)
CreateSessionLoggerRequest & WithDisplayName(DisplayNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
CreateSessionLoggerRequest & WithCustomerManagedKey(CustomerManagedKeyT &&value)
CreateSessionLoggerRequest & WithLogConfiguration(LogConfigurationT &&value)
AWS_WORKSPACESWEB_API CreateSessionLoggerRequest()=default
CreateSessionLoggerRequest & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override
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
std::vector< T, Aws::Allocator< T > > Vector