AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LogPublishingOption.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ElasticsearchService
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_ELASTICSEARCHSERVICE_API LogPublishingOption() = default;
38 AWS_ELASTICSEARCHSERVICE_API LogPublishingOption(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_API LogPublishingOption& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
46 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
47 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
48 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value); }
49 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
50 LogPublishingOption& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value)); return *this;}
52
54
57 inline bool GetEnabled() const { return m_enabled; }
58 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
59 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
60 inline LogPublishingOption& WithEnabled(bool value) { SetEnabled(value); return *this;}
62 private:
63
64 Aws::String m_cloudWatchLogsLogGroupArn;
65 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
66
67 bool m_enabled{false};
68 bool m_enabledHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace ElasticsearchService
73} // namespace Aws
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
AWS_ELASTICSEARCHSERVICE_API LogPublishingOption()=default
AWS_ELASTICSEARCHSERVICE_API LogPublishingOption & operator=(Aws::Utils::Json::JsonView jsonValue)
LogPublishingOption & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
AWS_ELASTICSEARCHSERVICE_API LogPublishingOption(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue