AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CatalogOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/CatalogConfiguration.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ElasticsearchService {
20namespace Model {
21
31 public:
32 AWS_ELASTICSEARCHSERVICE_API CatalogOptions() = default;
33 AWS_ELASTICSEARCHSERVICE_API CatalogOptions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API CatalogOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
48 inline CatalogOptions& WithEnabled(bool value) {
49 SetEnabled(value);
50 return *this;
51 }
53
55
58 inline const CatalogConfiguration& GetCatalog() const { return m_catalog; }
59 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
60 template <typename CatalogT = CatalogConfiguration>
61 void SetCatalog(CatalogT&& value) {
62 m_catalogHasBeenSet = true;
63 m_catalog = std::forward<CatalogT>(value);
64 }
65 template <typename CatalogT = CatalogConfiguration>
66 CatalogOptions& WithCatalog(CatalogT&& value) {
67 SetCatalog(std::forward<CatalogT>(value));
68 return *this;
69 }
71 private:
72 bool m_enabled{false};
73
74 CatalogConfiguration m_catalog;
75 bool m_enabledHasBeenSet = false;
76 bool m_catalogHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ElasticsearchService
81} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API CatalogOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const CatalogConfiguration & GetCatalog() const
AWS_ELASTICSEARCHSERVICE_API CatalogOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API CatalogOptions()=default
CatalogOptions & WithCatalog(CatalogT &&value)
Aws::Utils::Json::JsonValue JsonValue