AWS SDK for C++  1.9.97
AWS SDK for C++
AutoTuneOptionsInput.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ElasticsearchService
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const AutoTuneDesiredState& GetDesiredState() const{ return m_desiredState; }
48 
53  inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
54 
59  inline void SetDesiredState(const AutoTuneDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
60 
65  inline void SetDesiredState(AutoTuneDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
66 
71  inline AutoTuneOptionsInput& WithDesiredState(const AutoTuneDesiredState& value) { SetDesiredState(value); return *this;}
72 
77  inline AutoTuneOptionsInput& WithDesiredState(AutoTuneDesiredState&& value) { SetDesiredState(std::move(value)); return *this;}
78 
79 
85  inline const Aws::Vector<AutoTuneMaintenanceSchedule>& GetMaintenanceSchedules() const{ return m_maintenanceSchedules; }
86 
92  inline bool MaintenanceSchedulesHasBeenSet() const { return m_maintenanceSchedulesHasBeenSet; }
93 
99  inline void SetMaintenanceSchedules(const Aws::Vector<AutoTuneMaintenanceSchedule>& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = value; }
100 
106  inline void SetMaintenanceSchedules(Aws::Vector<AutoTuneMaintenanceSchedule>&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = std::move(value); }
107 
113  inline AutoTuneOptionsInput& WithMaintenanceSchedules(const Aws::Vector<AutoTuneMaintenanceSchedule>& value) { SetMaintenanceSchedules(value); return *this;}
114 
120  inline AutoTuneOptionsInput& WithMaintenanceSchedules(Aws::Vector<AutoTuneMaintenanceSchedule>&& value) { SetMaintenanceSchedules(std::move(value)); return *this;}
121 
127  inline AutoTuneOptionsInput& AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(value); return *this; }
128 
134  inline AutoTuneOptionsInput& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; }
135 
136  private:
137 
138  AutoTuneDesiredState m_desiredState;
139  bool m_desiredStateHasBeenSet;
140 
141  Aws::Vector<AutoTuneMaintenanceSchedule> m_maintenanceSchedules;
142  bool m_maintenanceSchedulesHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace ElasticsearchService
147 } // namespace Aws
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::SetMaintenanceSchedules
void SetMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
Definition: AutoTuneOptionsInput.h:99
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::WithMaintenanceSchedules
AutoTuneOptionsInput & WithMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
Definition: AutoTuneOptionsInput.h:113
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::AutoTuneOptionsInput
AutoTuneOptionsInput()
AutoTuneDesiredState.h
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::SetMaintenanceSchedules
void SetMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
Definition: AutoTuneOptionsInput.h:106
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::WithDesiredState
AutoTuneOptionsInput & WithDesiredState(const AutoTuneDesiredState &value)
Definition: AutoTuneOptionsInput.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::AutoTuneOptionsInput
AutoTuneOptionsInput(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::AddMaintenanceSchedules
AutoTuneOptionsInput & AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule &value)
Definition: AutoTuneOptionsInput.h:127
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::MaintenanceSchedulesHasBeenSet
bool MaintenanceSchedulesHasBeenSet() const
Definition: AutoTuneOptionsInput.h:92
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::SetDesiredState
void SetDesiredState(const AutoTuneDesiredState &value)
Definition: AutoTuneOptionsInput.h:59
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::AddMaintenanceSchedules
AutoTuneOptionsInput & AddMaintenanceSchedules(AutoTuneMaintenanceSchedule &&value)
Definition: AutoTuneOptionsInput.h:134
AutoTuneMaintenanceSchedule.h
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule
Definition: AutoTuneMaintenanceSchedule.h:37
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::WithDesiredState
AutoTuneOptionsInput & WithDesiredState(AutoTuneDesiredState &&value)
Definition: AutoTuneOptionsInput.h:77
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::WithMaintenanceSchedules
AutoTuneOptionsInput & WithMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
Definition: AutoTuneOptionsInput.h:120
Aws::ElasticsearchService::Model::AutoTuneDesiredState
AutoTuneDesiredState
Definition: AutoTuneDesiredState.h:17
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::GetMaintenanceSchedules
const Aws::Vector< AutoTuneMaintenanceSchedule > & GetMaintenanceSchedules() const
Definition: AutoTuneOptionsInput.h:85
Aws::ElasticsearchService::Model::AutoTuneOptionsInput
Definition: AutoTuneOptionsInput.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::DesiredStateHasBeenSet
bool DesiredStateHasBeenSet() const
Definition: AutoTuneOptionsInput.h:53
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::GetDesiredState
const AutoTuneDesiredState & GetDesiredState() const
Definition: AutoTuneOptionsInput.h:47
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::SetDesiredState
void SetDesiredState(AutoTuneDesiredState &&value)
Definition: AutoTuneOptionsInput.h:65
Aws::ElasticsearchService::Model::AutoTuneOptionsInput::operator=
AutoTuneOptionsInput & operator=(Aws::Utils::Json::JsonView jsonValue)