AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetV2LoggingOptionsResult.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{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
29 {
30 public:
31 AWS_IOT_API GetV2LoggingOptionsResult() = default;
34
35
37
40 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
41 template<typename RoleArnT = Aws::String>
42 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
43 template<typename RoleArnT = Aws::String>
44 GetV2LoggingOptionsResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
46
48
51 inline LogLevel GetDefaultLogLevel() const { return m_defaultLogLevel; }
52 inline void SetDefaultLogLevel(LogLevel value) { m_defaultLogLevelHasBeenSet = true; m_defaultLogLevel = value; }
55
57
60 inline bool GetDisableAllLogs() const { return m_disableAllLogs; }
61 inline void SetDisableAllLogs(bool value) { m_disableAllLogsHasBeenSet = true; m_disableAllLogs = value; }
62 inline GetV2LoggingOptionsResult& WithDisableAllLogs(bool value) { SetDisableAllLogs(value); return *this;}
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template<typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
70 template<typename RequestIdT = Aws::String>
71 GetV2LoggingOptionsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
73 private:
74
75 Aws::String m_roleArn;
76 bool m_roleArnHasBeenSet = false;
77
78 LogLevel m_defaultLogLevel{LogLevel::NOT_SET};
79 bool m_defaultLogLevelHasBeenSet = false;
80
81 bool m_disableAllLogs{false};
82 bool m_disableAllLogsHasBeenSet = false;
83
84 Aws::String m_requestId;
85 bool m_requestIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace IoT
90} // namespace Aws
GetV2LoggingOptionsResult & WithRoleArn(RoleArnT &&value)
AWS_IOT_API GetV2LoggingOptionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetV2LoggingOptionsResult & WithDisableAllLogs(bool value)
AWS_IOT_API GetV2LoggingOptionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetV2LoggingOptionsResult & WithRequestId(RequestIdT &&value)
AWS_IOT_API GetV2LoggingOptionsResult()=default
GetV2LoggingOptionsResult & WithDefaultLogLevel(LogLevel value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue