AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
SessionCloudWatchLoggingConfiguration.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
31 public:
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
57 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
58 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
59 template <typename LogGroupT = Aws::String>
60 void SetLogGroup(LogGroupT&& value) {
61 m_logGroupHasBeenSet = true;
62 m_logGroup = std::forward<LogGroupT>(value);
63 }
64 template <typename LogGroupT = Aws::String>
66 SetLogGroup(std::forward<LogGroupT>(value));
67 return *this;
68 }
70
72
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
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 SessionCloudWatchLoggingConfiguration& 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_logGroup;
138
139 Aws::String m_logStreamNamePrefix;
140
141 Aws::String m_encryptionKeyArn;
142
144 bool m_enabledHasBeenSet = false;
145 bool m_logGroupHasBeenSet = 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
SessionCloudWatchLoggingConfiguration & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
SessionCloudWatchLoggingConfiguration & WithLogTypes(LogTypesT &&value)
SessionCloudWatchLoggingConfiguration & WithLogStreamNamePrefix(LogStreamNamePrefixT &&value)
SessionCloudWatchLoggingConfiguration & WithLogGroup(LogGroupT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
SessionCloudWatchLoggingConfiguration & AddLogTypes(LogTypesKeyT &&key, LogTypesValueT &&value)
AWS_EMR_API SessionCloudWatchLoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetLogTypes() const
AWS_EMR_API SessionCloudWatchLoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
SessionCloudWatchLoggingConfiguration & WithEnabled(bool 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