AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LogPublishingOptionsStatus.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/opensearch/model/OptionStatus.h>
10#include <aws/opensearch/model/LogType.h>
11#include <aws/opensearch/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 OpenSearchService
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API LogPublishingOptionsStatus();
39 AWS_OPENSEARCHSERVICE_API LogPublishingOptionsStatus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_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 inline void SetOptions(const Aws::Map<LogType, LogPublishingOption>& value) { m_optionsHasBeenSet = true; m_options = value; }
51 inline void SetOptions(Aws::Map<LogType, LogPublishingOption>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
54 inline LogPublishingOptionsStatus& AddOptions(const LogType& key, const LogPublishingOption& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
55 inline LogPublishingOptionsStatus& AddOptions(LogType&& key, const LogPublishingOption& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
56 inline LogPublishingOptionsStatus& AddOptions(const LogType& key, LogPublishingOption&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
57 inline LogPublishingOptionsStatus& AddOptions(LogType&& key, LogPublishingOption&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; }
59
61
64 inline const OptionStatus& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline LogPublishingOptionsStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;}
69 inline LogPublishingOptionsStatus& WithStatus(OptionStatus&& value) { SetStatus(std::move(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 OpenSearchService
82} // namespace Aws
void SetOptions(Aws::Map< LogType, LogPublishingOption > &&value)
LogPublishingOptionsStatus & AddOptions(LogType &&key, const LogPublishingOption &value)
AWS_OPENSEARCHSERVICE_API LogPublishingOptionsStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< LogType, LogPublishingOption > & GetOptions() const
LogPublishingOptionsStatus & AddOptions(const LogType &key, LogPublishingOption &&value)
void SetOptions(const Aws::Map< LogType, LogPublishingOption > &value)
AWS_OPENSEARCHSERVICE_API LogPublishingOptionsStatus(Aws::Utils::Json::JsonView jsonValue)
LogPublishingOptionsStatus & AddOptions(LogType &&key, LogPublishingOption &&value)
LogPublishingOptionsStatus & AddOptions(const LogType &key, const LogPublishingOption &value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
LogPublishingOptionsStatus & WithStatus(const OptionStatus &value)
LogPublishingOptionsStatus & WithStatus(OptionStatus &&value)
LogPublishingOptionsStatus & WithOptions(Aws::Map< LogType, LogPublishingOption > &&value)
LogPublishingOptionsStatus & WithOptions(const Aws::Map< LogType, LogPublishingOption > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue