AWS SDK for C++  1.9.132
AWS SDK for C++
LoggingOptionsPayload.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 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
45 
49  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
50 
54  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
55 
59  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
60 
64  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 
69  inline LoggingOptionsPayload& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
70 
74  inline LoggingOptionsPayload& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
75 
79  inline LoggingOptionsPayload& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
80 
81 
85  inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
86 
90  inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
91 
95  inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
96 
100  inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
101 
105  inline LoggingOptionsPayload& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
106 
110  inline LoggingOptionsPayload& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
111 
112  private:
113 
114  Aws::String m_roleArn;
115  bool m_roleArnHasBeenSet;
116 
117  LogLevel m_logLevel;
118  bool m_logLevelHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace IoT
123 } // namespace Aws
Aws::IoT::Model::LogLevel
LogLevel
Definition: LogLevel.h:17
LogLevel.h
Aws::IoT::Model::LoggingOptionsPayload::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: LoggingOptionsPayload.h:49
Aws::IoT::Model::LoggingOptionsPayload::WithRoleArn
LoggingOptionsPayload & WithRoleArn(Aws::String &&value)
Definition: LoggingOptionsPayload.h:74
Aws::IoT::Model::LoggingOptionsPayload::SetLogLevel
void SetLogLevel(const LogLevel &value)
Definition: LoggingOptionsPayload.h:95
Aws::IoT::Model::LoggingOptionsPayload::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: LoggingOptionsPayload.h:54
Aws::IoT::Model::LoggingOptionsPayload::LogLevelHasBeenSet
bool LogLevelHasBeenSet() const
Definition: LoggingOptionsPayload.h:90
Aws::IoT::Model::LoggingOptionsPayload::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::LoggingOptionsPayload::WithLogLevel
LoggingOptionsPayload & WithLogLevel(const LogLevel &value)
Definition: LoggingOptionsPayload.h:105
Aws::IoT::Model::LoggingOptionsPayload::operator=
LoggingOptionsPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::LoggingOptionsPayload::LoggingOptionsPayload
LoggingOptionsPayload()
Aws::IoT::Model::LoggingOptionsPayload::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: LoggingOptionsPayload.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::LoggingOptionsPayload::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: LoggingOptionsPayload.h:44
Aws::IoT::Model::LoggingOptionsPayload::LoggingOptionsPayload
LoggingOptionsPayload(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::LoggingOptionsPayload::GetLogLevel
const LogLevel & GetLogLevel() const
Definition: LoggingOptionsPayload.h:85
Aws::IoT::Model::LoggingOptionsPayload::SetRoleArn
void SetRoleArn(const char *value)
Definition: LoggingOptionsPayload.h:64
Aws::IoT::Model::LoggingOptionsPayload::WithRoleArn
LoggingOptionsPayload & WithRoleArn(const Aws::String &value)
Definition: LoggingOptionsPayload.h:69
Aws::IoT::Model::LoggingOptionsPayload::WithRoleArn
LoggingOptionsPayload & WithRoleArn(const char *value)
Definition: LoggingOptionsPayload.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::LoggingOptionsPayload::WithLogLevel
LoggingOptionsPayload & WithLogLevel(LogLevel &&value)
Definition: LoggingOptionsPayload.h:110
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::LoggingOptionsPayload
Definition: LoggingOptionsPayload.h:33
Aws::IoT::Model::LoggingOptionsPayload::SetLogLevel
void SetLogLevel(LogLevel &&value)
Definition: LoggingOptionsPayload.h:100
IoT_EXPORTS.h