AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ScheduledAutoTuneDetails.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/es/model/ScheduledAutoTuneActionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/es/model/ScheduledAutoTuneSeverityType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ElasticsearchService
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails() = default;
41 AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
51 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
52 template<typename DateT = Aws::Utils::DateTime>
53 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
54 template<typename DateT = Aws::Utils::DateTime>
55 ScheduledAutoTuneDetails& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
57
59
63 inline ScheduledAutoTuneActionType GetActionType() const { return m_actionType; }
64 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
65 inline void SetActionType(ScheduledAutoTuneActionType value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
68
70
73 inline const Aws::String& GetAction() const { return m_action; }
74 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
75 template<typename ActionT = Aws::String>
76 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
77 template<typename ActionT = Aws::String>
78 ScheduledAutoTuneDetails& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
80
82
86 inline ScheduledAutoTuneSeverityType GetSeverity() const { return m_severity; }
87 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
88 inline void SetSeverity(ScheduledAutoTuneSeverityType value) { m_severityHasBeenSet = true; m_severity = value; }
91 private:
92
93 Aws::Utils::DateTime m_date{};
94 bool m_dateHasBeenSet = false;
95
97 bool m_actionTypeHasBeenSet = false;
98
99 Aws::String m_action;
100 bool m_actionHasBeenSet = false;
101
103 bool m_severityHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace ElasticsearchService
108} // namespace Aws
ScheduledAutoTuneDetails & WithSeverity(ScheduledAutoTuneSeverityType value)
AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails()=default
AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledAutoTuneDetails & WithActionType(ScheduledAutoTuneActionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue