AWS SDK for C++  1.9.123
AWS SDK for C++
EnableIoTLoggingParams.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 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetRoleArnForLogging() const{ return m_roleArnForLogging; }
46 
50  inline bool RoleArnForLoggingHasBeenSet() const { return m_roleArnForLoggingHasBeenSet; }
51 
55  inline void SetRoleArnForLogging(const Aws::String& value) { m_roleArnForLoggingHasBeenSet = true; m_roleArnForLogging = value; }
56 
60  inline void SetRoleArnForLogging(Aws::String&& value) { m_roleArnForLoggingHasBeenSet = true; m_roleArnForLogging = std::move(value); }
61 
65  inline void SetRoleArnForLogging(const char* value) { m_roleArnForLoggingHasBeenSet = true; m_roleArnForLogging.assign(value); }
66 
70  inline EnableIoTLoggingParams& WithRoleArnForLogging(const Aws::String& value) { SetRoleArnForLogging(value); return *this;}
71 
75  inline EnableIoTLoggingParams& WithRoleArnForLogging(Aws::String&& value) { SetRoleArnForLogging(std::move(value)); return *this;}
76 
80  inline EnableIoTLoggingParams& WithRoleArnForLogging(const char* value) { SetRoleArnForLogging(value); return *this;}
81 
82 
86  inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
87 
91  inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
92 
96  inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
97 
101  inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
102 
106  inline EnableIoTLoggingParams& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
107 
111  inline EnableIoTLoggingParams& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_roleArnForLogging;
116  bool m_roleArnForLoggingHasBeenSet;
117 
118  LogLevel m_logLevel;
119  bool m_logLevelHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace IoT
124 } // namespace Aws
Aws::IoT::Model::EnableIoTLoggingParams::LogLevelHasBeenSet
bool LogLevelHasBeenSet() const
Definition: EnableIoTLoggingParams.h:91
Aws::IoT::Model::EnableIoTLoggingParams::WithLogLevel
EnableIoTLoggingParams & WithLogLevel(LogLevel &&value)
Definition: EnableIoTLoggingParams.h:111
Aws::IoT::Model::LogLevel
LogLevel
Definition: LogLevel.h:17
Aws::IoT::Model::EnableIoTLoggingParams::SetLogLevel
void SetLogLevel(const LogLevel &value)
Definition: EnableIoTLoggingParams.h:96
Aws::IoT::Model::EnableIoTLoggingParams
Definition: EnableIoTLoggingParams.h:34
Aws::IoT::Model::EnableIoTLoggingParams::WithLogLevel
EnableIoTLoggingParams & WithLogLevel(const LogLevel &value)
Definition: EnableIoTLoggingParams.h:106
LogLevel.h
Aws::IoT::Model::EnableIoTLoggingParams::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::EnableIoTLoggingParams::WithRoleArnForLogging
EnableIoTLoggingParams & WithRoleArnForLogging(Aws::String &&value)
Definition: EnableIoTLoggingParams.h:75
Aws::IoT::Model::EnableIoTLoggingParams::WithRoleArnForLogging
EnableIoTLoggingParams & WithRoleArnForLogging(const Aws::String &value)
Definition: EnableIoTLoggingParams.h:70
Aws::IoT::Model::EnableIoTLoggingParams::EnableIoTLoggingParams
EnableIoTLoggingParams()
Aws::IoT::Model::EnableIoTLoggingParams::EnableIoTLoggingParams
EnableIoTLoggingParams(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::EnableIoTLoggingParams::GetRoleArnForLogging
const Aws::String & GetRoleArnForLogging() const
Definition: EnableIoTLoggingParams.h:45
Aws::IoT::Model::EnableIoTLoggingParams::GetLogLevel
const LogLevel & GetLogLevel() const
Definition: EnableIoTLoggingParams.h:86
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::EnableIoTLoggingParams::WithRoleArnForLogging
EnableIoTLoggingParams & WithRoleArnForLogging(const char *value)
Definition: EnableIoTLoggingParams.h:80
Aws::IoT::Model::EnableIoTLoggingParams::SetRoleArnForLogging
void SetRoleArnForLogging(Aws::String &&value)
Definition: EnableIoTLoggingParams.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::EnableIoTLoggingParams::SetLogLevel
void SetLogLevel(LogLevel &&value)
Definition: EnableIoTLoggingParams.h:101
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::EnableIoTLoggingParams::operator=
EnableIoTLoggingParams & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::EnableIoTLoggingParams::RoleArnForLoggingHasBeenSet
bool RoleArnForLoggingHasBeenSet() const
Definition: EnableIoTLoggingParams.h:50
Aws::IoT::Model::EnableIoTLoggingParams::SetRoleArnForLogging
void SetRoleArnForLogging(const Aws::String &value)
Definition: EnableIoTLoggingParams.h:55
Aws::IoT::Model::EnableIoTLoggingParams::SetRoleArnForLogging
void SetRoleArnForLogging(const char *value)
Definition: EnableIoTLoggingParams.h:65
IoT_EXPORTS.h