AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OpenSearchResourceConfig.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig() = default;
37 AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
49 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
50 template<typename KmsKeyArnT = Aws::String>
51 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
52 template<typename KmsKeyArnT = Aws::String>
53 OpenSearchResourceConfig& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
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) { m_dataSourceRoleArnHasBeenSet = true; m_dataSourceRoleArn = std::forward<DataSourceRoleArnT>(value); }
69 template<typename DataSourceRoleArnT = Aws::String>
70 OpenSearchResourceConfig& WithDataSourceRoleArn(DataSourceRoleArnT&& value) { SetDataSourceRoleArn(std::forward<DataSourceRoleArnT>(value)); return *this;}
72
74
83 inline const Aws::Vector<Aws::String>& GetDashboardViewerPrincipals() const { return m_dashboardViewerPrincipals; }
84 inline bool DashboardViewerPrincipalsHasBeenSet() const { return m_dashboardViewerPrincipalsHasBeenSet; }
85 template<typename DashboardViewerPrincipalsT = Aws::Vector<Aws::String>>
86 void SetDashboardViewerPrincipals(DashboardViewerPrincipalsT&& value) { m_dashboardViewerPrincipalsHasBeenSet = true; m_dashboardViewerPrincipals = std::forward<DashboardViewerPrincipalsT>(value); }
87 template<typename DashboardViewerPrincipalsT = Aws::Vector<Aws::String>>
88 OpenSearchResourceConfig& WithDashboardViewerPrincipals(DashboardViewerPrincipalsT&& value) { SetDashboardViewerPrincipals(std::forward<DashboardViewerPrincipalsT>(value)); return *this;}
89 template<typename DashboardViewerPrincipalsT = Aws::String>
90 OpenSearchResourceConfig& AddDashboardViewerPrincipals(DashboardViewerPrincipalsT&& value) { m_dashboardViewerPrincipalsHasBeenSet = true; m_dashboardViewerPrincipals.emplace_back(std::forward<DashboardViewerPrincipalsT>(value)); return *this; }
92
94
99 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
100 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
101 template<typename ApplicationArnT = Aws::String>
102 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
103 template<typename ApplicationArnT = Aws::String>
104 OpenSearchResourceConfig& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
106
108
114 inline int GetRetentionDays() const { return m_retentionDays; }
115 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
116 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
117 inline OpenSearchResourceConfig& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
119 private:
120
121 Aws::String m_kmsKeyArn;
122 bool m_kmsKeyArnHasBeenSet = false;
123
124 Aws::String m_dataSourceRoleArn;
125 bool m_dataSourceRoleArnHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_dashboardViewerPrincipals;
128 bool m_dashboardViewerPrincipalsHasBeenSet = false;
129
130 Aws::String m_applicationArn;
131 bool m_applicationArnHasBeenSet = false;
132
133 int m_retentionDays{0};
134 bool m_retentionDaysHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CloudWatchLogs
139} // 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