AWS SDK for C++  1.9.124
AWS SDK for C++
ModuleLoggingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
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 MWAA
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
50  inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
51 
58  inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
59 
66  inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; }
67 
74  inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); }
75 
82  inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); }
83 
90  inline ModuleLoggingConfiguration& WithCloudWatchLogGroupArn(const Aws::String& value) { SetCloudWatchLogGroupArn(value); return *this;}
91 
98  inline ModuleLoggingConfiguration& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;}
99 
106  inline ModuleLoggingConfiguration& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
107 
108 
113  inline bool GetEnabled() const{ return m_enabled; }
114 
119  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
120 
125  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
126 
131  inline ModuleLoggingConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
132 
133 
140  inline const LoggingLevel& GetLogLevel() const{ return m_logLevel; }
141 
148  inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
149 
156  inline void SetLogLevel(const LoggingLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
157 
164  inline void SetLogLevel(LoggingLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
165 
172  inline ModuleLoggingConfiguration& WithLogLevel(const LoggingLevel& value) { SetLogLevel(value); return *this;}
173 
180  inline ModuleLoggingConfiguration& WithLogLevel(LoggingLevel&& value) { SetLogLevel(std::move(value)); return *this;}
181 
182  private:
183 
184  Aws::String m_cloudWatchLogGroupArn;
185  bool m_cloudWatchLogGroupArnHasBeenSet;
186 
187  bool m_enabled;
188  bool m_enabledHasBeenSet;
189 
190  LoggingLevel m_logLevel;
191  bool m_logLevelHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace MWAA
196 } // namespace Aws
Aws::MWAA::Model::ModuleLoggingConfiguration::WithCloudWatchLogGroupArn
ModuleLoggingConfiguration & WithCloudWatchLogGroupArn(Aws::String &&value)
Definition: ModuleLoggingConfiguration.h:98
Aws::MWAA::Model::ModuleLoggingConfiguration::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(const Aws::String &value)
Definition: ModuleLoggingConfiguration.h:66
Aws::MWAA::Model::ModuleLoggingConfiguration::GetLogLevel
const LoggingLevel & GetLogLevel() const
Definition: ModuleLoggingConfiguration.h:140
Aws::MWAA::Model::ModuleLoggingConfiguration::operator=
ModuleLoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MWAA::Model::ModuleLoggingConfiguration
Definition: ModuleLoggingConfiguration.h:36
Aws::MWAA::Model::ModuleLoggingConfiguration::SetEnabled
void SetEnabled(bool value)
Definition: ModuleLoggingConfiguration.h:125
LoggingLevel.h
Aws::MWAA::Model::ModuleLoggingConfiguration::GetCloudWatchLogGroupArn
const Aws::String & GetCloudWatchLogGroupArn() const
Definition: ModuleLoggingConfiguration.h:50
Aws::MWAA::Model::ModuleLoggingConfiguration::LogLevelHasBeenSet
bool LogLevelHasBeenSet() const
Definition: ModuleLoggingConfiguration.h:148
Aws::MWAA::Model::ModuleLoggingConfiguration::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(Aws::String &&value)
Definition: ModuleLoggingConfiguration.h:74
Aws::MWAA::Model::ModuleLoggingConfiguration::WithCloudWatchLogGroupArn
ModuleLoggingConfiguration & WithCloudWatchLogGroupArn(const char *value)
Definition: ModuleLoggingConfiguration.h:106
Aws::MWAA::Model::ModuleLoggingConfiguration::CloudWatchLogGroupArnHasBeenSet
bool CloudWatchLogGroupArnHasBeenSet() const
Definition: ModuleLoggingConfiguration.h:58
Aws::MWAA::Model::ModuleLoggingConfiguration::ModuleLoggingConfiguration
ModuleLoggingConfiguration()
Aws::MWAA::Model::ModuleLoggingConfiguration::WithLogLevel
ModuleLoggingConfiguration & WithLogLevel(LoggingLevel &&value)
Definition: ModuleLoggingConfiguration.h:180
Aws::MWAA::Model::ModuleLoggingConfiguration::WithEnabled
ModuleLoggingConfiguration & WithEnabled(bool value)
Definition: ModuleLoggingConfiguration.h:131
Aws::MWAA::Model::LoggingLevel
LoggingLevel
Definition: LoggingLevel.h:17
Aws::MWAA::Model::ModuleLoggingConfiguration::WithCloudWatchLogGroupArn
ModuleLoggingConfiguration & WithCloudWatchLogGroupArn(const Aws::String &value)
Definition: ModuleLoggingConfiguration.h:90
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MWAA::Model::ModuleLoggingConfiguration::WithLogLevel
ModuleLoggingConfiguration & WithLogLevel(const LoggingLevel &value)
Definition: ModuleLoggingConfiguration.h:172
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MWAA::Model::ModuleLoggingConfiguration::SetLogLevel
void SetLogLevel(LoggingLevel &&value)
Definition: ModuleLoggingConfiguration.h:164
Aws::MWAA::Model::ModuleLoggingConfiguration::SetLogLevel
void SetLogLevel(const LoggingLevel &value)
Definition: ModuleLoggingConfiguration.h:156
Aws::MWAA::Model::ModuleLoggingConfiguration::GetEnabled
bool GetEnabled() const
Definition: ModuleLoggingConfiguration.h:113
AWS_MWAA_API
#define AWS_MWAA_API
Definition: MWAA_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::MWAA::Model::ModuleLoggingConfiguration::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ModuleLoggingConfiguration.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MWAA::Model::ModuleLoggingConfiguration::ModuleLoggingConfiguration
ModuleLoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::MWAA::Model::ModuleLoggingConfiguration::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(const char *value)
Definition: ModuleLoggingConfiguration.h:82
Aws::MWAA::Model::ModuleLoggingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
MWAA_EXPORTS.h