AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
59 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
60 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
61 inline CloudWatchLoggingOptions& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
62 inline CloudWatchLoggingOptions& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
63 inline CloudWatchLoggingOptions& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
65
67
71 inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
72 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
73 inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
74 inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
75 inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
76 inline CloudWatchLoggingOptions& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
77 inline CloudWatchLoggingOptions& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
78 inline CloudWatchLoggingOptions& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
80 private:
81
82 bool m_enabled;
83 bool m_enabledHasBeenSet = false;
84
85 Aws::String m_logGroupName;
86 bool m_logGroupNameHasBeenSet = false;
87
88 Aws::String m_logStreamName;
89 bool m_logStreamNameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Firehose
94} // namespace Aws
CloudWatchLoggingOptions & WithLogGroupName(const Aws::String &value)
CloudWatchLoggingOptions & WithLogStreamName(const char *value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIREHOSE_API CloudWatchLoggingOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLoggingOptions & WithLogStreamName(Aws::String &&value)
CloudWatchLoggingOptions & WithLogGroupName(const char *value)
CloudWatchLoggingOptions & WithEnabled(bool value)
CloudWatchLoggingOptions & WithLogGroupName(Aws::String &&value)
AWS_FIREHOSE_API CloudWatchLoggingOptions(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLoggingOptions & WithLogStreamName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue