AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UploadJobItem.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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CustomerProfiles
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CUSTOMERPROFILES_API UploadJobItem() = default;
39 AWS_CUSTOMERPROFILES_API UploadJobItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API UploadJobItem& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetJobId() const { return m_jobId; }
49 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
50 template<typename JobIdT = Aws::String>
51 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
52 template<typename JobIdT = Aws::String>
53 UploadJobItem& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
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) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
64 template<typename DisplayNameT = Aws::String>
65 UploadJobItem& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
67
69
72 inline UploadJobStatus GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(UploadJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
75 inline UploadJobItem& WithStatus(UploadJobStatus value) { SetStatus(value); return *this;}
77
79
82 inline StatusReason GetStatusReason() const { return m_statusReason; }
83 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
84 inline void SetStatusReason(StatusReason value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
85 inline UploadJobItem& WithStatusReason(StatusReason value) { SetStatusReason(value); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
93 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 template<typename CreatedAtT = Aws::Utils::DateTime>
95 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
96 template<typename CreatedAtT = Aws::Utils::DateTime>
97 UploadJobItem& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
105 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
106 template<typename CompletedAtT = Aws::Utils::DateTime>
107 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
108 template<typename CompletedAtT = Aws::Utils::DateTime>
109 UploadJobItem& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
111
113
116 inline int GetDataExpiry() const { return m_dataExpiry; }
117 inline bool DataExpiryHasBeenSet() const { return m_dataExpiryHasBeenSet; }
118 inline void SetDataExpiry(int value) { m_dataExpiryHasBeenSet = true; m_dataExpiry = value; }
119 inline UploadJobItem& WithDataExpiry(int value) { SetDataExpiry(value); return *this;}
121 private:
122
123 Aws::String m_jobId;
124 bool m_jobIdHasBeenSet = false;
125
126 Aws::String m_displayName;
127 bool m_displayNameHasBeenSet = false;
128
130 bool m_statusHasBeenSet = false;
131
132 StatusReason m_statusReason{StatusReason::NOT_SET};
133 bool m_statusReasonHasBeenSet = false;
134
135 Aws::Utils::DateTime m_createdAt{};
136 bool m_createdAtHasBeenSet = false;
137
138 Aws::Utils::DateTime m_completedAt{};
139 bool m_completedAtHasBeenSet = false;
140
141 int m_dataExpiry{0};
142 bool m_dataExpiryHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace CustomerProfiles
147} // 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