AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateParallelDataResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/translate/Translate_EXPORTS.h>
10#include <aws/translate/model/ParallelDataStatus.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Translate {
24namespace Model {
26 public:
27 AWS_TRANSLATE_API UpdateParallelDataResult() = default;
30
32
35 inline const Aws::String& GetName() const { return m_name; }
36 template <typename NameT = Aws::String>
37 void SetName(NameT&& value) {
38 m_nameHasBeenSet = true;
39 m_name = std::forward<NameT>(value);
40 }
41 template <typename NameT = Aws::String>
43 SetName(std::forward<NameT>(value));
44 return *this;
45 }
47
49
54 inline ParallelDataStatus GetStatus() const { return m_status; }
55 inline void SetStatus(ParallelDataStatus value) {
56 m_statusHasBeenSet = true;
57 m_status = value;
58 }
60 SetStatus(value);
61 return *this;
62 }
64
66
70 inline ParallelDataStatus GetLatestUpdateAttemptStatus() const { return m_latestUpdateAttemptStatus; }
72 m_latestUpdateAttemptStatusHasBeenSet = true;
73 m_latestUpdateAttemptStatus = value;
74 }
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetLatestUpdateAttemptAt() const { return m_latestUpdateAttemptAt; }
86 template <typename LatestUpdateAttemptAtT = Aws::Utils::DateTime>
87 void SetLatestUpdateAttemptAt(LatestUpdateAttemptAtT&& value) {
88 m_latestUpdateAttemptAtHasBeenSet = true;
89 m_latestUpdateAttemptAt = std::forward<LatestUpdateAttemptAtT>(value);
90 }
91 template <typename LatestUpdateAttemptAtT = Aws::Utils::DateTime>
92 UpdateParallelDataResult& WithLatestUpdateAttemptAt(LatestUpdateAttemptAtT&& value) {
93 SetLatestUpdateAttemptAt(std::forward<LatestUpdateAttemptAtT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_name;
114
116
117 ParallelDataStatus m_latestUpdateAttemptStatus{ParallelDataStatus::NOT_SET};
118
119 Aws::Utils::DateTime m_latestUpdateAttemptAt{};
120
121 Aws::String m_requestId;
122 bool m_nameHasBeenSet = false;
123 bool m_statusHasBeenSet = false;
124 bool m_latestUpdateAttemptStatusHasBeenSet = false;
125 bool m_latestUpdateAttemptAtHasBeenSet = false;
126 bool m_requestIdHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Translate
131} // 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_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