AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
GetV2LoggingOptionsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/LogEventConfiguration.h>
12#include <aws/iot/model/LogLevel.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoT {
26namespace Model {
28 public:
29 AWS_IOT_API GetV2LoggingOptionsResult() = default;
32
34
37 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
38 template <typename RoleArnT = Aws::String>
39 void SetRoleArn(RoleArnT&& value) {
40 m_roleArnHasBeenSet = true;
41 m_roleArn = std::forward<RoleArnT>(value);
42 }
43 template <typename RoleArnT = Aws::String>
45 SetRoleArn(std::forward<RoleArnT>(value));
46 return *this;
47 }
49
51
54 inline LogLevel GetDefaultLogLevel() const { return m_defaultLogLevel; }
55 inline void SetDefaultLogLevel(LogLevel value) {
56 m_defaultLogLevelHasBeenSet = true;
57 m_defaultLogLevel = value;
58 }
60 SetDefaultLogLevel(value);
61 return *this;
62 }
64
66
69 inline bool GetDisableAllLogs() const { return m_disableAllLogs; }
70 inline void SetDisableAllLogs(bool value) {
71 m_disableAllLogsHasBeenSet = true;
72 m_disableAllLogs = value;
73 }
75 SetDisableAllLogs(value);
76 return *this;
77 }
79
81
84 inline const Aws::Vector<LogEventConfiguration>& GetEventConfigurations() const { return m_eventConfigurations; }
85 template <typename EventConfigurationsT = Aws::Vector<LogEventConfiguration>>
86 void SetEventConfigurations(EventConfigurationsT&& value) {
87 m_eventConfigurationsHasBeenSet = true;
88 m_eventConfigurations = std::forward<EventConfigurationsT>(value);
89 }
90 template <typename EventConfigurationsT = Aws::Vector<LogEventConfiguration>>
91 GetV2LoggingOptionsResult& WithEventConfigurations(EventConfigurationsT&& value) {
92 SetEventConfigurations(std::forward<EventConfigurationsT>(value));
93 return *this;
94 }
95 template <typename EventConfigurationsT = LogEventConfiguration>
96 GetV2LoggingOptionsResult& AddEventConfigurations(EventConfigurationsT&& value) {
97 m_eventConfigurationsHasBeenSet = true;
98 m_eventConfigurations.emplace_back(std::forward<EventConfigurationsT>(value));
99 return *this;
100 }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template <typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) {
108 m_requestIdHasBeenSet = true;
109 m_requestId = std::forward<RequestIdT>(value);
110 }
111 template <typename RequestIdT = Aws::String>
113 SetRequestId(std::forward<RequestIdT>(value));
114 return *this;
115 }
117 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
118
119 private:
120 Aws::String m_roleArn;
121
122 LogLevel m_defaultLogLevel{LogLevel::NOT_SET};
123
124 bool m_disableAllLogs{false};
125
126 Aws::Vector<LogEventConfiguration> m_eventConfigurations;
127
128 Aws::String m_requestId;
129 Aws::Http::HttpResponseCode m_HttpResponseCode;
130 bool m_roleArnHasBeenSet = false;
131 bool m_defaultLogLevelHasBeenSet = false;
132 bool m_disableAllLogsHasBeenSet = false;
133 bool m_eventConfigurationsHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace IoT
139} // namespace Aws
const Aws::Vector< LogEventConfiguration > & GetEventConfigurations() const
GetV2LoggingOptionsResult & WithRoleArn(RoleArnT &&value)
GetV2LoggingOptionsResult & WithEventConfigurations(EventConfigurationsT &&value)
AWS_IOT_API GetV2LoggingOptionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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 & AddEventConfigurations(EventConfigurationsT &&value)
void SetEventConfigurations(EventConfigurationsT &&value)
GetV2LoggingOptionsResult & WithDefaultLogLevel(LogLevel value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue