AWS SDK for C++  1.9.129
AWS SDK for C++
GetV2LoggingOptionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
40 
44  inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; }
45 
49  inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); }
50 
54  inline void SetRoleArn(const char* value) { m_roleArn.assign(value); }
55 
59  inline GetV2LoggingOptionsResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
60 
64  inline GetV2LoggingOptionsResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
65 
69  inline GetV2LoggingOptionsResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
70 
71 
75  inline const LogLevel& GetDefaultLogLevel() const{ return m_defaultLogLevel; }
76 
80  inline void SetDefaultLogLevel(const LogLevel& value) { m_defaultLogLevel = value; }
81 
85  inline void SetDefaultLogLevel(LogLevel&& value) { m_defaultLogLevel = std::move(value); }
86 
90  inline GetV2LoggingOptionsResult& WithDefaultLogLevel(const LogLevel& value) { SetDefaultLogLevel(value); return *this;}
91 
95  inline GetV2LoggingOptionsResult& WithDefaultLogLevel(LogLevel&& value) { SetDefaultLogLevel(std::move(value)); return *this;}
96 
97 
101  inline bool GetDisableAllLogs() const{ return m_disableAllLogs; }
102 
106  inline void SetDisableAllLogs(bool value) { m_disableAllLogs = value; }
107 
111  inline GetV2LoggingOptionsResult& WithDisableAllLogs(bool value) { SetDisableAllLogs(value); return *this;}
112 
113  private:
114 
115  Aws::String m_roleArn;
116 
117  LogLevel m_defaultLogLevel;
118 
119  bool m_disableAllLogs;
120  };
121 
122 } // namespace Model
123 } // namespace IoT
124 } // namespace Aws
Aws::IoT::Model::GetV2LoggingOptionsResult::SetDisableAllLogs
void SetDisableAllLogs(bool value)
Definition: GetV2LoggingOptionsResult.h:106
Aws::IoT::Model::GetV2LoggingOptionsResult::operator=
GetV2LoggingOptionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::LogLevel
LogLevel
Definition: LogLevel.h:17
Aws::IoT::Model::GetV2LoggingOptionsResult
Definition: GetV2LoggingOptionsResult.h:29
Aws::IoT::Model::GetV2LoggingOptionsResult::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: GetV2LoggingOptionsResult.h:39
LogLevel.h
Aws::IoT::Model::GetV2LoggingOptionsResult::WithRoleArn
GetV2LoggingOptionsResult & WithRoleArn(Aws::String &&value)
Definition: GetV2LoggingOptionsResult.h:64
Aws::IoT::Model::GetV2LoggingOptionsResult::WithRoleArn
GetV2LoggingOptionsResult & WithRoleArn(const Aws::String &value)
Definition: GetV2LoggingOptionsResult.h:59
Aws::IoT::Model::GetV2LoggingOptionsResult::WithRoleArn
GetV2LoggingOptionsResult & WithRoleArn(const char *value)
Definition: GetV2LoggingOptionsResult.h:69
Aws::IoT::Model::GetV2LoggingOptionsResult::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: GetV2LoggingOptionsResult.h:44
Aws::IoT::Model::GetV2LoggingOptionsResult::WithDefaultLogLevel
GetV2LoggingOptionsResult & WithDefaultLogLevel(const LogLevel &value)
Definition: GetV2LoggingOptionsResult.h:90
Aws::IoT::Model::GetV2LoggingOptionsResult::SetRoleArn
void SetRoleArn(const char *value)
Definition: GetV2LoggingOptionsResult.h:54
Aws::IoT::Model::GetV2LoggingOptionsResult::SetDefaultLogLevel
void SetDefaultLogLevel(LogLevel &&value)
Definition: GetV2LoggingOptionsResult.h:85
Aws::IoT::Model::GetV2LoggingOptionsResult::GetDefaultLogLevel
const LogLevel & GetDefaultLogLevel() const
Definition: GetV2LoggingOptionsResult.h:75
AWSString.h
Aws::IoT::Model::GetV2LoggingOptionsResult::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: GetV2LoggingOptionsResult.h:49
Aws::IoT::Model::GetV2LoggingOptionsResult::GetDisableAllLogs
bool GetDisableAllLogs() const
Definition: GetV2LoggingOptionsResult.h:101
Aws::IoT::Model::GetV2LoggingOptionsResult::SetDefaultLogLevel
void SetDefaultLogLevel(const LogLevel &value)
Definition: GetV2LoggingOptionsResult.h:80
Aws::IoT::Model::GetV2LoggingOptionsResult::GetV2LoggingOptionsResult
GetV2LoggingOptionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::GetV2LoggingOptionsResult::WithDefaultLogLevel
GetV2LoggingOptionsResult & WithDefaultLogLevel(LogLevel &&value)
Definition: GetV2LoggingOptionsResult.h:95
Aws
Definition: AccessManagementClient.h:15
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::GetV2LoggingOptionsResult::GetV2LoggingOptionsResult
GetV2LoggingOptionsResult()
Aws::IoT::Model::GetV2LoggingOptionsResult::WithDisableAllLogs
GetV2LoggingOptionsResult & WithDisableAllLogs(bool value)
Definition: GetV2LoggingOptionsResult.h:111
IoT_EXPORTS.h