AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
OpenSearchIntegrationDetails.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/model/OpenSearchApplication.h>
9#include <aws/logs/model/OpenSearchCollection.h>
10#include <aws/logs/model/OpenSearchDataAccessPolicy.h>
11#include <aws/logs/model/OpenSearchDataSource.h>
12#include <aws/logs/model/OpenSearchEncryptionPolicy.h>
13#include <aws/logs/model/OpenSearchLifecyclePolicy.h>
14#include <aws/logs/model/OpenSearchNetworkPolicy.h>
15#include <aws/logs/model/OpenSearchWorkspace.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CloudWatchLogs {
27namespace Model {
28
38 public:
39 AWS_CLOUDWATCHLOGS_API OpenSearchIntegrationDetails() = default;
42 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
55 inline const OpenSearchDataSource& GetDataSource() const { return m_dataSource; }
56 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
57 template <typename DataSourceT = OpenSearchDataSource>
58 void SetDataSource(DataSourceT&& value) {
59 m_dataSourceHasBeenSet = true;
60 m_dataSource = std::forward<DataSourceT>(value);
61 }
62 template <typename DataSourceT = OpenSearchDataSource>
64 SetDataSource(std::forward<DataSourceT>(value));
65 return *this;
66 }
68
70
76 inline const OpenSearchApplication& GetApplication() const { return m_application; }
77 inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
78 template <typename ApplicationT = OpenSearchApplication>
79 void SetApplication(ApplicationT&& value) {
80 m_applicationHasBeenSet = true;
81 m_application = std::forward<ApplicationT>(value);
82 }
83 template <typename ApplicationT = OpenSearchApplication>
85 SetApplication(std::forward<ApplicationT>(value));
86 return *this;
87 }
89
91
100 inline const OpenSearchCollection& GetCollection() const { return m_collection; }
101 inline bool CollectionHasBeenSet() const { return m_collectionHasBeenSet; }
102 template <typename CollectionT = OpenSearchCollection>
103 void SetCollection(CollectionT&& value) {
104 m_collectionHasBeenSet = true;
105 m_collection = std::forward<CollectionT>(value);
106 }
107 template <typename CollectionT = OpenSearchCollection>
109 SetCollection(std::forward<CollectionT>(value));
110 return *this;
111 }
113
115
123 inline const OpenSearchWorkspace& GetWorkspace() const { return m_workspace; }
124 inline bool WorkspaceHasBeenSet() const { return m_workspaceHasBeenSet; }
125 template <typename WorkspaceT = OpenSearchWorkspace>
126 void SetWorkspace(WorkspaceT&& value) {
127 m_workspaceHasBeenSet = true;
128 m_workspace = std::forward<WorkspaceT>(value);
129 }
130 template <typename WorkspaceT = OpenSearchWorkspace>
132 SetWorkspace(std::forward<WorkspaceT>(value));
133 return *this;
134 }
136
138
145 inline const OpenSearchEncryptionPolicy& GetEncryptionPolicy() const { return m_encryptionPolicy; }
146 inline bool EncryptionPolicyHasBeenSet() const { return m_encryptionPolicyHasBeenSet; }
147 template <typename EncryptionPolicyT = OpenSearchEncryptionPolicy>
148 void SetEncryptionPolicy(EncryptionPolicyT&& value) {
149 m_encryptionPolicyHasBeenSet = true;
150 m_encryptionPolicy = std::forward<EncryptionPolicyT>(value);
151 }
152 template <typename EncryptionPolicyT = OpenSearchEncryptionPolicy>
154 SetEncryptionPolicy(std::forward<EncryptionPolicyT>(value));
155 return *this;
156 }
158
160
167 inline const OpenSearchNetworkPolicy& GetNetworkPolicy() const { return m_networkPolicy; }
168 inline bool NetworkPolicyHasBeenSet() const { return m_networkPolicyHasBeenSet; }
169 template <typename NetworkPolicyT = OpenSearchNetworkPolicy>
170 void SetNetworkPolicy(NetworkPolicyT&& value) {
171 m_networkPolicyHasBeenSet = true;
172 m_networkPolicy = std::forward<NetworkPolicyT>(value);
173 }
174 template <typename NetworkPolicyT = OpenSearchNetworkPolicy>
176 SetNetworkPolicy(std::forward<NetworkPolicyT>(value));
177 return *this;
178 }
180
182
192 inline const OpenSearchDataAccessPolicy& GetAccessPolicy() const { return m_accessPolicy; }
193 inline bool AccessPolicyHasBeenSet() const { return m_accessPolicyHasBeenSet; }
194 template <typename AccessPolicyT = OpenSearchDataAccessPolicy>
195 void SetAccessPolicy(AccessPolicyT&& value) {
196 m_accessPolicyHasBeenSet = true;
197 m_accessPolicy = std::forward<AccessPolicyT>(value);
198 }
199 template <typename AccessPolicyT = OpenSearchDataAccessPolicy>
201 SetAccessPolicy(std::forward<AccessPolicyT>(value));
202 return *this;
203 }
205
207
216 inline const OpenSearchLifecyclePolicy& GetLifecyclePolicy() const { return m_lifecyclePolicy; }
217 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
218 template <typename LifecyclePolicyT = OpenSearchLifecyclePolicy>
219 void SetLifecyclePolicy(LifecyclePolicyT&& value) {
220 m_lifecyclePolicyHasBeenSet = true;
221 m_lifecyclePolicy = std::forward<LifecyclePolicyT>(value);
222 }
223 template <typename LifecyclePolicyT = OpenSearchLifecyclePolicy>
225 SetLifecyclePolicy(std::forward<LifecyclePolicyT>(value));
226 return *this;
227 }
229 private:
230 OpenSearchDataSource m_dataSource;
231
232 OpenSearchApplication m_application;
233
234 OpenSearchCollection m_collection;
235
236 OpenSearchWorkspace m_workspace;
237
238 OpenSearchEncryptionPolicy m_encryptionPolicy;
239
240 OpenSearchNetworkPolicy m_networkPolicy;
241
242 OpenSearchDataAccessPolicy m_accessPolicy;
243
244 OpenSearchLifecyclePolicy m_lifecyclePolicy;
245 bool m_dataSourceHasBeenSet = false;
246 bool m_applicationHasBeenSet = false;
247 bool m_collectionHasBeenSet = false;
248 bool m_workspaceHasBeenSet = false;
249 bool m_encryptionPolicyHasBeenSet = false;
250 bool m_networkPolicyHasBeenSet = false;
251 bool m_accessPolicyHasBeenSet = false;
252 bool m_lifecyclePolicyHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace CloudWatchLogs
257} // namespace Aws
OpenSearchIntegrationDetails & WithAccessPolicy(AccessPolicyT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchIntegrationDetails(Aws::Utils::Json::JsonView jsonValue)
OpenSearchIntegrationDetails & WithWorkspace(WorkspaceT &&value)
OpenSearchIntegrationDetails & WithCollection(CollectionT &&value)
OpenSearchIntegrationDetails & WithDataSource(DataSourceT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
OpenSearchIntegrationDetails & WithLifecyclePolicy(LifecyclePolicyT &&value)
OpenSearchIntegrationDetails & WithEncryptionPolicy(EncryptionPolicyT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchIntegrationDetails()=default
OpenSearchIntegrationDetails & WithNetworkPolicy(NetworkPolicyT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchIntegrationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
OpenSearchIntegrationDetails & WithApplication(ApplicationT &&value)
Aws::Utils::Json::JsonValue JsonValue