AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LoggingOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/IoTEvents_EXPORTS.h>
10#include <aws/iotevents/model/DetectorDebugOption.h>
11#include <aws/iotevents/model/LoggingLevel.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents {
23namespace Model {
24
32 public:
33 AWS_IOTEVENTS_API LoggingOptions() = default;
34 AWS_IOTEVENTS_API LoggingOptions(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
44 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
45 template <typename RoleArnT = Aws::String>
46 void SetRoleArn(RoleArnT&& value) {
47 m_roleArnHasBeenSet = true;
48 m_roleArn = std::forward<RoleArnT>(value);
49 }
50 template <typename RoleArnT = Aws::String>
51 LoggingOptions& WithRoleArn(RoleArnT&& value) {
52 SetRoleArn(std::forward<RoleArnT>(value));
53 return *this;
54 }
56
58
61 inline LoggingLevel GetLevel() const { return m_level; }
62 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
63 inline void SetLevel(LoggingLevel value) {
64 m_levelHasBeenSet = true;
65 m_level = value;
66 }
68 SetLevel(value);
69 return *this;
70 }
72
74
77 inline bool GetEnabled() const { return m_enabled; }
78 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
79 inline void SetEnabled(bool value) {
80 m_enabledHasBeenSet = true;
81 m_enabled = value;
82 }
83 inline LoggingOptions& WithEnabled(bool value) {
84 SetEnabled(value);
85 return *this;
86 }
88
90
94 inline const Aws::Vector<DetectorDebugOption>& GetDetectorDebugOptions() const { return m_detectorDebugOptions; }
95 inline bool DetectorDebugOptionsHasBeenSet() const { return m_detectorDebugOptionsHasBeenSet; }
96 template <typename DetectorDebugOptionsT = Aws::Vector<DetectorDebugOption>>
97 void SetDetectorDebugOptions(DetectorDebugOptionsT&& value) {
98 m_detectorDebugOptionsHasBeenSet = true;
99 m_detectorDebugOptions = std::forward<DetectorDebugOptionsT>(value);
100 }
101 template <typename DetectorDebugOptionsT = Aws::Vector<DetectorDebugOption>>
102 LoggingOptions& WithDetectorDebugOptions(DetectorDebugOptionsT&& value) {
103 SetDetectorDebugOptions(std::forward<DetectorDebugOptionsT>(value));
104 return *this;
105 }
106 template <typename DetectorDebugOptionsT = DetectorDebugOption>
107 LoggingOptions& AddDetectorDebugOptions(DetectorDebugOptionsT&& value) {
108 m_detectorDebugOptionsHasBeenSet = true;
109 m_detectorDebugOptions.emplace_back(std::forward<DetectorDebugOptionsT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_roleArn;
115
117
118 bool m_enabled{false};
119
120 Aws::Vector<DetectorDebugOption> m_detectorDebugOptions;
121 bool m_roleArnHasBeenSet = false;
122 bool m_levelHasBeenSet = false;
123 bool m_enabledHasBeenSet = false;
124 bool m_detectorDebugOptionsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace IoTEvents
129} // namespace Aws
LoggingOptions & WithRoleArn(RoleArnT &&value)
void SetLevel(LoggingLevel value)
LoggingOptions & WithDetectorDebugOptions(DetectorDebugOptionsT &&value)
AWS_IOTEVENTS_API LoggingOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API LoggingOptions()=default
LoggingOptions & AddDetectorDebugOptions(DetectorDebugOptionsT &&value)
AWS_IOTEVENTS_API LoggingOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetectorDebugOptions(DetectorDebugOptionsT &&value)
const Aws::Vector< DetectorDebugOption > & GetDetectorDebugOptions() const
const Aws::String & GetRoleArn() const
LoggingOptions & WithLevel(LoggingLevel value)
LoggingOptions & WithEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue