AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
LoggingOptionsPayload.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/LogLevel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29 public:
30 AWS_IOT_API LoggingOptionsPayload() = default;
34
36
39 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
40 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
41 template <typename RoleArnT = Aws::String>
42 void SetRoleArn(RoleArnT&& value) {
43 m_roleArnHasBeenSet = true;
44 m_roleArn = std::forward<RoleArnT>(value);
45 }
46 template <typename RoleArnT = Aws::String>
48 SetRoleArn(std::forward<RoleArnT>(value));
49 return *this;
50 }
52
54
57 inline LogLevel GetLogLevel() const { return m_logLevel; }
58 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
59 inline void SetLogLevel(LogLevel value) {
60 m_logLevelHasBeenSet = true;
61 m_logLevel = value;
62 }
64 SetLogLevel(value);
65 return *this;
66 }
68 private:
69 Aws::String m_roleArn;
70 bool m_roleArnHasBeenSet = false;
71
72 LogLevel m_logLevel{LogLevel::NOT_SET};
73 bool m_logLevelHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace IoT
78} // 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