AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoggingOptionsPayload.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/LogLevel.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 IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API LoggingOptionsPayload();
39
40
42
45 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
48 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
49 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
50 inline LoggingOptionsPayload& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
51 inline LoggingOptionsPayload& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
52 inline LoggingOptionsPayload& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
54
56
59 inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
60 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
61 inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
62 inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
63 inline LoggingOptionsPayload& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
64 inline LoggingOptionsPayload& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_roleArn;
69 bool m_roleArnHasBeenSet = false;
70
71 LogLevel m_logLevel;
72 bool m_logLevelHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoT
77} // namespace Aws
AWS_IOT_API LoggingOptionsPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingOptionsPayload & WithRoleArn(const char *value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingOptionsPayload & WithRoleArn(const Aws::String &value)
LoggingOptionsPayload & WithLogLevel(LogLevel &&value)
AWS_IOT_API LoggingOptionsPayload(Aws::Utils::Json::JsonView jsonValue)
LoggingOptionsPayload & WithRoleArn(Aws::String &&value)
LoggingOptionsPayload & WithLogLevel(const LogLevel &value)
void SetRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue