7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace EMRServerless
49 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
60 template<
typename LogGroupNameT = Aws::String>
61 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet =
true; m_logGroupName = std::forward<LogGroupNameT>(value); }
62 template<
typename LogGroupNameT = Aws::String>
72 template<
typename LogStreamNamePrefixT = Aws::String>
73 void SetLogStreamNamePrefix(LogStreamNamePrefixT&& value) { m_logStreamNamePrefixHasBeenSet =
true; m_logStreamNamePrefix = std::forward<LogStreamNamePrefixT>(value); }
74 template<
typename LogStreamNamePrefixT = Aws::String>
85 template<
typename EncryptionKeyArnT = Aws::String>
86 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet =
true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
87 template<
typename EncryptionKeyArnT = Aws::String>
107 template<
typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
108 void SetLogTypes(LogTypesT&& value) { m_logTypesHasBeenSet =
true; m_logTypes = std::forward<LogTypesT>(value); }
109 template<
typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
111 template<
typename LogTypesKeyT = Aws::String,
typename LogTypesValueT = Aws::Vector<Aws::String>>
113 m_logTypesHasBeenSet =
true; m_logTypes.emplace(std::forward<LogTypesKeyT>(key), std::forward<LogTypesValueT>(value));
return *
this;
118 bool m_enabled{
false};
119 bool m_enabledHasBeenSet =
false;
122 bool m_logGroupNameHasBeenSet =
false;
125 bool m_logStreamNamePrefixHasBeenSet =
false;
128 bool m_encryptionKeyArnHasBeenSet =
false;
131 bool m_logTypesHasBeenSet =
false;
bool EncryptionKeyArnHasBeenSet() const
CloudWatchLoggingConfiguration & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
bool LogTypesHasBeenSet() const
bool EnabledHasBeenSet() const
CloudWatchLoggingConfiguration & WithEnabled(bool value)
const Aws::String & GetLogStreamNamePrefix() const
bool LogGroupNameHasBeenSet() const
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
CloudWatchLoggingConfiguration & WithLogTypes(LogTypesT &&value)
AWS_EMRSERVERLESS_API CloudWatchLoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API CloudWatchLoggingConfiguration()=default
void SetLogStreamNamePrefix(LogStreamNamePrefixT &&value)
const Aws::String & GetEncryptionKeyArn() const
const Aws::String & GetLogGroupName() const
void SetEnabled(bool value)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogGroupName(LogGroupNameT &&value)
CloudWatchLoggingConfiguration & AddLogTypes(LogTypesKeyT &&key, LogTypesValueT &&value)
CloudWatchLoggingConfiguration & WithLogGroupName(LogGroupNameT &&value)
void SetLogTypes(LogTypesT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetLogTypes() const
bool LogStreamNamePrefixHasBeenSet() const
AWS_EMRSERVERLESS_API CloudWatchLoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLoggingConfiguration & WithLogStreamNamePrefix(LogStreamNamePrefixT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue