AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetUploadJobResult.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/model/UploadJobStatus.h>
10#include <aws/customer-profiles/model/StatusReason.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/customer-profiles/model/ResultsSummary.h>
14#include <aws/customer-profiles/model/ObjectTypeField.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace CustomerProfiles
30{
31namespace Model
32{
34 {
35 public:
36 AWS_CUSTOMERPROFILES_API GetUploadJobResult() = default;
39
40
42
45 inline const Aws::String& GetJobId() const { return m_jobId; }
46 template<typename JobIdT = Aws::String>
47 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
48 template<typename JobIdT = Aws::String>
49 GetUploadJobResult& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetDisplayName() const { return m_displayName; }
58 template<typename DisplayNameT = Aws::String>
59 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
60 template<typename DisplayNameT = Aws::String>
61 GetUploadJobResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
63
65
77 inline UploadJobStatus GetStatus() const { return m_status; }
78 inline void SetStatus(UploadJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
79 inline GetUploadJobResult& WithStatus(UploadJobStatus value) { SetStatus(value); return *this;}
81
83
89 inline StatusReason GetStatusReason() const { return m_statusReason; }
90 inline void SetStatusReason(StatusReason value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
91 inline GetUploadJobResult& WithStatusReason(StatusReason value) { SetStatusReason(value); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
99 template<typename CreatedAtT = Aws::Utils::DateTime>
100 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
101 template<typename CreatedAtT = Aws::Utils::DateTime>
102 GetUploadJobResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
110 template<typename CompletedAtT = Aws::Utils::DateTime>
111 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
112 template<typename CompletedAtT = Aws::Utils::DateTime>
113 GetUploadJobResult& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
115
117
121 inline const Aws::Map<Aws::String, ObjectTypeField>& GetFields() const { return m_fields; }
122 template<typename FieldsT = Aws::Map<Aws::String, ObjectTypeField>>
123 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
124 template<typename FieldsT = Aws::Map<Aws::String, ObjectTypeField>>
125 GetUploadJobResult& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
126 template<typename FieldsKeyT = Aws::String, typename FieldsValueT = ObjectTypeField>
127 GetUploadJobResult& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
128 m_fieldsHasBeenSet = true; m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value)); return *this;
129 }
131
133
136 inline const Aws::String& GetUniqueKey() const { return m_uniqueKey; }
137 template<typename UniqueKeyT = Aws::String>
138 void SetUniqueKey(UniqueKeyT&& value) { m_uniqueKeyHasBeenSet = true; m_uniqueKey = std::forward<UniqueKeyT>(value); }
139 template<typename UniqueKeyT = Aws::String>
140 GetUploadJobResult& WithUniqueKey(UniqueKeyT&& value) { SetUniqueKey(std::forward<UniqueKeyT>(value)); return *this;}
142
144
148 inline const ResultsSummary& GetResultsSummary() const { return m_resultsSummary; }
149 template<typename ResultsSummaryT = ResultsSummary>
150 void SetResultsSummary(ResultsSummaryT&& value) { m_resultsSummaryHasBeenSet = true; m_resultsSummary = std::forward<ResultsSummaryT>(value); }
151 template<typename ResultsSummaryT = ResultsSummary>
152 GetUploadJobResult& WithResultsSummary(ResultsSummaryT&& value) { SetResultsSummary(std::forward<ResultsSummaryT>(value)); return *this;}
154
156
159 inline int GetDataExpiry() const { return m_dataExpiry; }
160 inline void SetDataExpiry(int value) { m_dataExpiryHasBeenSet = true; m_dataExpiry = value; }
161 inline GetUploadJobResult& WithDataExpiry(int value) { SetDataExpiry(value); return *this;}
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template<typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
169 template<typename RequestIdT = Aws::String>
170 GetUploadJobResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
172 private:
173
174 Aws::String m_jobId;
175 bool m_jobIdHasBeenSet = false;
176
177 Aws::String m_displayName;
178 bool m_displayNameHasBeenSet = false;
179
181 bool m_statusHasBeenSet = false;
182
183 StatusReason m_statusReason{StatusReason::NOT_SET};
184 bool m_statusReasonHasBeenSet = false;
185
186 Aws::Utils::DateTime m_createdAt{};
187 bool m_createdAtHasBeenSet = false;
188
189 Aws::Utils::DateTime m_completedAt{};
190 bool m_completedAtHasBeenSet = false;
191
193 bool m_fieldsHasBeenSet = false;
194
195 Aws::String m_uniqueKey;
196 bool m_uniqueKeyHasBeenSet = false;
197
198 ResultsSummary m_resultsSummary;
199 bool m_resultsSummaryHasBeenSet = false;
200
201 int m_dataExpiry{0};
202 bool m_dataExpiryHasBeenSet = false;
203
204 Aws::String m_requestId;
205 bool m_requestIdHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace CustomerProfiles
210} // namespace Aws
GetUploadJobResult & WithRequestId(RequestIdT &&value)
AWS_CUSTOMERPROFILES_API GetUploadJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUploadJobResult & WithDisplayName(DisplayNameT &&value)
GetUploadJobResult & WithJobId(JobIdT &&value)
GetUploadJobResult & WithStatus(UploadJobStatus value)
GetUploadJobResult & WithFields(FieldsT &&value)
AWS_CUSTOMERPROFILES_API GetUploadJobResult()=default
GetUploadJobResult & WithUniqueKey(UniqueKeyT &&value)
AWS_CUSTOMERPROFILES_API GetUploadJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, ObjectTypeField > & GetFields() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetUploadJobResult & WithStatusReason(StatusReason value)
GetUploadJobResult & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
GetUploadJobResult & WithCompletedAt(CompletedAtT &&value)
GetUploadJobResult & WithCreatedAt(CreatedAtT &&value)
GetUploadJobResult & WithResultsSummary(ResultsSummaryT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue