AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LoggingOptions.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/LoggingLevel.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotevents/model/DetectorDebugOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTEvents
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTEVENTS_API LoggingOptions() = default;
39 AWS_IOTEVENTS_API LoggingOptions(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
50 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
51 template<typename RoleArnT = Aws::String>
52 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
53 template<typename RoleArnT = Aws::String>
54 LoggingOptions& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
56
58
61 inline LoggingLevel GetLevel() const { return m_level; }
62 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
63 inline void SetLevel(LoggingLevel value) { m_levelHasBeenSet = true; m_level = value; }
64 inline LoggingOptions& WithLevel(LoggingLevel value) { SetLevel(value); return *this;}
66
68
71 inline bool GetEnabled() const { return m_enabled; }
72 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
73 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
74 inline LoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
76
78
82 inline const Aws::Vector<DetectorDebugOption>& GetDetectorDebugOptions() const { return m_detectorDebugOptions; }
83 inline bool DetectorDebugOptionsHasBeenSet() const { return m_detectorDebugOptionsHasBeenSet; }
84 template<typename DetectorDebugOptionsT = Aws::Vector<DetectorDebugOption>>
85 void SetDetectorDebugOptions(DetectorDebugOptionsT&& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions = std::forward<DetectorDebugOptionsT>(value); }
86 template<typename DetectorDebugOptionsT = Aws::Vector<DetectorDebugOption>>
87 LoggingOptions& WithDetectorDebugOptions(DetectorDebugOptionsT&& value) { SetDetectorDebugOptions(std::forward<DetectorDebugOptionsT>(value)); return *this;}
88 template<typename DetectorDebugOptionsT = DetectorDebugOption>
89 LoggingOptions& AddDetectorDebugOptions(DetectorDebugOptionsT&& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions.emplace_back(std::forward<DetectorDebugOptionsT>(value)); return *this; }
91 private:
92
93 Aws::String m_roleArn;
94 bool m_roleArnHasBeenSet = false;
95
97 bool m_levelHasBeenSet = false;
98
99 bool m_enabled{false};
100 bool m_enabledHasBeenSet = false;
101
102 Aws::Vector<DetectorDebugOption> m_detectorDebugOptions;
103 bool m_detectorDebugOptionsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace IoTEvents
108} // 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