AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
MailboxExportJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/MailboxExportJobState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkMail {
22namespace Model {
23
32 public:
33 AWS_WORKMAIL_API MailboxExportJob() = default;
34 AWS_WORKMAIL_API MailboxExportJob(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKMAIL_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 MailboxExportJob& WithJobId(JobIdT&& value) {
51 SetJobId(std::forward<JobIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetEntityId() const { return m_entityId; }
61 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
62 template <typename EntityIdT = Aws::String>
63 void SetEntityId(EntityIdT&& value) {
64 m_entityIdHasBeenSet = true;
65 m_entityId = std::forward<EntityIdT>(value);
66 }
67 template <typename EntityIdT = Aws::String>
68 MailboxExportJob& WithEntityId(EntityIdT&& value) {
69 SetEntityId(std::forward<EntityIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 MailboxExportJob& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
97 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
98 template <typename S3BucketNameT = Aws::String>
99 void SetS3BucketName(S3BucketNameT&& value) {
100 m_s3BucketNameHasBeenSet = true;
101 m_s3BucketName = std::forward<S3BucketNameT>(value);
102 }
103 template <typename S3BucketNameT = Aws::String>
104 MailboxExportJob& WithS3BucketName(S3BucketNameT&& value) {
105 SetS3BucketName(std::forward<S3BucketNameT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetS3Path() const { return m_s3Path; }
116 inline bool S3PathHasBeenSet() const { return m_s3PathHasBeenSet; }
117 template <typename S3PathT = Aws::String>
118 void SetS3Path(S3PathT&& value) {
119 m_s3PathHasBeenSet = true;
120 m_s3Path = std::forward<S3PathT>(value);
121 }
122 template <typename S3PathT = Aws::String>
123 MailboxExportJob& WithS3Path(S3PathT&& value) {
124 SetS3Path(std::forward<S3PathT>(value));
125 return *this;
126 }
128
130
133 inline int GetEstimatedProgress() const { return m_estimatedProgress; }
134 inline bool EstimatedProgressHasBeenSet() const { return m_estimatedProgressHasBeenSet; }
135 inline void SetEstimatedProgress(int value) {
136 m_estimatedProgressHasBeenSet = true;
137 m_estimatedProgress = value;
138 }
141 return *this;
142 }
144
146
149 inline MailboxExportJobState GetState() const { return m_state; }
150 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
151 inline void SetState(MailboxExportJobState value) {
152 m_stateHasBeenSet = true;
153 m_state = value;
154 }
156 SetState(value);
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
166 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
167 template <typename StartTimeT = Aws::Utils::DateTime>
168 void SetStartTime(StartTimeT&& value) {
169 m_startTimeHasBeenSet = true;
170 m_startTime = std::forward<StartTimeT>(value);
171 }
172 template <typename StartTimeT = Aws::Utils::DateTime>
173 MailboxExportJob& WithStartTime(StartTimeT&& value) {
174 SetStartTime(std::forward<StartTimeT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
184 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
185 template <typename EndTimeT = Aws::Utils::DateTime>
186 void SetEndTime(EndTimeT&& value) {
187 m_endTimeHasBeenSet = true;
188 m_endTime = std::forward<EndTimeT>(value);
189 }
190 template <typename EndTimeT = Aws::Utils::DateTime>
191 MailboxExportJob& WithEndTime(EndTimeT&& value) {
192 SetEndTime(std::forward<EndTimeT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_jobId;
198
199 Aws::String m_entityId;
200
201 Aws::String m_description;
202
203 Aws::String m_s3BucketName;
204
205 Aws::String m_s3Path;
206
207 int m_estimatedProgress{0};
208
210
211 Aws::Utils::DateTime m_startTime{};
212
213 Aws::Utils::DateTime m_endTime{};
214 bool m_jobIdHasBeenSet = false;
215 bool m_entityIdHasBeenSet = false;
216 bool m_descriptionHasBeenSet = false;
217 bool m_s3BucketNameHasBeenSet = false;
218 bool m_s3PathHasBeenSet = false;
219 bool m_estimatedProgressHasBeenSet = false;
220 bool m_stateHasBeenSet = false;
221 bool m_startTimeHasBeenSet = false;
222 bool m_endTimeHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace WorkMail
227} // namespace Aws
MailboxExportJob & WithDescription(DescriptionT &&value)
AWS_WORKMAIL_API MailboxExportJob(Aws::Utils::Json::JsonView jsonValue)
MailboxExportJob & WithStartTime(StartTimeT &&value)
MailboxExportJob & WithS3Path(S3PathT &&value)
const Aws::String & GetEntityId() const
MailboxExportJob & WithJobId(JobIdT &&value)
const Aws::String & GetS3BucketName() const
const Aws::String & GetJobId() const
MailboxExportJob & WithEntityId(EntityIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::String & GetDescription() const
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
MailboxExportJob & WithEndTime(EndTimeT &&value)
AWS_WORKMAIL_API MailboxExportJob & operator=(Aws::Utils::Json::JsonView jsonValue)
MailboxExportJob & WithEstimatedProgress(int value)
void SetS3BucketName(S3BucketNameT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetState(MailboxExportJobState value)
MailboxExportJob & WithState(MailboxExportJobState value)
MailboxExportJobState GetState() const
const Aws::String & GetS3Path() const
AWS_WORKMAIL_API MailboxExportJob()=default
void SetDescription(DescriptionT &&value)
MailboxExportJob & WithS3BucketName(S3BucketNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue