AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CloudWatchLogs.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Kafka {
20namespace Model {
21
23 public:
24 AWS_KAFKA_API CloudWatchLogs() = default;
27 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
28
30
31 inline bool GetEnabled() const { return m_enabled; }
32 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
33 inline void SetEnabled(bool value) {
34 m_enabledHasBeenSet = true;
35 m_enabled = value;
36 }
37 inline CloudWatchLogs& WithEnabled(bool value) {
38 SetEnabled(value);
39 return *this;
40 }
42
44
45 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
46 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
47 template <typename LogGroupT = Aws::String>
48 void SetLogGroup(LogGroupT&& value) {
49 m_logGroupHasBeenSet = true;
50 m_logGroup = std::forward<LogGroupT>(value);
51 }
52 template <typename LogGroupT = Aws::String>
53 CloudWatchLogs& WithLogGroup(LogGroupT&& value) {
54 SetLogGroup(std::forward<LogGroupT>(value));
55 return *this;
56 }
58 private:
59 bool m_enabled{false};
60
61 Aws::String m_logGroup;
62 bool m_enabledHasBeenSet = false;
63 bool m_logGroupHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace Kafka
68} // namespace Aws
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchLogs & WithEnabled(bool value)
const Aws::String & GetLogGroup() const
AWS_KAFKA_API CloudWatchLogs()=default
CloudWatchLogs & WithLogGroup(LogGroupT &&value)
AWS_KAFKA_API CloudWatchLogs & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroup(LogGroupT &&value)
AWS_KAFKA_API CloudWatchLogs(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue