AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CloudWatchLoggingOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/firehose/Firehose_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Firehose {
20namespace Model {
21
29 public:
30 AWS_FIREHOSE_API CloudWatchLoggingOptions() = default;
33 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline bool GetEnabled() const { return m_enabled; }
40 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
41 inline void SetEnabled(bool value) {
42 m_enabledHasBeenSet = true;
43 m_enabled = value;
44 }
46 SetEnabled(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
57 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
58 template <typename LogGroupNameT = Aws::String>
59 void SetLogGroupName(LogGroupNameT&& value) {
60 m_logGroupNameHasBeenSet = true;
61 m_logGroupName = std::forward<LogGroupNameT>(value);
62 }
63 template <typename LogGroupNameT = Aws::String>
65 SetLogGroupName(std::forward<LogGroupNameT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
76 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
77 template <typename LogStreamNameT = Aws::String>
78 void SetLogStreamName(LogStreamNameT&& value) {
79 m_logStreamNameHasBeenSet = true;
80 m_logStreamName = std::forward<LogStreamNameT>(value);
81 }
82 template <typename LogStreamNameT = Aws::String>
84 SetLogStreamName(std::forward<LogStreamNameT>(value));
85 return *this;
86 }
88 private:
89 bool m_enabled{false};
90
91 Aws::String m_logGroupName;
92
93 Aws::String m_logStreamName;
94 bool m_enabledHasBeenSet = false;
95 bool m_logGroupNameHasBeenSet = false;
96 bool m_logStreamNameHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Firehose
101} // namespace Aws
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIREHOSE_API CloudWatchLoggingOptions()=default
AWS_FIREHOSE_API CloudWatchLoggingOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLoggingOptions & WithEnabled(bool value)
AWS_FIREHOSE_API CloudWatchLoggingOptions(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLoggingOptions & WithLogGroupName(LogGroupNameT &&value)
CloudWatchLoggingOptions & WithLogStreamName(LogStreamNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue