AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TableStatus.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/glue/model/ResourceAction.h>
11#include <aws/glue/model/ResourceState.h>
12#include <aws/glue/model/ErrorDetail.h>
13#include <aws/core/utils/memory/stl/AWSAllocator.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue
27{
28namespace Model
29{
30 class StatusDetails;
31
39 {
40 public:
41 AWS_GLUE_API TableStatus() = default;
42 AWS_GLUE_API TableStatus(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetRequestedBy() const { return m_requestedBy; }
52 inline bool RequestedByHasBeenSet() const { return m_requestedByHasBeenSet; }
53 template<typename RequestedByT = Aws::String>
54 void SetRequestedBy(RequestedByT&& value) { m_requestedByHasBeenSet = true; m_requestedBy = std::forward<RequestedByT>(value); }
55 template<typename RequestedByT = Aws::String>
56 TableStatus& WithRequestedBy(RequestedByT&& value) { SetRequestedBy(std::forward<RequestedByT>(value)); return *this;}
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) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
68 template<typename UpdatedByT = Aws::String>
69 TableStatus& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
71
73
77 inline const Aws::Utils::DateTime& GetRequestTime() const { return m_requestTime; }
78 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
79 template<typename RequestTimeT = Aws::Utils::DateTime>
80 void SetRequestTime(RequestTimeT&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::forward<RequestTimeT>(value); }
81 template<typename RequestTimeT = Aws::Utils::DateTime>
82 TableStatus& WithRequestTime(RequestTimeT&& value) { SetRequestTime(std::forward<RequestTimeT>(value)); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
91 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
92 template<typename UpdateTimeT = Aws::Utils::DateTime>
93 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
94 template<typename UpdateTimeT = Aws::Utils::DateTime>
95 TableStatus& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
97
99
103 inline ResourceAction GetAction() const { return m_action; }
104 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
105 inline void SetAction(ResourceAction value) { m_actionHasBeenSet = true; m_action = value; }
106 inline TableStatus& WithAction(ResourceAction value) { SetAction(value); return *this;}
108
110
114 inline ResourceState GetState() const { return m_state; }
115 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
116 inline void SetState(ResourceState value) { m_stateHasBeenSet = true; m_state = value; }
117 inline TableStatus& WithState(ResourceState value) { SetState(value); return *this;}
119
121
126 inline const ErrorDetail& GetError() const { return m_error; }
127 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
128 template<typename ErrorT = ErrorDetail>
129 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
130 template<typename ErrorT = ErrorDetail>
131 TableStatus& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
133
135
139 inline const StatusDetails& GetDetails() const{
140 return *m_details;
141 }
142 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
143 template<typename DetailsT = StatusDetails>
144 void SetDetails(DetailsT&& value) {
145 m_detailsHasBeenSet = true;
146 m_details = Aws::MakeShared<StatusDetails>("TableStatus", std::forward<DetailsT>(value));
147 }
148 template<typename DetailsT = StatusDetails>
149 TableStatus& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
151 private:
152
153 Aws::String m_requestedBy;
154 bool m_requestedByHasBeenSet = false;
155
156 Aws::String m_updatedBy;
157 bool m_updatedByHasBeenSet = false;
158
159 Aws::Utils::DateTime m_requestTime{};
160 bool m_requestTimeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_updateTime{};
163 bool m_updateTimeHasBeenSet = false;
164
166 bool m_actionHasBeenSet = false;
167
169 bool m_stateHasBeenSet = false;
170
171 ErrorDetail m_error;
172 bool m_errorHasBeenSet = false;
173
174 std::shared_ptr<StatusDetails> m_details;
175 bool m_detailsHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace Glue
180} // namespace Aws
const Aws::String & GetRequestedBy() const
Definition TableStatus.h:51
void SetError(ErrorT &&value)
void SetUpdateTime(UpdateTimeT &&value)
Definition TableStatus.h:93
ResourceState GetState() const
TableStatus & WithRequestedBy(RequestedByT &&value)
Definition TableStatus.h:56
void SetUpdatedBy(UpdatedByT &&value)
Definition TableStatus.h:67
const Aws::Utils::DateTime & GetUpdateTime() const
Definition TableStatus.h:90
const Aws::Utils::DateTime & GetRequestTime() const
Definition TableStatus.h:77
void SetDetails(DetailsT &&value)
void SetState(ResourceState value)
void SetRequestedBy(RequestedByT &&value)
Definition TableStatus.h:54
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:69
TableStatus & WithRequestTime(RequestTimeT &&value)
Definition TableStatus.h:82
TableStatus & WithError(ErrorT &&value)
void SetRequestTime(RequestTimeT &&value)
Definition TableStatus.h:80
const Aws::String & GetUpdatedBy() const
Definition TableStatus.h:64
ResourceAction GetAction() const
TableStatus & WithUpdateTime(UpdateTimeT &&value)
Definition TableStatus.h:95
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