AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
ScheduledAutoTuneDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/es/ElasticsearchService_EXPORTS.h>
10#include <aws/es/model/ScheduledAutoTuneActionType.h>
11#include <aws/es/model/ScheduledAutoTuneSeverityType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ElasticsearchService {
23namespace Model {
24
34 public:
35 AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails() = default;
36 AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
45 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
46 template <typename DateT = Aws::Utils::DateTime>
47 void SetDate(DateT&& value) {
48 m_dateHasBeenSet = true;
49 m_date = std::forward<DateT>(value);
50 }
51 template <typename DateT = Aws::Utils::DateTime>
53 SetDate(std::forward<DateT>(value));
54 return *this;
55 }
57
59
63 inline ScheduledAutoTuneActionType GetActionType() const { return m_actionType; }
64 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
66 m_actionTypeHasBeenSet = true;
67 m_actionType = value;
68 }
70 SetActionType(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAction() const { return m_action; }
80 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
81 template <typename ActionT = Aws::String>
82 void SetAction(ActionT&& value) {
83 m_actionHasBeenSet = true;
84 m_action = std::forward<ActionT>(value);
85 }
86 template <typename ActionT = Aws::String>
88 SetAction(std::forward<ActionT>(value));
89 return *this;
90 }
92
94
98 inline ScheduledAutoTuneSeverityType GetSeverity() const { return m_severity; }
99 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
101 m_severityHasBeenSet = true;
102 m_severity = value;
103 }
105 SetSeverity(value);
106 return *this;
107 }
109 private:
110 Aws::Utils::DateTime m_date{};
111
113
114 Aws::String m_action;
115
117 bool m_dateHasBeenSet = false;
118 bool m_actionTypeHasBeenSet = false;
119 bool m_actionHasBeenSet = false;
120 bool m_severityHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace ElasticsearchService
125} // 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