AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/ScheduledAutoTuneActionType.h>
11#include <aws/opensearch/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 OpenSearchService {
23namespace Model {
24
34 public:
35 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails() = default;
36 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_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
62 inline ScheduledAutoTuneActionType GetActionType() const { return m_actionType; }
63 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
65 m_actionTypeHasBeenSet = true;
66 m_actionType = value;
67 }
69 SetActionType(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAction() const { return m_action; }
79 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
80 template <typename ActionT = Aws::String>
81 void SetAction(ActionT&& value) {
82 m_actionHasBeenSet = true;
83 m_action = std::forward<ActionT>(value);
84 }
85 template <typename ActionT = Aws::String>
87 SetAction(std::forward<ActionT>(value));
88 return *this;
89 }
91
93
97 inline ScheduledAutoTuneSeverityType GetSeverity() const { return m_severity; }
98 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
100 m_severityHasBeenSet = true;
101 m_severity = value;
102 }
104 SetSeverity(value);
105 return *this;
106 }
108 private:
109 Aws::Utils::DateTime m_date{};
110
112
113 Aws::String m_action;
114
116 bool m_dateHasBeenSet = false;
117 bool m_actionTypeHasBeenSet = false;
118 bool m_actionHasBeenSet = false;
119 bool m_severityHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace OpenSearchService
124} // namespace Aws
AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails()=default
ScheduledAutoTuneDetails & WithActionType(ScheduledAutoTuneActionType value)
ScheduledAutoTuneDetails & WithAction(ActionT &&value)
ScheduledAutoTuneDetails & WithSeverity(ScheduledAutoTuneSeverityType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue