AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
AutoTune.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/AutoTuneDetails.h>
9#include <aws/es/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 ElasticsearchService {
21namespace Model {
22
29class AutoTune {
30 public:
31 AWS_ELASTICSEARCHSERVICE_API AutoTune() = default;
32 AWS_ELASTICSEARCHSERVICE_API AutoTune(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELASTICSEARCHSERVICE_API AutoTune& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline AutoTuneType GetAutoTuneType() const { return m_autoTuneType; }
41 inline bool AutoTuneTypeHasBeenSet() const { return m_autoTuneTypeHasBeenSet; }
42 inline void SetAutoTuneType(AutoTuneType value) {
43 m_autoTuneTypeHasBeenSet = true;
44 m_autoTuneType = value;
45 }
47 SetAutoTuneType(value);
48 return *this;
49 }
51
53
58 inline const AutoTuneDetails& GetAutoTuneDetails() const { return m_autoTuneDetails; }
59 inline bool AutoTuneDetailsHasBeenSet() const { return m_autoTuneDetailsHasBeenSet; }
60 template <typename AutoTuneDetailsT = AutoTuneDetails>
61 void SetAutoTuneDetails(AutoTuneDetailsT&& value) {
62 m_autoTuneDetailsHasBeenSet = true;
63 m_autoTuneDetails = std::forward<AutoTuneDetailsT>(value);
64 }
65 template <typename AutoTuneDetailsT = AutoTuneDetails>
66 AutoTune& WithAutoTuneDetails(AutoTuneDetailsT&& value) {
67 SetAutoTuneDetails(std::forward<AutoTuneDetailsT>(value));
68 return *this;
69 }
71 private:
72 AutoTuneType m_autoTuneType{AutoTuneType::NOT_SET};
73
74 AutoTuneDetails m_autoTuneDetails;
75 bool m_autoTuneTypeHasBeenSet = false;
76 bool m_autoTuneDetailsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ElasticsearchService
81} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API AutoTune()=default
AWS_ELASTICSEARCHSERVICE_API AutoTune & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API AutoTune(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAutoTuneType(AutoTuneType value)
Definition AutoTune.h:42
void SetAutoTuneDetails(AutoTuneDetailsT &&value)
Definition AutoTune.h:61
AutoTune & WithAutoTuneDetails(AutoTuneDetailsT &&value)
Definition AutoTune.h:66
const AutoTuneDetails & GetAutoTuneDetails() const
Definition AutoTune.h:58
AutoTune & WithAutoTuneType(AutoTuneType value)
Definition AutoTune.h:46
Aws::Utils::Json::JsonValue JsonValue