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>
20namespace CloudWatchLogs {
44 template <
typename KmsKeyArnT = Aws::String>
46 m_kmsKeyArnHasBeenSet =
true;
47 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
49 template <
typename KmsKeyArnT = Aws::String>
67 template <
typename DataSourceRoleArnT = Aws::String>
69 m_dataSourceRoleArnHasBeenSet =
true;
70 m_dataSourceRoleArn = std::forward<DataSourceRoleArnT>(value);
72 template <
typename DataSourceRoleArnT = Aws::String>
91 template <
typename DashboardViewerPrincipalsT = Aws::Vector<Aws::String>>
93 m_dashboardViewerPrincipalsHasBeenSet =
true;
94 m_dashboardViewerPrincipals = std::forward<DashboardViewerPrincipalsT>(value);
96 template <
typename DashboardViewerPrincipalsT = Aws::Vector<Aws::String>>
101 template <
typename DashboardViewerPrincipalsT = Aws::String>
103 m_dashboardViewerPrincipalsHasBeenSet =
true;
104 m_dashboardViewerPrincipals.emplace_back(std::forward<DashboardViewerPrincipalsT>(value));
117 template <
typename ApplicationArnT = Aws::String>
119 m_applicationArnHasBeenSet =
true;
120 m_applicationArn = std::forward<ApplicationArnT>(value);
122 template <
typename ApplicationArnT = Aws::String>
139 m_retentionDaysHasBeenSet =
true;
140 m_retentionDays = value;
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;
const Aws::String & GetDataSourceRoleArn() const
void SetKmsKeyArn(KmsKeyArnT &&value)
int GetRetentionDays() const
void SetApplicationArn(ApplicationArnT &&value)
void SetRetentionDays(int value)
bool DataSourceRoleArnHasBeenSet() const
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)
bool KmsKeyArnHasBeenSet() const
OpenSearchResourceConfig & WithDataSourceRoleArn(DataSourceRoleArnT &&value)
void SetDashboardViewerPrincipals(DashboardViewerPrincipalsT &&value)
bool DashboardViewerPrincipalsHasBeenSet() const
AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig()=default
bool RetentionDaysHasBeenSet() const
bool ApplicationArnHasBeenSet() const
OpenSearchResourceConfig & WithDashboardViewerPrincipals(DashboardViewerPrincipalsT &&value)
AWS_CLOUDWATCHLOGS_API OpenSearchResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKmsKeyArn() const
const Aws::String & GetApplicationArn() const
OpenSearchResourceConfig & WithRetentionDays(int value)
void SetDataSourceRoleArn(DataSourceRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue