AWS SDK for C++  1.9.124
AWS SDK for C++
SetV2LoggingOptionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <aws/iot/model/LogLevel.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace 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::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
40 
44  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
45 
49  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
50 
54  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
55 
59  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
60 
64  inline SetV2LoggingOptionsRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
65 
69  inline SetV2LoggingOptionsRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
70 
74  inline SetV2LoggingOptionsRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
75 
76 
80  inline const LogLevel& GetDefaultLogLevel() const{ return m_defaultLogLevel; }
81 
85  inline bool DefaultLogLevelHasBeenSet() const { return m_defaultLogLevelHasBeenSet; }
86 
90  inline void SetDefaultLogLevel(const LogLevel& value) { m_defaultLogLevelHasBeenSet = true; m_defaultLogLevel = value; }
91 
95  inline void SetDefaultLogLevel(LogLevel&& value) { m_defaultLogLevelHasBeenSet = true; m_defaultLogLevel = std::move(value); }
96 
100  inline SetV2LoggingOptionsRequest& WithDefaultLogLevel(const LogLevel& value) { SetDefaultLogLevel(value); return *this;}
101 
105  inline SetV2LoggingOptionsRequest& WithDefaultLogLevel(LogLevel&& value) { SetDefaultLogLevel(std::move(value)); return *this;}
106 
107 
111  inline bool GetDisableAllLogs() const{ return m_disableAllLogs; }
112 
116  inline bool DisableAllLogsHasBeenSet() const { return m_disableAllLogsHasBeenSet; }
117 
121  inline void SetDisableAllLogs(bool value) { m_disableAllLogsHasBeenSet = true; m_disableAllLogs = value; }
122 
126  inline SetV2LoggingOptionsRequest& WithDisableAllLogs(bool value) { SetDisableAllLogs(value); return *this;}
127 
128  private:
129 
130  Aws::String m_roleArn;
131  bool m_roleArnHasBeenSet;
132 
133  LogLevel m_defaultLogLevel;
134  bool m_defaultLogLevelHasBeenSet;
135 
136  bool m_disableAllLogs;
137  bool m_disableAllLogsHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace IoT
142 } // namespace Aws
Aws::IoT::Model::SetV2LoggingOptionsRequest::WithRoleArn
SetV2LoggingOptionsRequest & WithRoleArn(const char *value)
Definition: SetV2LoggingOptionsRequest.h:74
Aws::IoT::Model::SetV2LoggingOptionsRequest::DefaultLogLevelHasBeenSet
bool DefaultLogLevelHasBeenSet() const
Definition: SetV2LoggingOptionsRequest.h:85
Aws::IoT::Model::LogLevel
LogLevel
Definition: LogLevel.h:17
Aws::IoT::Model::SetV2LoggingOptionsRequest::SetDefaultLogLevel
void SetDefaultLogLevel(const LogLevel &value)
Definition: SetV2LoggingOptionsRequest.h:90
LogLevel.h
Aws::IoT::Model::SetV2LoggingOptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetV2LoggingOptionsRequest.h:31
Aws::IoT::Model::SetV2LoggingOptionsRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: SetV2LoggingOptionsRequest.h:44
Aws::IoT::Model::SetV2LoggingOptionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::SetV2LoggingOptionsRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: SetV2LoggingOptionsRequest.h:39
Aws::IoT::Model::SetV2LoggingOptionsRequest::GetDisableAllLogs
bool GetDisableAllLogs() const
Definition: SetV2LoggingOptionsRequest.h:111
Aws::IoT::Model::SetV2LoggingOptionsRequest::SetDisableAllLogs
void SetDisableAllLogs(bool value)
Definition: SetV2LoggingOptionsRequest.h:121
Aws::IoT::Model::SetV2LoggingOptionsRequest::WithDefaultLogLevel
SetV2LoggingOptionsRequest & WithDefaultLogLevel(LogLevel &&value)
Definition: SetV2LoggingOptionsRequest.h:105
Aws::IoT::Model::SetV2LoggingOptionsRequest::WithDefaultLogLevel
SetV2LoggingOptionsRequest & WithDefaultLogLevel(const LogLevel &value)
Definition: SetV2LoggingOptionsRequest.h:100
Aws::IoT::Model::SetV2LoggingOptionsRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: SetV2LoggingOptionsRequest.h:59
Aws::IoT::Model::SetV2LoggingOptionsRequest::DisableAllLogsHasBeenSet
bool DisableAllLogsHasBeenSet() const
Definition: SetV2LoggingOptionsRequest.h:116
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::SetV2LoggingOptionsRequest::WithRoleArn
SetV2LoggingOptionsRequest & WithRoleArn(Aws::String &&value)
Definition: SetV2LoggingOptionsRequest.h:69
Aws::IoT::Model::SetV2LoggingOptionsRequest::SetV2LoggingOptionsRequest
SetV2LoggingOptionsRequest()
Aws::IoT::Model::SetV2LoggingOptionsRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: SetV2LoggingOptionsRequest.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::SetV2LoggingOptionsRequest::GetDefaultLogLevel
const LogLevel & GetDefaultLogLevel() const
Definition: SetV2LoggingOptionsRequest.h:80
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::SetV2LoggingOptionsRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: SetV2LoggingOptionsRequest.h:54
Aws::IoT::Model::SetV2LoggingOptionsRequest
Definition: SetV2LoggingOptionsRequest.h:23
IoTRequest.h
Aws::IoT::Model::SetV2LoggingOptionsRequest::WithRoleArn
SetV2LoggingOptionsRequest & WithRoleArn(const Aws::String &value)
Definition: SetV2LoggingOptionsRequest.h:64
Aws::IoT::Model::SetV2LoggingOptionsRequest::WithDisableAllLogs
SetV2LoggingOptionsRequest & WithDisableAllLogs(bool value)
Definition: SetV2LoggingOptionsRequest.h:126
Aws::IoT::Model::SetV2LoggingOptionsRequest::SetDefaultLogLevel
void SetDefaultLogLevel(LogLevel &&value)
Definition: SetV2LoggingOptionsRequest.h:95
IoT_EXPORTS.h