AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
53 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
54 inline ScheduledAutoTuneDetails& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
55 inline ScheduledAutoTuneDetails& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
57
59
63 inline const ScheduledAutoTuneActionType& GetActionType() const{ return m_actionType; }
64 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
65 inline void SetActionType(const ScheduledAutoTuneActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
66 inline void SetActionType(ScheduledAutoTuneActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
68 inline ScheduledAutoTuneDetails& WithActionType(ScheduledAutoTuneActionType&& value) { SetActionType(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetAction() const{ return m_action; }
76 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
77 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
78 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
79 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
80 inline ScheduledAutoTuneDetails& WithAction(const Aws::String& value) { SetAction(value); return *this;}
81 inline ScheduledAutoTuneDetails& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
82 inline ScheduledAutoTuneDetails& WithAction(const char* value) { SetAction(value); return *this;}
84
86
90 inline const ScheduledAutoTuneSeverityType& GetSeverity() const{ return m_severity; }
91 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
92 inline void SetSeverity(const ScheduledAutoTuneSeverityType& value) { m_severityHasBeenSet = true; m_severity = value; }
93 inline void SetSeverity(ScheduledAutoTuneSeverityType&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
95 inline ScheduledAutoTuneDetails& WithSeverity(ScheduledAutoTuneSeverityType&& value) { SetSeverity(std::move(value)); return *this;}
97 private:
98
100 bool m_dateHasBeenSet = false;
101
102 ScheduledAutoTuneActionType m_actionType;
103 bool m_actionTypeHasBeenSet = false;
104
105 Aws::String m_action;
106 bool m_actionHasBeenSet = false;
107
109 bool m_severityHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ElasticsearchService
114} // namespace Aws
const ScheduledAutoTuneSeverityType & GetSeverity() const
void SetSeverity(const ScheduledAutoTuneSeverityType &value)
ScheduledAutoTuneDetails & WithActionType(ScheduledAutoTuneActionType &&value)
ScheduledAutoTuneDetails & WithDate(Aws::Utils::DateTime &&value)
AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails(Aws::Utils::Json::JsonView jsonValue)
ScheduledAutoTuneDetails & WithAction(Aws::String &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledAutoTuneDetails & WithActionType(const ScheduledAutoTuneActionType &value)
ScheduledAutoTuneDetails & WithSeverity(const ScheduledAutoTuneSeverityType &value)
AWS_ELASTICSEARCHSERVICE_API ScheduledAutoTuneDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActionType(const ScheduledAutoTuneActionType &value)
ScheduledAutoTuneDetails & WithAction(const char *value)
ScheduledAutoTuneDetails & WithAction(const Aws::String &value)
ScheduledAutoTuneDetails & WithDate(const Aws::Utils::DateTime &value)
ScheduledAutoTuneDetails & WithSeverity(ScheduledAutoTuneSeverityType &&value)
const ScheduledAutoTuneActionType & GetActionType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue