AWS SDK for C++  1.9.132
AWS SDK for C++
LogPublishingOption.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 ElasticsearchService
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
43 
44  inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
45 
46 
47  inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
48 
49 
50  inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
51 
52 
53  inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); }
54 
55 
56  inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
57 
58 
59  inline LogPublishingOption& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
60 
61 
62  inline LogPublishingOption& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(std::move(value)); return *this;}
63 
64 
65  inline LogPublishingOption& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
66 
67 
71  inline bool GetEnabled() const{ return m_enabled; }
72 
76  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
77 
81  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
82 
86  inline LogPublishingOption& WithEnabled(bool value) { SetEnabled(value); return *this;}
87 
88  private:
89 
90  Aws::String m_cloudWatchLogsLogGroupArn;
91  bool m_cloudWatchLogsLogGroupArnHasBeenSet;
92 
93  bool m_enabled;
94  bool m_enabledHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace ElasticsearchService
99 } // namespace Aws
Aws::ElasticsearchService::Model::LogPublishingOption::WithCloudWatchLogsLogGroupArn
LogPublishingOption & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
Definition: LogPublishingOption.h:62
Aws::ElasticsearchService::Model::LogPublishingOption::CloudWatchLogsLogGroupArnHasBeenSet
bool CloudWatchLogsLogGroupArnHasBeenSet() const
Definition: LogPublishingOption.h:47
Aws::ElasticsearchService::Model::LogPublishingOption::LogPublishingOption
LogPublishingOption()
Aws::ElasticsearchService::Model::LogPublishingOption::SetCloudWatchLogsLogGroupArn
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
Definition: LogPublishingOption.h:50
Aws::ElasticsearchService::Model::LogPublishingOption::GetEnabled
bool GetEnabled() const
Definition: LogPublishingOption.h:71
Aws::ElasticsearchService::Model::LogPublishingOption::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: LogPublishingOption.h:76
Aws::ElasticsearchService::Model::LogPublishingOption::operator=
LogPublishingOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::LogPublishingOption::WithCloudWatchLogsLogGroupArn
LogPublishingOption & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
Definition: LogPublishingOption.h:59
Aws::ElasticsearchService::Model::LogPublishingOption::SetEnabled
void SetEnabled(bool value)
Definition: LogPublishingOption.h:81
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::LogPublishingOption::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::LogPublishingOption::LogPublishingOption
LogPublishingOption(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::LogPublishingOption::SetCloudWatchLogsLogGroupArn
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
Definition: LogPublishingOption.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::LogPublishingOption
Definition: LogPublishingOption.h:35
Aws::ElasticsearchService::Model::LogPublishingOption::SetCloudWatchLogsLogGroupArn
void SetCloudWatchLogsLogGroupArn(const char *value)
Definition: LogPublishingOption.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::LogPublishingOption::GetCloudWatchLogsLogGroupArn
const Aws::String & GetCloudWatchLogsLogGroupArn() const
Definition: LogPublishingOption.h:44
Aws::ElasticsearchService::Model::LogPublishingOption::WithCloudWatchLogsLogGroupArn
LogPublishingOption & WithCloudWatchLogsLogGroupArn(const char *value)
Definition: LogPublishingOption.h:65
Aws::ElasticsearchService::Model::LogPublishingOption::WithEnabled
LogPublishingOption & WithEnabled(bool value)
Definition: LogPublishingOption.h:86