AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
UploadJobItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/StatusReason.h>
11#include <aws/customer-profiles/model/UploadJobStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CustomerProfiles {
23namespace Model {
24
32 public:
33 AWS_CUSTOMERPROFILES_API UploadJobItem() = default;
34 AWS_CUSTOMERPROFILES_API UploadJobItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API UploadJobItem& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetJobId() const { return m_jobId; }
43 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
44 template <typename JobIdT = Aws::String>
45 void SetJobId(JobIdT&& value) {
46 m_jobIdHasBeenSet = true;
47 m_jobId = std::forward<JobIdT>(value);
48 }
49 template <typename JobIdT = Aws::String>
50 UploadJobItem& WithJobId(JobIdT&& value) {
51 SetJobId(std::forward<JobIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDisplayName() const { return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 template <typename DisplayNameT = Aws::String>
63 void SetDisplayName(DisplayNameT&& value) {
64 m_displayNameHasBeenSet = true;
65 m_displayName = std::forward<DisplayNameT>(value);
66 }
67 template <typename DisplayNameT = Aws::String>
68 UploadJobItem& WithDisplayName(DisplayNameT&& value) {
69 SetDisplayName(std::forward<DisplayNameT>(value));
70 return *this;
71 }
73
75
78 inline UploadJobStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(UploadJobStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
94 inline StatusReason GetStatusReason() const { return m_statusReason; }
95 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
96 inline void SetStatusReason(StatusReason value) {
97 m_statusReasonHasBeenSet = true;
98 m_statusReason = value;
99 }
101 SetStatusReason(value);
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) {
114 m_createdAtHasBeenSet = true;
115 m_createdAt = std::forward<CreatedAtT>(value);
116 }
117 template <typename CreatedAtT = Aws::Utils::DateTime>
118 UploadJobItem& WithCreatedAt(CreatedAtT&& value) {
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
129 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
130 template <typename CompletedAtT = Aws::Utils::DateTime>
131 void SetCompletedAt(CompletedAtT&& value) {
132 m_completedAtHasBeenSet = true;
133 m_completedAt = std::forward<CompletedAtT>(value);
134 }
135 template <typename CompletedAtT = Aws::Utils::DateTime>
136 UploadJobItem& WithCompletedAt(CompletedAtT&& value) {
137 SetCompletedAt(std::forward<CompletedAtT>(value));
138 return *this;
139 }
141
143
146 inline int GetDataExpiry() const { return m_dataExpiry; }
147 inline bool DataExpiryHasBeenSet() const { return m_dataExpiryHasBeenSet; }
148 inline void SetDataExpiry(int value) {
149 m_dataExpiryHasBeenSet = true;
150 m_dataExpiry = value;
151 }
152 inline UploadJobItem& WithDataExpiry(int value) {
153 SetDataExpiry(value);
154 return *this;
155 }
157 private:
158 Aws::String m_jobId;
159
160 Aws::String m_displayName;
161
163
164 StatusReason m_statusReason{StatusReason::NOT_SET};
165
166 Aws::Utils::DateTime m_createdAt{};
167
168 Aws::Utils::DateTime m_completedAt{};
169
170 int m_dataExpiry{0};
171 bool m_jobIdHasBeenSet = false;
172 bool m_displayNameHasBeenSet = false;
173 bool m_statusHasBeenSet = false;
174 bool m_statusReasonHasBeenSet = false;
175 bool m_createdAtHasBeenSet = false;
176 bool m_completedAtHasBeenSet = false;
177 bool m_dataExpiryHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace CustomerProfiles
182} // namespace Aws
AWS_CUSTOMERPROFILES_API UploadJobItem(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API UploadJobItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCompletedAt(CompletedAtT &&value)
UploadJobItem & WithDisplayName(DisplayNameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
UploadJobItem & WithStatus(UploadJobStatus value)
const Aws::Utils::DateTime & GetCompletedAt() const
const Aws::String & GetDisplayName() const
void SetDisplayName(DisplayNameT &&value)
UploadJobItem & WithStatusReason(StatusReason value)
AWS_CUSTOMERPROFILES_API UploadJobItem()=default
UploadJobItem & WithCreatedAt(CreatedAtT &&value)
UploadJobItem & WithCompletedAt(CompletedAtT &&value)
UploadJobItem & WithDataExpiry(int value)
void SetStatus(UploadJobStatus value)
UploadJobItem & WithJobId(JobIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue