AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
SetV2LoggingOptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoTRequest.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 {
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API SetV2LoggingOptionsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SetV2LoggingOptions"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
39 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
40 template <typename RoleArnT = Aws::String>
41 void SetRoleArn(RoleArnT&& value) {
42 m_roleArnHasBeenSet = true;
43 m_roleArn = std::forward<RoleArnT>(value);
44 }
45 template <typename RoleArnT = Aws::String>
47 SetRoleArn(std::forward<RoleArnT>(value));
48 return *this;
49 }
51
53
56 inline LogLevel GetDefaultLogLevel() const { return m_defaultLogLevel; }
57 inline bool DefaultLogLevelHasBeenSet() const { return m_defaultLogLevelHasBeenSet; }
58 inline void SetDefaultLogLevel(LogLevel value) {
59 m_defaultLogLevelHasBeenSet = true;
60 m_defaultLogLevel = value;
61 }
63 SetDefaultLogLevel(value);
64 return *this;
65 }
67
69
72 inline bool GetDisableAllLogs() const { return m_disableAllLogs; }
73 inline bool DisableAllLogsHasBeenSet() const { return m_disableAllLogsHasBeenSet; }
74 inline void SetDisableAllLogs(bool value) {
75 m_disableAllLogsHasBeenSet = true;
76 m_disableAllLogs = value;
77 }
79 SetDisableAllLogs(value);
80 return *this;
81 }
83
85
88 inline const Aws::Vector<LogEventConfiguration>& GetEventConfigurations() const { return m_eventConfigurations; }
89 inline bool EventConfigurationsHasBeenSet() const { return m_eventConfigurationsHasBeenSet; }
90 template <typename EventConfigurationsT = Aws::Vector<LogEventConfiguration>>
91 void SetEventConfigurations(EventConfigurationsT&& value) {
92 m_eventConfigurationsHasBeenSet = true;
93 m_eventConfigurations = std::forward<EventConfigurationsT>(value);
94 }
95 template <typename EventConfigurationsT = Aws::Vector<LogEventConfiguration>>
96 SetV2LoggingOptionsRequest& WithEventConfigurations(EventConfigurationsT&& value) {
97 SetEventConfigurations(std::forward<EventConfigurationsT>(value));
98 return *this;
99 }
100 template <typename EventConfigurationsT = LogEventConfiguration>
101 SetV2LoggingOptionsRequest& AddEventConfigurations(EventConfigurationsT&& value) {
102 m_eventConfigurationsHasBeenSet = true;
103 m_eventConfigurations.emplace_back(std::forward<EventConfigurationsT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_roleArn;
109
110 LogLevel m_defaultLogLevel{LogLevel::NOT_SET};
111
112 bool m_disableAllLogs{false};
113
114 Aws::Vector<LogEventConfiguration> m_eventConfigurations;
115 bool m_roleArnHasBeenSet = false;
116 bool m_defaultLogLevelHasBeenSet = false;
117 bool m_disableAllLogsHasBeenSet = false;
118 bool m_eventConfigurationsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace IoT
123} // namespace Aws
SetV2LoggingOptionsRequest & WithRoleArn(RoleArnT &&value)
SetV2LoggingOptionsRequest & WithDefaultLogLevel(LogLevel value)
const Aws::Vector< LogEventConfiguration > & GetEventConfigurations() const
SetV2LoggingOptionsRequest & WithDisableAllLogs(bool value)
AWS_IOT_API SetV2LoggingOptionsRequest()=default
AWS_IOT_API Aws::String SerializePayload() const override
SetV2LoggingOptionsRequest & WithEventConfigurations(EventConfigurationsT &&value)
SetV2LoggingOptionsRequest & AddEventConfigurations(EventConfigurationsT &&value)
void SetEventConfigurations(EventConfigurationsT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector