AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AutoTune.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/AutoTuneType.h>
9#include <aws/opensearch/model/AutoTuneDetails.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_OPENSEARCHSERVICE_API AutoTune() = default;
38 AWS_OPENSEARCHSERVICE_API AutoTune(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API AutoTune& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline AutoTuneType GetAutoTuneType() const { return m_autoTuneType; }
48 inline bool AutoTuneTypeHasBeenSet() const { return m_autoTuneTypeHasBeenSet; }
49 inline void SetAutoTuneType(AutoTuneType value) { m_autoTuneTypeHasBeenSet = true; m_autoTuneType = value; }
50 inline AutoTune& WithAutoTuneType(AutoTuneType value) { SetAutoTuneType(value); return *this;}
52
54
57 inline const AutoTuneDetails& GetAutoTuneDetails() const { return m_autoTuneDetails; }
58 inline bool AutoTuneDetailsHasBeenSet() const { return m_autoTuneDetailsHasBeenSet; }
59 template<typename AutoTuneDetailsT = AutoTuneDetails>
60 void SetAutoTuneDetails(AutoTuneDetailsT&& value) { m_autoTuneDetailsHasBeenSet = true; m_autoTuneDetails = std::forward<AutoTuneDetailsT>(value); }
61 template<typename AutoTuneDetailsT = AutoTuneDetails>
62 AutoTune& WithAutoTuneDetails(AutoTuneDetailsT&& value) { SetAutoTuneDetails(std::forward<AutoTuneDetailsT>(value)); return *this;}
64 private:
65
66 AutoTuneType m_autoTuneType{AutoTuneType::NOT_SET};
67 bool m_autoTuneTypeHasBeenSet = false;
68
69 AutoTuneDetails m_autoTuneDetails;
70 bool m_autoTuneDetailsHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace OpenSearchService
75} // namespace Aws
AWS_OPENSEARCHSERVICE_API AutoTune & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAutoTuneType(AutoTuneType value)
Definition AutoTune.h:49
AutoTune & WithAutoTuneDetails(AutoTuneDetailsT &&value)
Definition AutoTune.h:62
AWS_OPENSEARCHSERVICE_API AutoTune()=default
AutoTune & WithAutoTuneType(AutoTuneType value)
Definition AutoTune.h:50
void SetAutoTuneDetails(AutoTuneDetailsT &&value)
Definition AutoTune.h:60
const AutoTuneDetails & GetAutoTuneDetails() const
Definition AutoTune.h:57
AWS_OPENSEARCHSERVICE_API AutoTune(Aws::Utils::Json::JsonView jsonValue)
AutoTuneType GetAutoTuneType() const
Definition AutoTune.h:47
Aws::Utils::Json::JsonValue JsonValue