AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AdvancedOptionsStatus.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/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService
24{
25namespace Model
26{
27
54 {
55 public:
56 AWS_OPENSEARCHSERVICE_API AdvancedOptionsStatus() = default;
57 AWS_OPENSEARCHSERVICE_API AdvancedOptionsStatus(Aws::Utils::Json::JsonView jsonValue);
58 AWS_OPENSEARCHSERVICE_API AdvancedOptionsStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
59 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
60
61
63
66 inline const Aws::Map<Aws::String, Aws::String>& GetOptions() const { return m_options; }
67 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
68 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
69 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
70 template<typename OptionsT = Aws::Map<Aws::String, Aws::String>>
71 AdvancedOptionsStatus& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
72 template<typename OptionsKeyT = Aws::String, typename OptionsValueT = Aws::String>
73 AdvancedOptionsStatus& AddOptions(OptionsKeyT&& key, OptionsValueT&& value) {
74 m_optionsHasBeenSet = true; m_options.emplace(std::forward<OptionsKeyT>(key), std::forward<OptionsValueT>(value)); return *this;
75 }
77
79
82 inline const OptionStatus& GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 template<typename StatusT = OptionStatus>
85 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
86 template<typename StatusT = OptionStatus>
87 AdvancedOptionsStatus& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
89 private:
90
92 bool m_optionsHasBeenSet = false;
93
94 OptionStatus m_status;
95 bool m_statusHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace OpenSearchService
100} // namespace Aws
AdvancedOptionsStatus & WithOptions(OptionsT &&value)
AWS_OPENSEARCHSERVICE_API AdvancedOptionsStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API AdvancedOptionsStatus()=default
AdvancedOptionsStatus & AddOptions(OptionsKeyT &&key, OptionsValueT &&value)
AWS_OPENSEARCHSERVICE_API AdvancedOptionsStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AdvancedOptionsStatus & WithStatus(StatusT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetOptions() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue