AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CloudWatchLoggingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMRServerless {
22namespace Model {
23
31 public:
32 AWS_EMRSERVERLESS_API CloudWatchLoggingConfiguration() = default;
35 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline bool GetEnabled() const { return m_enabled; }
42 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
43 inline void SetEnabled(bool value) {
44 m_enabledHasBeenSet = true;
45 m_enabled = value;
46 }
48 SetEnabled(value);
49 return *this;
50 }
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) {
62 m_logGroupNameHasBeenSet = true;
63 m_logGroupName = std::forward<LogGroupNameT>(value);
64 }
65 template <typename LogGroupNameT = Aws::String>
67 SetLogGroupName(std::forward<LogGroupNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLogStreamNamePrefix() const { return m_logStreamNamePrefix; }
77 inline bool LogStreamNamePrefixHasBeenSet() const { return m_logStreamNamePrefixHasBeenSet; }
78 template <typename LogStreamNamePrefixT = Aws::String>
79 void SetLogStreamNamePrefix(LogStreamNamePrefixT&& value) {
80 m_logStreamNamePrefixHasBeenSet = true;
81 m_logStreamNamePrefix = std::forward<LogStreamNamePrefixT>(value);
82 }
83 template <typename LogStreamNamePrefixT = Aws::String>
85 SetLogStreamNamePrefix(std::forward<LogStreamNamePrefixT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
96 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
97 template <typename EncryptionKeyArnT = Aws::String>
98 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
99 m_encryptionKeyArnHasBeenSet = true;
100 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
101 }
102 template <typename EncryptionKeyArnT = Aws::String>
104 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
105 return *this;
106 }
108
110
123 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetLogTypes() const { return m_logTypes; }
124 inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; }
125 template <typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
126 void SetLogTypes(LogTypesT&& value) {
127 m_logTypesHasBeenSet = true;
128 m_logTypes = std::forward<LogTypesT>(value);
129 }
130 template <typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
132 SetLogTypes(std::forward<LogTypesT>(value));
133 return *this;
134 }
135 template <typename LogTypesKeyT = Aws::String, typename LogTypesValueT = Aws::Vector<Aws::String>>
136 CloudWatchLoggingConfiguration& AddLogTypes(LogTypesKeyT&& key, LogTypesValueT&& value) {
137 m_logTypesHasBeenSet = true;
138 m_logTypes.emplace(std::forward<LogTypesKeyT>(key), std::forward<LogTypesValueT>(value));
139 return *this;
140 }
142 private:
143 bool m_enabled{false};
144
145 Aws::String m_logGroupName;
146
147 Aws::String m_logStreamNamePrefix;
148
149 Aws::String m_encryptionKeyArn;
150
152 bool m_enabledHasBeenSet = false;
153 bool m_logGroupNameHasBeenSet = false;
154 bool m_logStreamNamePrefixHasBeenSet = false;
155 bool m_encryptionKeyArnHasBeenSet = false;
156 bool m_logTypesHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace EMRServerless
161} // 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