AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CloudWatchLoggingConfiguration.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMRServerless
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EMRSERVERLESS_API CloudWatchLoggingConfiguration() = default;
40 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetEnabled() const { return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline CloudWatchLoggingConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
52
54
58 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
59 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
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>
63 CloudWatchLoggingConfiguration& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetLogStreamNamePrefix() const { return m_logStreamNamePrefix; }
71 inline bool LogStreamNamePrefixHasBeenSet() const { return m_logStreamNamePrefixHasBeenSet; }
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>
75 CloudWatchLoggingConfiguration& WithLogStreamNamePrefix(LogStreamNamePrefixT&& value) { SetLogStreamNamePrefix(std::forward<LogStreamNamePrefixT>(value)); return *this;}
77
79
83 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
84 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
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>
88 CloudWatchLoggingConfiguration& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
90
92
105 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetLogTypes() const { return m_logTypes; }
106 inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; }
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>>>
110 CloudWatchLoggingConfiguration& WithLogTypes(LogTypesT&& value) { SetLogTypes(std::forward<LogTypesT>(value)); return *this;}
111 template<typename LogTypesKeyT = Aws::String, typename LogTypesValueT = Aws::Vector<Aws::String>>
112 CloudWatchLoggingConfiguration& AddLogTypes(LogTypesKeyT&& key, LogTypesValueT&& value) {
113 m_logTypesHasBeenSet = true; m_logTypes.emplace(std::forward<LogTypesKeyT>(key), std::forward<LogTypesValueT>(value)); return *this;
114 }
116 private:
117
118 bool m_enabled{false};
119 bool m_enabledHasBeenSet = false;
120
121 Aws::String m_logGroupName;
122 bool m_logGroupNameHasBeenSet = false;
123
124 Aws::String m_logStreamNamePrefix;
125 bool m_logStreamNamePrefixHasBeenSet = false;
126
127 Aws::String m_encryptionKeyArn;
128 bool m_encryptionKeyArnHasBeenSet = false;
129
131 bool m_logTypesHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace EMRServerless
136} // namespace Aws
CloudWatchLoggingConfiguration & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
CloudWatchLoggingConfiguration & WithLogTypes(LogTypesT &&value)
AWS_EMRSERVERLESS_API CloudWatchLoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API CloudWatchLoggingConfiguration()=default
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchLoggingConfiguration & AddLogTypes(LogTypesKeyT &&key, LogTypesValueT &&value)
CloudWatchLoggingConfiguration & WithLogGroupName(LogGroupNameT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetLogTypes() 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