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/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();
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 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
49 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
50 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
51 inline LoggingOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
52 inline LoggingOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
53 inline LoggingOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
55
57
60 inline const LoggingLevel& GetLevel() const{ return m_level; }
61 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
62 inline void SetLevel(const LoggingLevel& value) { m_levelHasBeenSet = true; m_level = value; }
63 inline void SetLevel(LoggingLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
64 inline LoggingOptions& WithLevel(const LoggingLevel& value) { SetLevel(value); return *this;}
65 inline LoggingOptions& WithLevel(LoggingLevel&& value) { SetLevel(std::move(value)); return *this;}
67
69
72 inline bool GetEnabled() const{ return m_enabled; }
73 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
74 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
75 inline LoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
77 private:
78
79 Aws::String m_roleArn;
80 bool m_roleArnHasBeenSet = false;
81
82 LoggingLevel m_level;
83 bool m_levelHasBeenSet = false;
84
85 bool m_enabled;
86 bool m_enabledHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace IoTAnalytics
91} // namespace Aws
LoggingOptions & WithEnabled(bool value)
void SetRoleArn(const Aws::String &value)
const LoggingLevel & GetLevel() const
void SetLevel(LoggingLevel &&value)
LoggingOptions & WithRoleArn(Aws::String &&value)
AWS_IOTANALYTICS_API LoggingOptions(Aws::Utils::Json::JsonView jsonValue)
LoggingOptions & WithRoleArn(const char *value)
LoggingOptions & WithLevel(LoggingLevel &&value)
LoggingOptions & WithRoleArn(const Aws::String &value)
void SetLevel(const LoggingLevel &value)
LoggingOptions & WithLevel(const LoggingLevel &value)
const Aws::String & GetRoleArn() const
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