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>
22namespace CloudWatchLogs
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>
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>
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>>
89 template<
typename DashboardViewerPrincipalsT = Aws::String>
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>
116 inline void SetRetentionDays(
int value) { m_retentionDaysHasBeenSet =
true; m_retentionDays = value; }
122 bool m_kmsKeyArnHasBeenSet =
false;
125 bool m_dataSourceRoleArnHasBeenSet =
false;
128 bool m_dashboardViewerPrincipalsHasBeenSet =
false;
131 bool m_applicationArnHasBeenSet =
false;
133 int m_retentionDays{0};
134 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