AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SetV2LoggingOptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/LogLevel.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoT {
16namespace Model {
17
21 public:
22 AWS_IOT_API SetV2LoggingOptionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "SetV2LoggingOptions"; }
29
30 AWS_IOT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
37 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
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 bool DefaultLogLevelHasBeenSet() const { return m_defaultLogLevelHasBeenSet; }
56 inline void SetDefaultLogLevel(LogLevel value) {
57 m_defaultLogLevelHasBeenSet = true;
58 m_defaultLogLevel = value;
59 }
61 SetDefaultLogLevel(value);
62 return *this;
63 }
65
67
70 inline bool GetDisableAllLogs() const { return m_disableAllLogs; }
71 inline bool DisableAllLogsHasBeenSet() const { return m_disableAllLogsHasBeenSet; }
72 inline void SetDisableAllLogs(bool value) {
73 m_disableAllLogsHasBeenSet = true;
74 m_disableAllLogs = value;
75 }
77 SetDisableAllLogs(value);
78 return *this;
79 }
81 private:
82 Aws::String m_roleArn;
83 bool m_roleArnHasBeenSet = false;
84
85 LogLevel m_defaultLogLevel{LogLevel::NOT_SET};
86 bool m_defaultLogLevelHasBeenSet = false;
87
88 bool m_disableAllLogs{false};
89 bool m_disableAllLogsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace IoT
94} // namespace Aws
SetV2LoggingOptionsRequest & WithRoleArn(RoleArnT &&value)
SetV2LoggingOptionsRequest & WithDefaultLogLevel(LogLevel value)
SetV2LoggingOptionsRequest & WithDisableAllLogs(bool value)
AWS_IOT_API SetV2LoggingOptionsRequest()=default
AWS_IOT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String