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/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotanalytics/model/LoggingLevel.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTAnalytics
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOTANALYTICS_API LoggingOptions() = default;
36 AWS_IOTANALYTICS_API LoggingOptions(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTANALYTICS_API LoggingOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
47 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
48 template<typename RoleArnT = Aws::String>
49 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
50 template<typename RoleArnT = Aws::String>
51 LoggingOptions& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
53
55
58 inline LoggingLevel GetLevel() const { return m_level; }
59 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
60 inline void SetLevel(LoggingLevel value) { m_levelHasBeenSet = true; m_level = value; }
61 inline LoggingOptions& WithLevel(LoggingLevel value) { SetLevel(value); return *this;}
63
65
68 inline bool GetEnabled() const { return m_enabled; }
69 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
70 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
71 inline LoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
73 private:
74
75 Aws::String m_roleArn;
76 bool m_roleArnHasBeenSet = false;
77
79 bool m_levelHasBeenSet = false;
80
81 bool m_enabled{false};
82 bool m_enabledHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace IoTAnalytics
87} // namespace Aws
LoggingOptions & WithEnabled(bool value)
LoggingOptions & WithRoleArn(RoleArnT &&value)
AWS_IOTANALYTICS_API LoggingOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTANALYTICS_API LoggingOptions()=default
const Aws::String & GetRoleArn() const
LoggingOptions & WithLevel(LoggingLevel value)
AWS_IOTANALYTICS_API LoggingOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue