AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
LogPublishingOptionsStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/es/ElasticsearchService_EXPORTS.h>
9#include <aws/es/model/LogPublishingOption.h>
10#include <aws/es/model/LogType.h>
11#include <aws/es/model/OptionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ElasticsearchService {
23namespace Model {
24
32 public:
33 AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus() = default;
34 AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Map<LogType, LogPublishingOption>& GetOptions() const { return m_options; }
43 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
44 template <typename OptionsT = Aws::Map<LogType, LogPublishingOption>>
45 void SetOptions(OptionsT&& value) {
46 m_optionsHasBeenSet = true;
47 m_options = std::forward<OptionsT>(value);
48 }
49 template <typename OptionsT = Aws::Map<LogType, LogPublishingOption>>
51 SetOptions(std::forward<OptionsT>(value));
52 return *this;
53 }
55 m_optionsHasBeenSet = true;
56 m_options.emplace(key, value);
57 return *this;
58 }
60
62
66 inline const OptionStatus& GetStatus() const { return m_status; }
67 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
68 template <typename StatusT = OptionStatus>
69 void SetStatus(StatusT&& value) {
70 m_statusHasBeenSet = true;
71 m_status = std::forward<StatusT>(value);
72 }
73 template <typename StatusT = OptionStatus>
75 SetStatus(std::forward<StatusT>(value));
76 return *this;
77 }
79 private:
81
82 OptionStatus m_status;
83 bool m_optionsHasBeenSet = false;
84 bool m_statusHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace ElasticsearchService
89} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
LogPublishingOptionsStatus & AddOptions(LogType key, LogPublishingOption value)
AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< LogType, LogPublishingOption > & GetOptions() const
AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus()=default
AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue