AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DomainMaintenanceDetails.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/model/MaintenanceType.h>
10#include <aws/opensearch/model/MaintenanceStatus.h>
11#include <aws/core/utils/DateTime.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
35 {
36 public:
37 AWS_OPENSEARCHSERVICE_API DomainMaintenanceDetails();
38 AWS_OPENSEARCHSERVICE_API DomainMaintenanceDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API DomainMaintenanceDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMaintenanceId() const{ return m_maintenanceId; }
48 inline bool MaintenanceIdHasBeenSet() const { return m_maintenanceIdHasBeenSet; }
49 inline void SetMaintenanceId(const Aws::String& value) { m_maintenanceIdHasBeenSet = true; m_maintenanceId = value; }
50 inline void SetMaintenanceId(Aws::String&& value) { m_maintenanceIdHasBeenSet = true; m_maintenanceId = std::move(value); }
51 inline void SetMaintenanceId(const char* value) { m_maintenanceIdHasBeenSet = true; m_maintenanceId.assign(value); }
52 inline DomainMaintenanceDetails& WithMaintenanceId(const Aws::String& value) { SetMaintenanceId(value); return *this;}
53 inline DomainMaintenanceDetails& WithMaintenanceId(Aws::String&& value) { SetMaintenanceId(std::move(value)); return *this;}
54 inline DomainMaintenanceDetails& WithMaintenanceId(const char* value) { SetMaintenanceId(value); return *this;}
56
58
61 inline const Aws::String& GetDomainName() const{ return m_domainName; }
62 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
63 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
64 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
65 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
66 inline DomainMaintenanceDetails& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
67 inline DomainMaintenanceDetails& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
68 inline DomainMaintenanceDetails& WithDomainName(const char* value) { SetDomainName(value); return *this;}
70
72
75 inline const MaintenanceType& GetAction() const{ return m_action; }
76 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
77 inline void SetAction(const MaintenanceType& value) { m_actionHasBeenSet = true; m_action = value; }
78 inline void SetAction(MaintenanceType&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
79 inline DomainMaintenanceDetails& WithAction(const MaintenanceType& value) { SetAction(value); return *this;}
80 inline DomainMaintenanceDetails& WithAction(MaintenanceType&& value) { SetAction(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetNodeId() const{ return m_nodeId; }
88 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
89 inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; }
90 inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); }
91 inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); }
92 inline DomainMaintenanceDetails& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
93 inline DomainMaintenanceDetails& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
94 inline DomainMaintenanceDetails& WithNodeId(const char* value) { SetNodeId(value); return *this;}
96
98
101 inline const MaintenanceStatus& GetStatus() const{ return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(const MaintenanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
104 inline void SetStatus(MaintenanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
105 inline DomainMaintenanceDetails& WithStatus(const MaintenanceStatus& value) { SetStatus(value); return *this;}
106 inline DomainMaintenanceDetails& WithStatus(MaintenanceStatus&& value) { SetStatus(std::move(value)); return *this;}
108
110
113 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
114 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
115 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
116 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
117 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
118 inline DomainMaintenanceDetails& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
119 inline DomainMaintenanceDetails& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
120 inline DomainMaintenanceDetails& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
128 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
129 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
130 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
131 inline DomainMaintenanceDetails& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
132 inline DomainMaintenanceDetails& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
140 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
141 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
142 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
143 inline DomainMaintenanceDetails& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
144 inline DomainMaintenanceDetails& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
146 private:
147
148 Aws::String m_maintenanceId;
149 bool m_maintenanceIdHasBeenSet = false;
150
151 Aws::String m_domainName;
152 bool m_domainNameHasBeenSet = false;
153
154 MaintenanceType m_action;
155 bool m_actionHasBeenSet = false;
156
157 Aws::String m_nodeId;
158 bool m_nodeIdHasBeenSet = false;
159
160 MaintenanceStatus m_status;
161 bool m_statusHasBeenSet = false;
162
163 Aws::String m_statusMessage;
164 bool m_statusMessageHasBeenSet = false;
165
166 Aws::Utils::DateTime m_createdAt;
167 bool m_createdAtHasBeenSet = false;
168
169 Aws::Utils::DateTime m_updatedAt;
170 bool m_updatedAtHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace OpenSearchService
175} // namespace Aws
DomainMaintenanceDetails & WithCreatedAt(const Aws::Utils::DateTime &value)
DomainMaintenanceDetails & WithMaintenanceId(Aws::String &&value)
DomainMaintenanceDetails & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_OPENSEARCHSERVICE_API DomainMaintenanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainMaintenanceDetails & WithMaintenanceId(const char *value)
DomainMaintenanceDetails & WithCreatedAt(Aws::Utils::DateTime &&value)
DomainMaintenanceDetails & WithStatus(MaintenanceStatus &&value)
DomainMaintenanceDetails & WithDomainName(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API DomainMaintenanceDetails(Aws::Utils::Json::JsonView jsonValue)
DomainMaintenanceDetails & WithMaintenanceId(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DomainMaintenanceDetails & WithAction(MaintenanceType &&value)
DomainMaintenanceDetails & WithStatusMessage(const char *value)
DomainMaintenanceDetails & WithDomainName(Aws::String &&value)
DomainMaintenanceDetails & WithNodeId(const char *value)
DomainMaintenanceDetails & WithStatusMessage(Aws::String &&value)
DomainMaintenanceDetails & WithStatusMessage(const Aws::String &value)
DomainMaintenanceDetails & WithDomainName(const char *value)
DomainMaintenanceDetails & WithAction(const MaintenanceType &value)
DomainMaintenanceDetails & WithNodeId(Aws::String &&value)
DomainMaintenanceDetails & WithUpdatedAt(const Aws::Utils::DateTime &value)
DomainMaintenanceDetails & WithNodeId(const Aws::String &value)
DomainMaintenanceDetails & WithStatus(const MaintenanceStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue