AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
39
40
42
45 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 template<typename RoleArnT = Aws::String>
48 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
49 template<typename RoleArnT = Aws::String>
50 LoggingOptionsPayload& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
52
54
57 inline LogLevel GetLogLevel() const { return m_logLevel; }
58 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
59 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
60 inline LoggingOptionsPayload& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
62 private:
63
64 Aws::String m_roleArn;
65 bool m_roleArnHasBeenSet = false;
66
67 LogLevel m_logLevel{LogLevel::NOT_SET};
68 bool m_logLevelHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace IoT
73} // namespace Aws
AWS_IOT_API LoggingOptionsPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingOptionsPayload & WithRoleArn(RoleArnT &&value)
AWS_IOT_API LoggingOptionsPayload(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API LoggingOptionsPayload()=default
LoggingOptionsPayload & WithLogLevel(LogLevel value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue