AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AutoTune.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/AutoTuneDetails.h>
9#include <aws/opensearch/model/AutoTuneType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
30class AutoTune {
31 public:
32 AWS_OPENSEARCHSERVICE_API AutoTune() = default;
33 AWS_OPENSEARCHSERVICE_API AutoTune(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API AutoTune& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline AutoTuneType GetAutoTuneType() const { return m_autoTuneType; }
42 inline bool AutoTuneTypeHasBeenSet() const { return m_autoTuneTypeHasBeenSet; }
43 inline void SetAutoTuneType(AutoTuneType value) {
44 m_autoTuneTypeHasBeenSet = true;
45 m_autoTuneType = value;
46 }
48 SetAutoTuneType(value);
49 return *this;
50 }
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) {
61 m_autoTuneDetailsHasBeenSet = true;
62 m_autoTuneDetails = std::forward<AutoTuneDetailsT>(value);
63 }
64 template <typename AutoTuneDetailsT = AutoTuneDetails>
65 AutoTune& WithAutoTuneDetails(AutoTuneDetailsT&& value) {
66 SetAutoTuneDetails(std::forward<AutoTuneDetailsT>(value));
67 return *this;
68 }
70 private:
71 AutoTuneType m_autoTuneType{AutoTuneType::NOT_SET};
72
73 AutoTuneDetails m_autoTuneDetails;
74 bool m_autoTuneTypeHasBeenSet = false;
75 bool m_autoTuneDetailsHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace OpenSearchService
80} // 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:43
AutoTune & WithAutoTuneDetails(AutoTuneDetailsT &&value)
Definition AutoTune.h:65
AWS_OPENSEARCHSERVICE_API AutoTune()=default
AutoTune & WithAutoTuneType(AutoTuneType value)
Definition AutoTune.h:47
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:41
Aws::Utils::Json::JsonValue JsonValue