AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobSummary.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/S3BucketCriteriaForJob.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/macie2/model/JobStatus.h>
13#include <aws/macie2/model/JobType.h>
14#include <aws/macie2/model/LastRunErrorStatus.h>
15#include <aws/macie2/model/UserPausedDetails.h>
16#include <aws/macie2/model/S3BucketDefinitionForJob.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Macie2
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_MACIE2_API JobSummary();
44 AWS_MACIE2_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
56 inline const S3BucketCriteriaForJob& GetBucketCriteria() const{ return m_bucketCriteria; }
57 inline bool BucketCriteriaHasBeenSet() const { return m_bucketCriteriaHasBeenSet; }
58 inline void SetBucketCriteria(const S3BucketCriteriaForJob& value) { m_bucketCriteriaHasBeenSet = true; m_bucketCriteria = value; }
59 inline void SetBucketCriteria(S3BucketCriteriaForJob&& value) { m_bucketCriteriaHasBeenSet = true; m_bucketCriteria = std::move(value); }
60 inline JobSummary& WithBucketCriteria(const S3BucketCriteriaForJob& value) { SetBucketCriteria(value); return *this;}
61 inline JobSummary& WithBucketCriteria(S3BucketCriteriaForJob&& value) { SetBucketCriteria(std::move(value)); return *this;}
63
65
72 inline const Aws::Vector<S3BucketDefinitionForJob>& GetBucketDefinitions() const{ return m_bucketDefinitions; }
73 inline bool BucketDefinitionsHasBeenSet() const { return m_bucketDefinitionsHasBeenSet; }
74 inline void SetBucketDefinitions(const Aws::Vector<S3BucketDefinitionForJob>& value) { m_bucketDefinitionsHasBeenSet = true; m_bucketDefinitions = value; }
75 inline void SetBucketDefinitions(Aws::Vector<S3BucketDefinitionForJob>&& value) { m_bucketDefinitionsHasBeenSet = true; m_bucketDefinitions = std::move(value); }
78 inline JobSummary& AddBucketDefinitions(const S3BucketDefinitionForJob& value) { m_bucketDefinitionsHasBeenSet = true; m_bucketDefinitions.push_back(value); return *this; }
79 inline JobSummary& AddBucketDefinitions(S3BucketDefinitionForJob&& value) { m_bucketDefinitionsHasBeenSet = true; m_bucketDefinitions.push_back(std::move(value)); return *this; }
81
83
87 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
88 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
89 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
90 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
91 inline JobSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
92 inline JobSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetJobId() const{ return m_jobId; }
100 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
101 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
102 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
103 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
104 inline JobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
105 inline JobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
106 inline JobSummary& WithJobId(const char* value) { SetJobId(value); return *this;}
108
110
128 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
129 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
130 inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
131 inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
132 inline JobSummary& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
133 inline JobSummary& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
135
137
142 inline const JobType& GetJobType() const{ return m_jobType; }
143 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
144 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
145 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
146 inline JobSummary& WithJobType(const JobType& value) { SetJobType(value); return *this;}
147 inline JobSummary& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
149
151
156 inline const LastRunErrorStatus& GetLastRunErrorStatus() const{ return m_lastRunErrorStatus; }
157 inline bool LastRunErrorStatusHasBeenSet() const { return m_lastRunErrorStatusHasBeenSet; }
158 inline void SetLastRunErrorStatus(const LastRunErrorStatus& value) { m_lastRunErrorStatusHasBeenSet = true; m_lastRunErrorStatus = value; }
159 inline void SetLastRunErrorStatus(LastRunErrorStatus&& value) { m_lastRunErrorStatusHasBeenSet = true; m_lastRunErrorStatus = std::move(value); }
160 inline JobSummary& WithLastRunErrorStatus(const LastRunErrorStatus& value) { SetLastRunErrorStatus(value); return *this;}
161 inline JobSummary& WithLastRunErrorStatus(LastRunErrorStatus&& value) { SetLastRunErrorStatus(std::move(value)); return *this;}
163
165
168 inline const Aws::String& GetName() const{ return m_name; }
169 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
170 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
171 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
172 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
173 inline JobSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
174 inline JobSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
175 inline JobSummary& WithName(const char* value) { SetName(value); return *this;}
177
179
185 inline const UserPausedDetails& GetUserPausedDetails() const{ return m_userPausedDetails; }
186 inline bool UserPausedDetailsHasBeenSet() const { return m_userPausedDetailsHasBeenSet; }
187 inline void SetUserPausedDetails(const UserPausedDetails& value) { m_userPausedDetailsHasBeenSet = true; m_userPausedDetails = value; }
188 inline void SetUserPausedDetails(UserPausedDetails&& value) { m_userPausedDetailsHasBeenSet = true; m_userPausedDetails = std::move(value); }
189 inline JobSummary& WithUserPausedDetails(const UserPausedDetails& value) { SetUserPausedDetails(value); return *this;}
190 inline JobSummary& WithUserPausedDetails(UserPausedDetails&& value) { SetUserPausedDetails(std::move(value)); return *this;}
192 private:
193
194 S3BucketCriteriaForJob m_bucketCriteria;
195 bool m_bucketCriteriaHasBeenSet = false;
196
197 Aws::Vector<S3BucketDefinitionForJob> m_bucketDefinitions;
198 bool m_bucketDefinitionsHasBeenSet = false;
199
200 Aws::Utils::DateTime m_createdAt;
201 bool m_createdAtHasBeenSet = false;
202
203 Aws::String m_jobId;
204 bool m_jobIdHasBeenSet = false;
205
206 JobStatus m_jobStatus;
207 bool m_jobStatusHasBeenSet = false;
208
209 JobType m_jobType;
210 bool m_jobTypeHasBeenSet = false;
211
212 LastRunErrorStatus m_lastRunErrorStatus;
213 bool m_lastRunErrorStatusHasBeenSet = false;
214
215 Aws::String m_name;
216 bool m_nameHasBeenSet = false;
217
218 UserPausedDetails m_userPausedDetails;
219 bool m_userPausedDetailsHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace Macie2
224} // namespace Aws
void SetLastRunErrorStatus(const LastRunErrorStatus &value)
Definition JobSummary.h:158
void SetUserPausedDetails(const UserPausedDetails &value)
Definition JobSummary.h:187
void SetJobType(const JobType &value)
Definition JobSummary.h:144
const S3BucketCriteriaForJob & GetBucketCriteria() const
Definition JobSummary.h:56
JobSummary & WithBucketDefinitions(Aws::Vector< S3BucketDefinitionForJob > &&value)
Definition JobSummary.h:77
void SetJobId(const Aws::String &value)
Definition JobSummary.h:101
const LastRunErrorStatus & GetLastRunErrorStatus() const
Definition JobSummary.h:156
JobSummary & WithJobType(const JobType &value)
Definition JobSummary.h:146
bool UserPausedDetailsHasBeenSet() const
Definition JobSummary.h:186
JobSummary & WithJobType(JobType &&value)
Definition JobSummary.h:147
void SetBucketCriteria(const S3BucketCriteriaForJob &value)
Definition JobSummary.h:58
void SetName(const Aws::String &value)
Definition JobSummary.h:170
JobSummary & WithLastRunErrorStatus(LastRunErrorStatus &&value)
Definition JobSummary.h:161
JobSummary & WithUserPausedDetails(const UserPausedDetails &value)
Definition JobSummary.h:189
void SetBucketDefinitions(const Aws::Vector< S3BucketDefinitionForJob > &value)
Definition JobSummary.h:74
JobSummary & WithJobId(const Aws::String &value)
Definition JobSummary.h:104
void SetUserPausedDetails(UserPausedDetails &&value)
Definition JobSummary.h:188
bool LastRunErrorStatusHasBeenSet() const
Definition JobSummary.h:157
void SetName(Aws::String &&value)
Definition JobSummary.h:171
void SetJobStatus(const JobStatus &value)
Definition JobSummary.h:130
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobSummary.h:87
JobSummary & WithBucketCriteria(const S3BucketCriteriaForJob &value)
Definition JobSummary.h:60
JobSummary & WithUserPausedDetails(UserPausedDetails &&value)
Definition JobSummary.h:190
AWS_MACIE2_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< S3BucketDefinitionForJob > & GetBucketDefinitions() const
Definition JobSummary.h:72
const JobType & GetJobType() const
Definition JobSummary.h:142
AWS_MACIE2_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobSummary & WithBucketCriteria(S3BucketCriteriaForJob &&value)
Definition JobSummary.h:61
JobSummary & WithJobStatus(JobStatus &&value)
Definition JobSummary.h:133
JobSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:92
void SetLastRunErrorStatus(LastRunErrorStatus &&value)
Definition JobSummary.h:159
JobSummary & AddBucketDefinitions(S3BucketDefinitionForJob &&value)
Definition JobSummary.h:79
const Aws::String & GetName() const
Definition JobSummary.h:168
void SetBucketCriteria(S3BucketCriteriaForJob &&value)
Definition JobSummary.h:59
bool BucketDefinitionsHasBeenSet() const
Definition JobSummary.h:73
JobSummary & WithName(Aws::String &&value)
Definition JobSummary.h:174
JobSummary & WithLastRunErrorStatus(const LastRunErrorStatus &value)
Definition JobSummary.h:160
JobSummary & WithName(const Aws::String &value)
Definition JobSummary.h:173
JobSummary & WithJobStatus(const JobStatus &value)
Definition JobSummary.h:132
const JobStatus & GetJobStatus() const
Definition JobSummary.h:128
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & AddBucketDefinitions(const S3BucketDefinitionForJob &value)
Definition JobSummary.h:78
JobSummary & WithName(const char *value)
Definition JobSummary.h:175
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:90
JobSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:91
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:89
void SetJobId(Aws::String &&value)
Definition JobSummary.h:102
void SetBucketDefinitions(Aws::Vector< S3BucketDefinitionForJob > &&value)
Definition JobSummary.h:75
bool BucketCriteriaHasBeenSet() const
Definition JobSummary.h:57
const UserPausedDetails & GetUserPausedDetails() const
Definition JobSummary.h:185
JobSummary & WithJobId(const char *value)
Definition JobSummary.h:106
const Aws::String & GetJobId() const
Definition JobSummary.h:99
void SetJobStatus(JobStatus &&value)
Definition JobSummary.h:131
void SetJobType(JobType &&value)
Definition JobSummary.h:145
void SetName(const char *value)
Definition JobSummary.h:172
JobSummary & WithBucketDefinitions(const Aws::Vector< S3BucketDefinitionForJob > &value)
Definition JobSummary.h:76
void SetJobId(const char *value)
Definition JobSummary.h:103
JobSummary & WithJobId(Aws::String &&value)
Definition JobSummary.h:105
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue