AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
52 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
53 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
54 inline LoggingOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
55 inline LoggingOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
56 inline LoggingOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
58
60
63 inline const LoggingLevel& GetLevel() const{ return m_level; }
64 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
65 inline void SetLevel(const LoggingLevel& value) { m_levelHasBeenSet = true; m_level = value; }
66 inline void SetLevel(LoggingLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
67 inline LoggingOptions& WithLevel(const LoggingLevel& value) { SetLevel(value); return *this;}
68 inline LoggingOptions& WithLevel(LoggingLevel&& value) { SetLevel(std::move(value)); return *this;}
70
72
75 inline bool GetEnabled() const{ return m_enabled; }
76 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
77 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
78 inline LoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
80
82
86 inline const Aws::Vector<DetectorDebugOption>& GetDetectorDebugOptions() const{ return m_detectorDebugOptions; }
87 inline bool DetectorDebugOptionsHasBeenSet() const { return m_detectorDebugOptionsHasBeenSet; }
88 inline void SetDetectorDebugOptions(const Aws::Vector<DetectorDebugOption>& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions = value; }
89 inline void SetDetectorDebugOptions(Aws::Vector<DetectorDebugOption>&& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions = std::move(value); }
92 inline LoggingOptions& AddDetectorDebugOptions(const DetectorDebugOption& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions.push_back(value); return *this; }
93 inline LoggingOptions& AddDetectorDebugOptions(DetectorDebugOption&& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_roleArn;
98 bool m_roleArnHasBeenSet = false;
99
100 LoggingLevel m_level;
101 bool m_levelHasBeenSet = false;
102
103 bool m_enabled;
104 bool m_enabledHasBeenSet = false;
105
106 Aws::Vector<DetectorDebugOption> m_detectorDebugOptions;
107 bool m_detectorDebugOptionsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IoTEvents
112} // namespace Aws
LoggingOptions & WithRoleArn(const char *value)
void SetRoleArn(Aws::String &&value)
LoggingOptions & WithRoleArn(Aws::String &&value)
LoggingOptions & WithLevel(const LoggingLevel &value)
AWS_IOTEVENTS_API LoggingOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDetectorDebugOptions(Aws::Vector< DetectorDebugOption > &&value)
LoggingOptions & WithRoleArn(const Aws::String &value)
AWS_IOTEVENTS_API LoggingOptions(Aws::Utils::Json::JsonView jsonValue)
LoggingOptions & AddDetectorDebugOptions(const DetectorDebugOption &value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingOptions & WithLevel(LoggingLevel &&value)
LoggingOptions & WithDetectorDebugOptions(Aws::Vector< DetectorDebugOption > &&value)
const LoggingLevel & GetLevel() const
void SetDetectorDebugOptions(const Aws::Vector< DetectorDebugOption > &value)
void SetLevel(LoggingLevel &&value)
void SetLevel(const LoggingLevel &value)
const Aws::Vector< DetectorDebugOption > & GetDetectorDebugOptions() const
const Aws::String & GetRoleArn() const
LoggingOptions & WithEnabled(bool value)
void SetRoleArn(const Aws::String &value)
LoggingOptions & WithDetectorDebugOptions(const Aws::Vector< DetectorDebugOption > &value)
LoggingOptions & AddDetectorDebugOptions(DetectorDebugOption &&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