AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
SessionLogger.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/WorkSpacesWeb_EXPORTS.h>
12#include <aws/workspaces-web/model/EventFilter.h>
13#include <aws/workspaces-web/model/LogConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkSpacesWeb {
25namespace Model {
26
33 public:
34 AWS_WORKSPACESWEB_API SessionLogger() = default;
35 AWS_WORKSPACESWEB_API SessionLogger(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKSPACESWEB_API SessionLogger& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetSessionLoggerArn() const { return m_sessionLoggerArn; }
44 inline bool SessionLoggerArnHasBeenSet() const { return m_sessionLoggerArnHasBeenSet; }
45 template <typename SessionLoggerArnT = Aws::String>
46 void SetSessionLoggerArn(SessionLoggerArnT&& value) {
47 m_sessionLoggerArnHasBeenSet = true;
48 m_sessionLoggerArn = std::forward<SessionLoggerArnT>(value);
49 }
50 template <typename SessionLoggerArnT = Aws::String>
51 SessionLogger& WithSessionLoggerArn(SessionLoggerArnT&& value) {
52 SetSessionLoggerArn(std::forward<SessionLoggerArnT>(value));
53 return *this;
54 }
56
58
61 inline const EventFilter& GetEventFilter() const { return m_eventFilter; }
62 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
63 template <typename EventFilterT = EventFilter>
64 void SetEventFilter(EventFilterT&& value) {
65 m_eventFilterHasBeenSet = true;
66 m_eventFilter = std::forward<EventFilterT>(value);
67 }
68 template <typename EventFilterT = EventFilter>
69 SessionLogger& WithEventFilter(EventFilterT&& value) {
70 SetEventFilter(std::forward<EventFilterT>(value));
71 return *this;
72 }
74
76
79 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
80 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
81 template <typename LogConfigurationT = LogConfiguration>
82 void SetLogConfiguration(LogConfigurationT&& value) {
83 m_logConfigurationHasBeenSet = true;
84 m_logConfiguration = std::forward<LogConfigurationT>(value);
85 }
86 template <typename LogConfigurationT = LogConfiguration>
87 SessionLogger& WithLogConfiguration(LogConfigurationT&& value) {
88 SetLogConfiguration(std::forward<LogConfigurationT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
98 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
99 template <typename CustomerManagedKeyT = Aws::String>
100 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
101 m_customerManagedKeyHasBeenSet = true;
102 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
103 }
104 template <typename CustomerManagedKeyT = Aws::String>
105 SessionLogger& WithCustomerManagedKey(CustomerManagedKeyT&& value) {
106 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
116 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
117 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
118 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
119 m_additionalEncryptionContextHasBeenSet = true;
120 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
121 }
122 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
123 SessionLogger& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
124 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
125 return *this;
126 }
127 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
128 SessionLogger& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key, AdditionalEncryptionContextValueT&& value) {
129 m_additionalEncryptionContextHasBeenSet = true;
130 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
131 std::forward<AdditionalEncryptionContextValueT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<Aws::String>& GetAssociatedPortalArns() const { return m_associatedPortalArns; }
141 inline bool AssociatedPortalArnsHasBeenSet() const { return m_associatedPortalArnsHasBeenSet; }
142 template <typename AssociatedPortalArnsT = Aws::Vector<Aws::String>>
143 void SetAssociatedPortalArns(AssociatedPortalArnsT&& value) {
144 m_associatedPortalArnsHasBeenSet = true;
145 m_associatedPortalArns = std::forward<AssociatedPortalArnsT>(value);
146 }
147 template <typename AssociatedPortalArnsT = Aws::Vector<Aws::String>>
148 SessionLogger& WithAssociatedPortalArns(AssociatedPortalArnsT&& value) {
149 SetAssociatedPortalArns(std::forward<AssociatedPortalArnsT>(value));
150 return *this;
151 }
152 template <typename AssociatedPortalArnsT = Aws::String>
153 SessionLogger& AddAssociatedPortalArns(AssociatedPortalArnsT&& value) {
154 m_associatedPortalArnsHasBeenSet = true;
155 m_associatedPortalArns.emplace_back(std::forward<AssociatedPortalArnsT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetDisplayName() const { return m_displayName; }
165 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
166 template <typename DisplayNameT = Aws::String>
167 void SetDisplayName(DisplayNameT&& value) {
168 m_displayNameHasBeenSet = true;
169 m_displayName = std::forward<DisplayNameT>(value);
170 }
171 template <typename DisplayNameT = Aws::String>
172 SessionLogger& WithDisplayName(DisplayNameT&& value) {
173 SetDisplayName(std::forward<DisplayNameT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
183 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
184 template <typename CreationDateT = Aws::Utils::DateTime>
185 void SetCreationDate(CreationDateT&& value) {
186 m_creationDateHasBeenSet = true;
187 m_creationDate = std::forward<CreationDateT>(value);
188 }
189 template <typename CreationDateT = Aws::Utils::DateTime>
190 SessionLogger& WithCreationDate(CreationDateT&& value) {
191 SetCreationDate(std::forward<CreationDateT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_sessionLoggerArn;
197
198 EventFilter m_eventFilter;
199
200 LogConfiguration m_logConfiguration;
201
202 Aws::String m_customerManagedKey;
203
204 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
205
206 Aws::Vector<Aws::String> m_associatedPortalArns;
207
208 Aws::String m_displayName;
209
210 Aws::Utils::DateTime m_creationDate{};
211 bool m_sessionLoggerArnHasBeenSet = false;
212 bool m_eventFilterHasBeenSet = false;
213 bool m_logConfigurationHasBeenSet = false;
214 bool m_customerManagedKeyHasBeenSet = false;
215 bool m_additionalEncryptionContextHasBeenSet = false;
216 bool m_associatedPortalArnsHasBeenSet = false;
217 bool m_displayNameHasBeenSet = false;
218 bool m_creationDateHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace WorkSpacesWeb
223} // namespace Aws
void SetCustomerManagedKey(CustomerManagedKeyT &&value)
void SetEventFilter(EventFilterT &&value)
const Aws::String & GetDisplayName() const
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
const EventFilter & GetEventFilter() const
SessionLogger & WithCreationDate(CreationDateT &&value)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetSessionLoggerArn() const
SessionLogger & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
SessionLogger & WithCustomerManagedKey(CustomerManagedKeyT &&value)
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKSPACESWEB_API SessionLogger & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionLogger & WithEventFilter(EventFilterT &&value)
SessionLogger & AddAssociatedPortalArns(AssociatedPortalArnsT &&value)
SessionLogger & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::Vector< Aws::String > & GetAssociatedPortalArns() const
SessionLogger & WithAssociatedPortalArns(AssociatedPortalArnsT &&value)
AWS_WORKSPACESWEB_API SessionLogger()=default
SessionLogger & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetCustomerManagedKey() const
SessionLogger & WithLogConfiguration(LogConfigurationT &&value)
AWS_WORKSPACESWEB_API SessionLogger(Aws::Utils::Json::JsonView jsonValue)
const LogConfiguration & GetLogConfiguration() const
const Aws::Utils::DateTime & GetCreationDate() const
void SetSessionLoggerArn(SessionLoggerArnT &&value)
void SetAssociatedPortalArns(AssociatedPortalArnsT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
SessionLogger & WithSessionLoggerArn(SessionLoggerArnT &&value)
void SetLogConfiguration(LogConfigurationT &&value)
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
Aws::Utils::Json::JsonValue JsonValue