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/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/AutoTuneDesiredState.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/es/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 ElasticsearchService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsInput();
38 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsInput(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsInput& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
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
62 inline const Aws::Vector<AutoTuneMaintenanceSchedule>& GetMaintenanceSchedules() const{ return m_maintenanceSchedules; }
63 inline bool MaintenanceSchedulesHasBeenSet() const { return m_maintenanceSchedulesHasBeenSet; }
64 inline void SetMaintenanceSchedules(const Aws::Vector<AutoTuneMaintenanceSchedule>& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = value; }
65 inline void SetMaintenanceSchedules(Aws::Vector<AutoTuneMaintenanceSchedule>&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = std::move(value); }
68 inline AutoTuneOptionsInput& AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(value); return *this; }
69 inline AutoTuneOptionsInput& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; }
71 private:
72
73 AutoTuneDesiredState m_desiredState;
74 bool m_desiredStateHasBeenSet = false;
75
76 Aws::Vector<AutoTuneMaintenanceSchedule> m_maintenanceSchedules;
77 bool m_maintenanceSchedulesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ElasticsearchService
82} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AutoTuneOptionsInput & WithDesiredState(const AutoTuneDesiredState &value)
void SetMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsInput(Aws::Utils::Json::JsonView jsonValue)
AutoTuneOptionsInput & WithDesiredState(AutoTuneDesiredState &&value)
AutoTuneOptionsInput & WithMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
void SetMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
AutoTuneOptionsInput & AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule &value)
AutoTuneOptionsInput & WithMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
AutoTuneOptionsInput & AddMaintenanceSchedules(AutoTuneMaintenanceSchedule &&value)
const Aws::Vector< AutoTuneMaintenanceSchedule > & GetMaintenanceSchedules() const
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsInput()
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsInput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDesiredState(const AutoTuneDesiredState &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue