AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CloudWatchLoggingOptions.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Firehose
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_FIREHOSE_API CloudWatchLoggingOptions() = default;
38 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetEnabled() const { return m_enabled; }
46 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
47 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
48 inline CloudWatchLoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
60 template<typename LogGroupNameT = Aws::String>
61 CloudWatchLoggingOptions& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
63
65
69 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
70 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
71 template<typename LogStreamNameT = Aws::String>
72 void SetLogStreamName(LogStreamNameT&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::forward<LogStreamNameT>(value); }
73 template<typename LogStreamNameT = Aws::String>
74 CloudWatchLoggingOptions& WithLogStreamName(LogStreamNameT&& value) { SetLogStreamName(std::forward<LogStreamNameT>(value)); return *this;}
76 private:
77
78 bool m_enabled{false};
79 bool m_enabledHasBeenSet = false;
80
81 Aws::String m_logGroupName;
82 bool m_logGroupNameHasBeenSet = false;
83
84 Aws::String m_logStreamName;
85 bool m_logStreamNameHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Firehose
90} // 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