AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TableStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSAllocator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/ErrorDetail.h>
12#include <aws/glue/model/ResourceAction.h>
13#include <aws/glue/model/ResourceState.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
26class StatusDetails;
27
35 public:
36 AWS_GLUE_API TableStatus() = default;
37 AWS_GLUE_API TableStatus(Aws::Utils::Json::JsonView jsonValue);
40
42
45 inline const Aws::String& GetRequestedBy() const { return m_requestedBy; }
46 inline bool RequestedByHasBeenSet() const { return m_requestedByHasBeenSet; }
47 template <typename RequestedByT = Aws::String>
48 void SetRequestedBy(RequestedByT&& value) {
49 m_requestedByHasBeenSet = true;
50 m_requestedBy = std::forward<RequestedByT>(value);
51 }
52 template <typename RequestedByT = Aws::String>
53 TableStatus& WithRequestedBy(RequestedByT&& value) {
54 SetRequestedBy(std::forward<RequestedByT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
65 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
66 template <typename UpdatedByT = Aws::String>
67 void SetUpdatedBy(UpdatedByT&& value) {
68 m_updatedByHasBeenSet = true;
69 m_updatedBy = std::forward<UpdatedByT>(value);
70 }
71 template <typename UpdatedByT = Aws::String>
72 TableStatus& WithUpdatedBy(UpdatedByT&& value) {
73 SetUpdatedBy(std::forward<UpdatedByT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Utils::DateTime& GetRequestTime() const { return m_requestTime; }
84 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
85 template <typename RequestTimeT = Aws::Utils::DateTime>
86 void SetRequestTime(RequestTimeT&& value) {
87 m_requestTimeHasBeenSet = true;
88 m_requestTime = std::forward<RequestTimeT>(value);
89 }
90 template <typename RequestTimeT = Aws::Utils::DateTime>
91 TableStatus& WithRequestTime(RequestTimeT&& value) {
92 SetRequestTime(std::forward<RequestTimeT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
103 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
104 template <typename UpdateTimeT = Aws::Utils::DateTime>
105 void SetUpdateTime(UpdateTimeT&& value) {
106 m_updateTimeHasBeenSet = true;
107 m_updateTime = std::forward<UpdateTimeT>(value);
108 }
109 template <typename UpdateTimeT = Aws::Utils::DateTime>
110 TableStatus& WithUpdateTime(UpdateTimeT&& value) {
111 SetUpdateTime(std::forward<UpdateTimeT>(value));
112 return *this;
113 }
115
117
121 inline ResourceAction GetAction() const { return m_action; }
122 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
123 inline void SetAction(ResourceAction value) {
124 m_actionHasBeenSet = true;
125 m_action = value;
126 }
128 SetAction(value);
129 return *this;
130 }
132
134
138 inline ResourceState GetState() const { return m_state; }
139 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
140 inline void SetState(ResourceState value) {
141 m_stateHasBeenSet = true;
142 m_state = value;
143 }
145 SetState(value);
146 return *this;
147 }
149
151
156 inline const ErrorDetail& GetError() const { return m_error; }
157 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
158 template <typename ErrorT = ErrorDetail>
159 void SetError(ErrorT&& value) {
160 m_errorHasBeenSet = true;
161 m_error = std::forward<ErrorT>(value);
162 }
163 template <typename ErrorT = ErrorDetail>
164 TableStatus& WithError(ErrorT&& value) {
165 SetError(std::forward<ErrorT>(value));
166 return *this;
167 }
169
171
175 inline const StatusDetails& GetDetails() const { return *m_details; }
176 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
177 template <typename DetailsT = StatusDetails>
178 void SetDetails(DetailsT&& value) {
179 m_detailsHasBeenSet = true;
180 m_details = Aws::MakeShared<StatusDetails>("TableStatus", std::forward<DetailsT>(value));
181 }
182 template <typename DetailsT = StatusDetails>
183 TableStatus& WithDetails(DetailsT&& value) {
184 SetDetails(std::forward<DetailsT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_requestedBy;
190
191 Aws::String m_updatedBy;
192
193 Aws::Utils::DateTime m_requestTime{};
194
195 Aws::Utils::DateTime m_updateTime{};
196
198
200
201 ErrorDetail m_error;
202
203 std::shared_ptr<StatusDetails> m_details;
204 bool m_requestedByHasBeenSet = false;
205 bool m_updatedByHasBeenSet = false;
206 bool m_requestTimeHasBeenSet = false;
207 bool m_updateTimeHasBeenSet = false;
208 bool m_actionHasBeenSet = false;
209 bool m_stateHasBeenSet = false;
210 bool m_errorHasBeenSet = false;
211 bool m_detailsHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace Glue
216} // namespace Aws
const Aws::String & GetRequestedBy() const
Definition TableStatus.h:45
void SetError(ErrorT &&value)
void SetUpdateTime(UpdateTimeT &&value)
ResourceState GetState() const
TableStatus & WithRequestedBy(RequestedByT &&value)
Definition TableStatus.h:53
void SetUpdatedBy(UpdatedByT &&value)
Definition TableStatus.h:67
const Aws::Utils::DateTime & GetUpdateTime() const
const Aws::Utils::DateTime & GetRequestTime() const
Definition TableStatus.h:83
void SetDetails(DetailsT &&value)
void SetState(ResourceState value)
void SetRequestedBy(RequestedByT &&value)
Definition TableStatus.h:48
AWS_GLUE_API TableStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API TableStatus()=default
AWS_GLUE_API TableStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
TableStatus & WithState(ResourceState value)
TableStatus & WithUpdatedBy(UpdatedByT &&value)
Definition TableStatus.h:72
TableStatus & WithRequestTime(RequestTimeT &&value)
Definition TableStatus.h:91
TableStatus & WithError(ErrorT &&value)
void SetRequestTime(RequestTimeT &&value)
Definition TableStatus.h:86
const Aws::String & GetUpdatedBy() const
Definition TableStatus.h:64
ResourceAction GetAction() const
TableStatus & WithUpdateTime(UpdateTimeT &&value)
TableStatus & WithDetails(DetailsT &&value)
const StatusDetails & GetDetails() const
TableStatus & WithAction(ResourceAction value)
void SetAction(ResourceAction value)
const ErrorDetail & GetError() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue