AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CloudWatchLogConfiguration.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/elasticmapreduce/EMR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR {
22namespace Model {
23
32 public:
33 AWS_EMR_API CloudWatchLogConfiguration() = default;
37
39
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
49 SetEnabled(value);
50 return *this;
51 }
53
55
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>
84 CloudWatchLogConfiguration& WithLogStreamNamePrefix(LogStreamNamePrefixT&& value) {
85 SetLogStreamNamePrefix(std::forward<LogStreamNamePrefixT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
95 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
96 template <typename EncryptionKeyArnT = Aws::String>
97 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
98 m_encryptionKeyArnHasBeenSet = true;
99 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
100 }
101 template <typename EncryptionKeyArnT = Aws::String>
103 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
104 return *this;
105 }
107
109
115 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetLogTypes() const { return m_logTypes; }
116 inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; }
117 template <typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
118 void SetLogTypes(LogTypesT&& value) {
119 m_logTypesHasBeenSet = true;
120 m_logTypes = std::forward<LogTypesT>(value);
121 }
122 template <typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
124 SetLogTypes(std::forward<LogTypesT>(value));
125 return *this;
126 }
127 template <typename LogTypesKeyT = Aws::String, typename LogTypesValueT = Aws::Vector<Aws::String>>
128 CloudWatchLogConfiguration& AddLogTypes(LogTypesKeyT&& key, LogTypesValueT&& value) {
129 m_logTypesHasBeenSet = true;
130 m_logTypes.emplace(std::forward<LogTypesKeyT>(key), std::forward<LogTypesValueT>(value));
131 return *this;
132 }
134 private:
135 bool m_enabled{false};
136
137 Aws::String m_logGroupName;
138
139 Aws::String m_logStreamNamePrefix;
140
141 Aws::String m_encryptionKeyArn;
142
144 bool m_enabledHasBeenSet = false;
145 bool m_logGroupNameHasBeenSet = false;
146 bool m_logStreamNamePrefixHasBeenSet = false;
147 bool m_encryptionKeyArnHasBeenSet = false;
148 bool m_logTypesHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace EMR
153} // namespace Aws
CloudWatchLogConfiguration & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
CloudWatchLogConfiguration & AddLogTypes(LogTypesKeyT &&key, LogTypesValueT &&value)
AWS_EMR_API CloudWatchLogConfiguration()=default
AWS_EMR_API CloudWatchLogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogConfiguration & WithLogStreamNamePrefix(LogStreamNamePrefixT &&value)
void SetLogStreamNamePrefix(LogStreamNamePrefixT &&value)
CloudWatchLogConfiguration & WithEnabled(bool value)
AWS_EMR_API CloudWatchLogConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchLogConfiguration & WithLogGroupName(LogGroupNameT &&value)
CloudWatchLogConfiguration & WithLogTypes(LogTypesT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetLogTypes() const
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