AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OpenSearchResourceConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig() = default;
32 AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
43 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
44 template <typename KmsKeyArnT = Aws::String>
45 void SetKmsKeyArn(KmsKeyArnT&& value) {
46 m_kmsKeyArnHasBeenSet = true;
47 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
48 }
49 template <typename KmsKeyArnT = Aws::String>
51 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
52 return *this;
53 }
55
57
65 inline const Aws::String& GetDataSourceRoleArn() const { return m_dataSourceRoleArn; }
66 inline bool DataSourceRoleArnHasBeenSet() const { return m_dataSourceRoleArnHasBeenSet; }
67 template <typename DataSourceRoleArnT = Aws::String>
68 void SetDataSourceRoleArn(DataSourceRoleArnT&& value) {
69 m_dataSourceRoleArnHasBeenSet = true;
70 m_dataSourceRoleArn = std::forward<DataSourceRoleArnT>(value);
71 }
72 template <typename DataSourceRoleArnT = Aws::String>
73 OpenSearchResourceConfig& WithDataSourceRoleArn(DataSourceRoleArnT&& value) {
74 SetDataSourceRoleArn(std::forward<DataSourceRoleArnT>(value));
75 return *this;
76 }
78
80
89 inline const Aws::Vector<Aws::String>& GetDashboardViewerPrincipals() const { return m_dashboardViewerPrincipals; }
90 inline bool DashboardViewerPrincipalsHasBeenSet() const { return m_dashboardViewerPrincipalsHasBeenSet; }
91 template <typename DashboardViewerPrincipalsT = Aws::Vector<Aws::String>>
92 void SetDashboardViewerPrincipals(DashboardViewerPrincipalsT&& value) {
93 m_dashboardViewerPrincipalsHasBeenSet = true;
94 m_dashboardViewerPrincipals = std::forward<DashboardViewerPrincipalsT>(value);
95 }
96 template <typename DashboardViewerPrincipalsT = Aws::Vector<Aws::String>>
97 OpenSearchResourceConfig& WithDashboardViewerPrincipals(DashboardViewerPrincipalsT&& value) {
98 SetDashboardViewerPrincipals(std::forward<DashboardViewerPrincipalsT>(value));
99 return *this;
100 }
101 template <typename DashboardViewerPrincipalsT = Aws::String>
102 OpenSearchResourceConfig& AddDashboardViewerPrincipals(DashboardViewerPrincipalsT&& value) {
103 m_dashboardViewerPrincipalsHasBeenSet = true;
104 m_dashboardViewerPrincipals.emplace_back(std::forward<DashboardViewerPrincipalsT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
116 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
117 template <typename ApplicationArnT = Aws::String>
118 void SetApplicationArn(ApplicationArnT&& value) {
119 m_applicationArnHasBeenSet = true;
120 m_applicationArn = std::forward<ApplicationArnT>(value);
121 }
122 template <typename ApplicationArnT = Aws::String>
124 SetApplicationArn(std::forward<ApplicationArnT>(value));
125 return *this;
126 }
128
130
136 inline int GetRetentionDays() const { return m_retentionDays; }
137 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
138 inline void SetRetentionDays(int value) {
139 m_retentionDaysHasBeenSet = true;
140 m_retentionDays = value;
141 }
143 SetRetentionDays(value);
144 return *this;
145 }
147 private:
148 Aws::String m_kmsKeyArn;
149
150 Aws::String m_dataSourceRoleArn;
151
152 Aws::Vector<Aws::String> m_dashboardViewerPrincipals;
153
154 Aws::String m_applicationArn;
155
156 int m_retentionDays{0};
157 bool m_kmsKeyArnHasBeenSet = false;
158 bool m_dataSourceRoleArnHasBeenSet = false;
159 bool m_dashboardViewerPrincipalsHasBeenSet = false;
160 bool m_applicationArnHasBeenSet = false;
161 bool m_retentionDaysHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace CloudWatchLogs
166} // namespace Aws
OpenSearchResourceConfig & WithApplicationArn(ApplicationArnT &&value)
const Aws::Vector< Aws::String > & GetDashboardViewerPrincipals() const
OpenSearchResourceConfig & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
OpenSearchResourceConfig & AddDashboardViewerPrincipals(DashboardViewerPrincipalsT &&value)
OpenSearchResourceConfig & WithDataSourceRoleArn(DataSourceRoleArnT &&value)
void SetDashboardViewerPrincipals(DashboardViewerPrincipalsT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig()=default
OpenSearchResourceConfig & WithDashboardViewerPrincipals(DashboardViewerPrincipalsT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue