AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoTuneOptionsInput.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/AutoTuneDesiredState.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearch/model/AutoTuneMaintenanceSchedule.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
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsInput();
39 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsInput(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsInput& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const AutoTuneDesiredState& GetDesiredState() const{ return m_desiredState; }
49 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
50 inline void SetDesiredState(const AutoTuneDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
51 inline void SetDesiredState(AutoTuneDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
52 inline AutoTuneOptionsInput& WithDesiredState(const AutoTuneDesiredState& value) { SetDesiredState(value); return *this;}
53 inline AutoTuneOptionsInput& WithDesiredState(AutoTuneDesiredState&& value) { SetDesiredState(std::move(value)); return *this;}
55
57
63 inline const Aws::Vector<AutoTuneMaintenanceSchedule>& GetMaintenanceSchedules() const{ return m_maintenanceSchedules; }
64 inline bool MaintenanceSchedulesHasBeenSet() const { return m_maintenanceSchedulesHasBeenSet; }
65 inline void SetMaintenanceSchedules(const Aws::Vector<AutoTuneMaintenanceSchedule>& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = value; }
66 inline void SetMaintenanceSchedules(Aws::Vector<AutoTuneMaintenanceSchedule>&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = std::move(value); }
69 inline AutoTuneOptionsInput& AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(value); return *this; }
70 inline AutoTuneOptionsInput& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; }
72
74
78 inline bool GetUseOffPeakWindow() const{ return m_useOffPeakWindow; }
79 inline bool UseOffPeakWindowHasBeenSet() const { return m_useOffPeakWindowHasBeenSet; }
80 inline void SetUseOffPeakWindow(bool value) { m_useOffPeakWindowHasBeenSet = true; m_useOffPeakWindow = value; }
81 inline AutoTuneOptionsInput& WithUseOffPeakWindow(bool value) { SetUseOffPeakWindow(value); return *this;}
83 private:
84
85 AutoTuneDesiredState m_desiredState;
86 bool m_desiredStateHasBeenSet = false;
87
88 Aws::Vector<AutoTuneMaintenanceSchedule> m_maintenanceSchedules;
89 bool m_maintenanceSchedulesHasBeenSet = false;
90
91 bool m_useOffPeakWindow;
92 bool m_useOffPeakWindowHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace OpenSearchService
97} // namespace Aws
AutoTuneOptionsInput & WithDesiredState(const AutoTuneDesiredState &value)
void SetMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
AutoTuneOptionsInput & WithUseOffPeakWindow(bool value)
AutoTuneOptionsInput & AddMaintenanceSchedules(AutoTuneMaintenanceSchedule &&value)
AWS_OPENSEARCHSERVICE_API AutoTuneOptionsInput(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API AutoTuneOptionsInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AutoTuneMaintenanceSchedule > & GetMaintenanceSchedules() const
const AutoTuneDesiredState & GetDesiredState() const
AutoTuneOptionsInput & AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule &value)
AutoTuneOptionsInput & WithMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
AutoTuneOptionsInput & WithDesiredState(AutoTuneDesiredState &&value)
AutoTuneOptionsInput & WithMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
void SetDesiredState(const AutoTuneDesiredState &value)
void SetMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue