AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetV2LoggingOptionsRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/LogLevel.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOT_API SetV2LoggingOptionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SetV2LoggingOptions"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
41 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
42 template<typename RoleArnT = Aws::String>
43 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
44 template<typename RoleArnT = Aws::String>
45 SetV2LoggingOptionsRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
47
49
52 inline LogLevel GetDefaultLogLevel() const { return m_defaultLogLevel; }
53 inline bool DefaultLogLevelHasBeenSet() const { return m_defaultLogLevelHasBeenSet; }
54 inline void SetDefaultLogLevel(LogLevel value) { m_defaultLogLevelHasBeenSet = true; m_defaultLogLevel = value; }
57
59
62 inline bool GetDisableAllLogs() const { return m_disableAllLogs; }
63 inline bool DisableAllLogsHasBeenSet() const { return m_disableAllLogsHasBeenSet; }
64 inline void SetDisableAllLogs(bool value) { m_disableAllLogsHasBeenSet = true; m_disableAllLogs = value; }
65 inline SetV2LoggingOptionsRequest& WithDisableAllLogs(bool value) { SetDisableAllLogs(value); return *this;}
67 private:
68
69 Aws::String m_roleArn;
70 bool m_roleArnHasBeenSet = false;
71
72 LogLevel m_defaultLogLevel{LogLevel::NOT_SET};
73 bool m_defaultLogLevelHasBeenSet = false;
74
75 bool m_disableAllLogs{false};
76 bool m_disableAllLogsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace IoT
81} // 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