AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateParallelDataResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/translate/Translate_EXPORTS.h>
11#include <aws/translate/model/ParallelDataStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Translate {
25namespace Model {
27 public:
28 AWS_TRANSLATE_API UpdateParallelDataResult() = default;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 template <typename NameT = Aws::String>
38 void SetName(NameT&& value) {
39 m_nameHasBeenSet = true;
40 m_name = std::forward<NameT>(value);
41 }
42 template <typename NameT = Aws::String>
44 SetName(std::forward<NameT>(value));
45 return *this;
46 }
48
50
55 inline ParallelDataStatus GetStatus() const { return m_status; }
56 inline void SetStatus(ParallelDataStatus value) {
57 m_statusHasBeenSet = true;
58 m_status = value;
59 }
61 SetStatus(value);
62 return *this;
63 }
65
67
71 inline ParallelDataStatus GetLatestUpdateAttemptStatus() const { return m_latestUpdateAttemptStatus; }
73 m_latestUpdateAttemptStatusHasBeenSet = true;
74 m_latestUpdateAttemptStatus = value;
75 }
78 return *this;
79 }
81
83
86 inline const Aws::Utils::DateTime& GetLatestUpdateAttemptAt() const { return m_latestUpdateAttemptAt; }
87 template <typename LatestUpdateAttemptAtT = Aws::Utils::DateTime>
88 void SetLatestUpdateAttemptAt(LatestUpdateAttemptAtT&& value) {
89 m_latestUpdateAttemptAtHasBeenSet = true;
90 m_latestUpdateAttemptAt = std::forward<LatestUpdateAttemptAtT>(value);
91 }
92 template <typename LatestUpdateAttemptAtT = Aws::Utils::DateTime>
93 UpdateParallelDataResult& WithLatestUpdateAttemptAt(LatestUpdateAttemptAtT&& value) {
94 SetLatestUpdateAttemptAt(std::forward<LatestUpdateAttemptAtT>(value));
95 return *this;
96 }
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template <typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) {
104 m_requestIdHasBeenSet = true;
105 m_requestId = std::forward<RequestIdT>(value);
106 }
107 template <typename RequestIdT = Aws::String>
109 SetRequestId(std::forward<RequestIdT>(value));
110 return *this;
111 }
113 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
114
115 private:
116 Aws::String m_name;
117
119
120 ParallelDataStatus m_latestUpdateAttemptStatus{ParallelDataStatus::NOT_SET};
121
122 Aws::Utils::DateTime m_latestUpdateAttemptAt{};
123
124 Aws::String m_requestId;
125 Aws::Http::HttpResponseCode m_HttpResponseCode;
126 bool m_nameHasBeenSet = false;
127 bool m_statusHasBeenSet = false;
128 bool m_latestUpdateAttemptStatusHasBeenSet = false;
129 bool m_latestUpdateAttemptAtHasBeenSet = false;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Translate
135} // namespace Aws
const Aws::Utils::DateTime & GetLatestUpdateAttemptAt() const
UpdateParallelDataResult & WithName(NameT &&value)
AWS_TRANSLATE_API UpdateParallelDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateParallelDataResult & WithStatus(ParallelDataStatus value)
UpdateParallelDataResult & WithLatestUpdateAttemptStatus(ParallelDataStatus value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_TRANSLATE_API UpdateParallelDataResult()=default
AWS_TRANSLATE_API UpdateParallelDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateParallelDataResult & WithLatestUpdateAttemptAt(LatestUpdateAttemptAtT &&value)
void SetLatestUpdateAttemptAt(LatestUpdateAttemptAtT &&value)
UpdateParallelDataResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue