AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScheduledAutoTuneDetails.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/opensearch/model/ScheduledAutoTuneActionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/opensearch/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 OpenSearchService
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails() = default;
41 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API ScheduledAutoTuneDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_OPENSEARCHSERVICE_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
62 inline ScheduledAutoTuneActionType GetActionType() const { return m_actionType; }
63 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
64 inline void SetActionType(ScheduledAutoTuneActionType value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
67
69
72 inline const Aws::String& GetAction() const { return m_action; }
73 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
74 template<typename ActionT = Aws::String>
75 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
76 template<typename ActionT = Aws::String>
77 ScheduledAutoTuneDetails& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
79
81
85 inline ScheduledAutoTuneSeverityType GetSeverity() const { return m_severity; }
86 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
87 inline void SetSeverity(ScheduledAutoTuneSeverityType value) { m_severityHasBeenSet = true; m_severity = value; }
90 private:
91
92 Aws::Utils::DateTime m_date{};
93 bool m_dateHasBeenSet = false;
94
96 bool m_actionTypeHasBeenSet = false;
97
98 Aws::String m_action;
99 bool m_actionHasBeenSet = false;
100
102 bool m_severityHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace OpenSearchService
107} // 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