AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
43 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
44 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
45 inline SetV2LoggingOptionsRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
46 inline SetV2LoggingOptionsRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
47 inline SetV2LoggingOptionsRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
49
51
54 inline const LogLevel& GetDefaultLogLevel() const{ return m_defaultLogLevel; }
55 inline bool DefaultLogLevelHasBeenSet() const { return m_defaultLogLevelHasBeenSet; }
56 inline void SetDefaultLogLevel(const LogLevel& value) { m_defaultLogLevelHasBeenSet = true; m_defaultLogLevel = value; }
57 inline void SetDefaultLogLevel(LogLevel&& value) { m_defaultLogLevelHasBeenSet = true; m_defaultLogLevel = std::move(value); }
58 inline SetV2LoggingOptionsRequest& WithDefaultLogLevel(const LogLevel& value) { SetDefaultLogLevel(value); return *this;}
59 inline SetV2LoggingOptionsRequest& WithDefaultLogLevel(LogLevel&& value) { SetDefaultLogLevel(std::move(value)); return *this;}
61
63
66 inline bool GetDisableAllLogs() const{ return m_disableAllLogs; }
67 inline bool DisableAllLogsHasBeenSet() const { return m_disableAllLogsHasBeenSet; }
68 inline void SetDisableAllLogs(bool value) { m_disableAllLogsHasBeenSet = true; m_disableAllLogs = value; }
69 inline SetV2LoggingOptionsRequest& WithDisableAllLogs(bool value) { SetDisableAllLogs(value); return *this;}
71 private:
72
73 Aws::String m_roleArn;
74 bool m_roleArnHasBeenSet = false;
75
76 LogLevel m_defaultLogLevel;
77 bool m_defaultLogLevelHasBeenSet = false;
78
79 bool m_disableAllLogs;
80 bool m_disableAllLogsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace IoT
85} // namespace Aws
SetV2LoggingOptionsRequest & WithDefaultLogLevel(const LogLevel &value)
SetV2LoggingOptionsRequest & WithDefaultLogLevel(LogLevel &&value)
SetV2LoggingOptionsRequest & WithDisableAllLogs(bool value)
SetV2LoggingOptionsRequest & WithRoleArn(Aws::String &&value)
AWS_IOT_API Aws::String SerializePayload() const override
SetV2LoggingOptionsRequest & WithRoleArn(const Aws::String &value)
SetV2LoggingOptionsRequest & WithRoleArn(const char *value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String