AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CwLog.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rum/CloudWatchRUM_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchRUM {
20namespace Model {
21
29class CwLog {
30 public:
31 AWS_CLOUDWATCHRUM_API CwLog() = default;
32 AWS_CLOUDWATCHRUM_API CwLog(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHRUM_API CwLog& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetCwLogEnabled() const { return m_cwLogEnabled; }
42 inline bool CwLogEnabledHasBeenSet() const { return m_cwLogEnabledHasBeenSet; }
43 inline void SetCwLogEnabled(bool value) {
44 m_cwLogEnabledHasBeenSet = true;
45 m_cwLogEnabled = value;
46 }
47 inline CwLog& WithCwLogEnabled(bool value) {
48 SetCwLogEnabled(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCwLogGroup() const { return m_cwLogGroup; }
58 inline bool CwLogGroupHasBeenSet() const { return m_cwLogGroupHasBeenSet; }
59 template <typename CwLogGroupT = Aws::String>
60 void SetCwLogGroup(CwLogGroupT&& value) {
61 m_cwLogGroupHasBeenSet = true;
62 m_cwLogGroup = std::forward<CwLogGroupT>(value);
63 }
64 template <typename CwLogGroupT = Aws::String>
65 CwLog& WithCwLogGroup(CwLogGroupT&& value) {
66 SetCwLogGroup(std::forward<CwLogGroupT>(value));
67 return *this;
68 }
70 private:
71 bool m_cwLogEnabled{false};
72
73 Aws::String m_cwLogGroup;
74 bool m_cwLogEnabledHasBeenSet = false;
75 bool m_cwLogGroupHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CloudWatchRUM
80} // namespace Aws
CwLog & WithCwLogEnabled(bool value)
Definition CwLog.h:47
CwLog & WithCwLogGroup(CwLogGroupT &&value)
Definition CwLog.h:65
const Aws::String & GetCwLogGroup() const
Definition CwLog.h:57
void SetCwLogGroup(CwLogGroupT &&value)
Definition CwLog.h:60
AWS_CLOUDWATCHRUM_API CwLog & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHRUM_API CwLog()=default
void SetCwLogEnabled(bool value)
Definition CwLog.h:43
bool CwLogGroupHasBeenSet() const
Definition CwLog.h:58
bool CwLogEnabledHasBeenSet() const
Definition CwLog.h:42
AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHRUM_API CwLog(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue