AWS SDK for C++  1.9.104
AWS SDK for C++
CloudWatchLogs.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Kafka
22 {
23 namespace Model
24 {
25 
27  {
28  public:
33 
34 
35 
36  inline bool GetEnabled() const{ return m_enabled; }
37 
38 
39  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
40 
41 
42  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
43 
44 
45  inline CloudWatchLogs& WithEnabled(bool value) { SetEnabled(value); return *this;}
46 
47 
48 
49  inline const Aws::String& GetLogGroup() const{ return m_logGroup; }
50 
51 
52  inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
53 
54 
55  inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; }
56 
57 
58  inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); }
59 
60 
61  inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); }
62 
63 
64  inline CloudWatchLogs& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;}
65 
66 
67  inline CloudWatchLogs& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;}
68 
69 
70  inline CloudWatchLogs& WithLogGroup(const char* value) { SetLogGroup(value); return *this;}
71 
72  private:
73 
74  bool m_enabled;
75  bool m_enabledHasBeenSet;
76 
77  Aws::String m_logGroup;
78  bool m_logGroupHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace Kafka
83 } // namespace Aws
Aws::Kafka::Model::CloudWatchLogs::operator=
CloudWatchLogs & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::CloudWatchLogs::SetLogGroup
void SetLogGroup(const char *value)
Definition: CloudWatchLogs.h:61
Aws::Kafka::Model::CloudWatchLogs
Definition: CloudWatchLogs.h:27
Aws::Kafka::Model::CloudWatchLogs::SetLogGroup
void SetLogGroup(const Aws::String &value)
Definition: CloudWatchLogs.h:55
Aws::Kafka::Model::CloudWatchLogs::WithLogGroup
CloudWatchLogs & WithLogGroup(const Aws::String &value)
Definition: CloudWatchLogs.h:64
Aws::Kafka::Model::CloudWatchLogs::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kafka::Model::CloudWatchLogs::CloudWatchLogs
CloudWatchLogs()
Aws::Kafka::Model::CloudWatchLogs::WithEnabled
CloudWatchLogs & WithEnabled(bool value)
Definition: CloudWatchLogs.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Kafka::Model::CloudWatchLogs::GetLogGroup
const Aws::String & GetLogGroup() const
Definition: CloudWatchLogs.h:49
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::CloudWatchLogs::CloudWatchLogs
CloudWatchLogs(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::CloudWatchLogs::LogGroupHasBeenSet
bool LogGroupHasBeenSet() const
Definition: CloudWatchLogs.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::CloudWatchLogs::WithLogGroup
CloudWatchLogs & WithLogGroup(Aws::String &&value)
Definition: CloudWatchLogs.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kafka::Model::CloudWatchLogs::WithLogGroup
CloudWatchLogs & WithLogGroup(const char *value)
Definition: CloudWatchLogs.h:70
Kafka_EXPORTS.h
Aws::Kafka::Model::CloudWatchLogs::SetEnabled
void SetEnabled(bool value)
Definition: CloudWatchLogs.h:42
Aws::Kafka::Model::CloudWatchLogs::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: CloudWatchLogs.h:39
Aws::Kafka::Model::CloudWatchLogs::GetEnabled
bool GetEnabled() const
Definition: CloudWatchLogs.h:36
Aws::Kafka::Model::CloudWatchLogs::SetLogGroup
void SetLogGroup(Aws::String &&value)
Definition: CloudWatchLogs.h:58