AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CloudWatchLoggingConfiguration.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Athena {
22namespace Model {
23
31 public:
32 AWS_ATHENA_API CloudWatchLoggingConfiguration() = default;
35 AWS_ATHENA_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& GetLogGroup() const { return m_logGroup; }
59 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
60 template <typename LogGroupT = Aws::String>
61 void SetLogGroup(LogGroupT&& value) {
62 m_logGroupHasBeenSet = true;
63 m_logGroup = std::forward<LogGroupT>(value);
64 }
65 template <typename LogGroupT = Aws::String>
67 SetLogGroup(std::forward<LogGroupT>(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
94 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetLogTypes() const { return m_logTypes; }
95 inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; }
96 template <typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
97 void SetLogTypes(LogTypesT&& value) {
98 m_logTypesHasBeenSet = true;
99 m_logTypes = std::forward<LogTypesT>(value);
100 }
101 template <typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
103 SetLogTypes(std::forward<LogTypesT>(value));
104 return *this;
105 }
106 template <typename LogTypesKeyT = Aws::String, typename LogTypesValueT = Aws::Vector<Aws::String>>
107 CloudWatchLoggingConfiguration& AddLogTypes(LogTypesKeyT&& key, LogTypesValueT&& value) {
108 m_logTypesHasBeenSet = true;
109 m_logTypes.emplace(std::forward<LogTypesKeyT>(key), std::forward<LogTypesValueT>(value));
110 return *this;
111 }
113 private:
114 bool m_enabled{false};
115
116 Aws::String m_logGroup;
117
118 Aws::String m_logStreamNamePrefix;
119
121 bool m_enabledHasBeenSet = false;
122 bool m_logGroupHasBeenSet = false;
123 bool m_logStreamNamePrefixHasBeenSet = false;
124 bool m_logTypesHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Athena
129} // namespace Aws
CloudWatchLoggingConfiguration & WithLogStreamNamePrefix(LogStreamNamePrefixT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetLogTypes() const
CloudWatchLoggingConfiguration & WithLogGroup(LogGroupT &&value)
AWS_ATHENA_API CloudWatchLoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLoggingConfiguration & AddLogTypes(LogTypesKeyT &&key, LogTypesValueT &&value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchLoggingConfiguration & WithLogTypes(LogTypesT &&value)
AWS_ATHENA_API CloudWatchLoggingConfiguration()=default
CloudWatchLoggingConfiguration & WithEnabled(bool value)
AWS_ATHENA_API CloudWatchLoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
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