AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
LogPublishingOptionsStatus.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/es/model/OptionStatus.h>
10#include <aws/es/model/LogType.h>
11#include <aws/es/model/LogPublishingOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ElasticsearchService
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus() = default;
39 AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API LogPublishingOptionsStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Map<LogType, LogPublishingOption>& GetOptions() const { return m_options; }
49 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
50 template<typename OptionsT = Aws::Map<LogType, LogPublishingOption>>
51 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
52 template<typename OptionsT = Aws::Map<LogType, LogPublishingOption>>
53 LogPublishingOptionsStatus& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
55 m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this;
56 }
58
60
64 inline const OptionStatus& GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 template<typename StatusT = OptionStatus>
67 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
68 template<typename StatusT = OptionStatus>
69 LogPublishingOptionsStatus& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
71 private:
72
74 bool m_optionsHasBeenSet = false;
75
76 OptionStatus m_status;
77 bool m_statusHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ElasticsearchService
82} // 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