AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MailboxExportJob.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/MailboxExportJobState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkMail
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_WORKMAIL_API MailboxExportJob() = default;
39 AWS_WORKMAIL_API MailboxExportJob(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WORKMAIL_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 MailboxExportJob& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
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) { m_entityIdHasBeenSet = true; m_entityId = std::forward<EntityIdT>(value); }
64 template<typename EntityIdT = Aws::String>
65 MailboxExportJob& WithEntityId(EntityIdT&& value) { SetEntityId(std::forward<EntityIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 MailboxExportJob& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
85 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
86 template<typename S3BucketNameT = Aws::String>
87 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
88 template<typename S3BucketNameT = Aws::String>
89 MailboxExportJob& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
91
93
97 inline const Aws::String& GetS3Path() const { return m_s3Path; }
98 inline bool S3PathHasBeenSet() const { return m_s3PathHasBeenSet; }
99 template<typename S3PathT = Aws::String>
100 void SetS3Path(S3PathT&& value) { m_s3PathHasBeenSet = true; m_s3Path = std::forward<S3PathT>(value); }
101 template<typename S3PathT = Aws::String>
102 MailboxExportJob& WithS3Path(S3PathT&& value) { SetS3Path(std::forward<S3PathT>(value)); return *this;}
104
106
109 inline int GetEstimatedProgress() const { return m_estimatedProgress; }
110 inline bool EstimatedProgressHasBeenSet() const { return m_estimatedProgressHasBeenSet; }
111 inline void SetEstimatedProgress(int value) { m_estimatedProgressHasBeenSet = true; m_estimatedProgress = value; }
112 inline MailboxExportJob& WithEstimatedProgress(int value) { SetEstimatedProgress(value); return *this;}
114
116
119 inline MailboxExportJobState GetState() const { return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(MailboxExportJobState value) { m_stateHasBeenSet = true; m_state = value; }
122 inline MailboxExportJob& WithState(MailboxExportJobState value) { SetState(value); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
130 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
131 template<typename StartTimeT = Aws::Utils::DateTime>
132 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
133 template<typename StartTimeT = Aws::Utils::DateTime>
134 MailboxExportJob& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
142 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
143 template<typename EndTimeT = Aws::Utils::DateTime>
144 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
145 template<typename EndTimeT = Aws::Utils::DateTime>
146 MailboxExportJob& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
148 private:
149
150 Aws::String m_jobId;
151 bool m_jobIdHasBeenSet = false;
152
153 Aws::String m_entityId;
154 bool m_entityIdHasBeenSet = false;
155
156 Aws::String m_description;
157 bool m_descriptionHasBeenSet = false;
158
159 Aws::String m_s3BucketName;
160 bool m_s3BucketNameHasBeenSet = false;
161
162 Aws::String m_s3Path;
163 bool m_s3PathHasBeenSet = false;
164
165 int m_estimatedProgress{0};
166 bool m_estimatedProgressHasBeenSet = false;
167
169 bool m_stateHasBeenSet = false;
170
171 Aws::Utils::DateTime m_startTime{};
172 bool m_startTimeHasBeenSet = false;
173
174 Aws::Utils::DateTime m_endTime{};
175 bool m_endTimeHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace WorkMail
180} // 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