AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ImportJobSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/ImportDestination.h>
11#include <aws/sesv2/model/JobStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2 {
23namespace Model {
24
31 public:
32 AWS_SESV2_API ImportJobSummary() = default;
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetJobId() const { return m_jobId; }
40 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
41 template <typename JobIdT = Aws::String>
42 void SetJobId(JobIdT&& value) {
43 m_jobIdHasBeenSet = true;
44 m_jobId = std::forward<JobIdT>(value);
45 }
46 template <typename JobIdT = Aws::String>
47 ImportJobSummary& WithJobId(JobIdT&& value) {
48 SetJobId(std::forward<JobIdT>(value));
49 return *this;
50 }
52
54
55 inline const ImportDestination& GetImportDestination() const { return m_importDestination; }
56 inline bool ImportDestinationHasBeenSet() const { return m_importDestinationHasBeenSet; }
57 template <typename ImportDestinationT = ImportDestination>
58 void SetImportDestination(ImportDestinationT&& value) {
59 m_importDestinationHasBeenSet = true;
60 m_importDestination = std::forward<ImportDestinationT>(value);
61 }
62 template <typename ImportDestinationT = ImportDestination>
63 ImportJobSummary& WithImportDestination(ImportDestinationT&& value) {
64 SetImportDestination(std::forward<ImportDestinationT>(value));
65 return *this;
66 }
68
70
71 inline JobStatus GetJobStatus() const { return m_jobStatus; }
72 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
73 inline void SetJobStatus(JobStatus value) {
74 m_jobStatusHasBeenSet = true;
75 m_jobStatus = value;
76 }
78 SetJobStatus(value);
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
88 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
89 template <typename CreatedTimestampT = Aws::Utils::DateTime>
90 void SetCreatedTimestamp(CreatedTimestampT&& value) {
91 m_createdTimestampHasBeenSet = true;
92 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
93 }
94 template <typename CreatedTimestampT = Aws::Utils::DateTime>
95 ImportJobSummary& WithCreatedTimestamp(CreatedTimestampT&& value) {
96 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
97 return *this;
98 }
100
102
105 inline int GetProcessedRecordsCount() const { return m_processedRecordsCount; }
106 inline bool ProcessedRecordsCountHasBeenSet() const { return m_processedRecordsCountHasBeenSet; }
107 inline void SetProcessedRecordsCount(int value) {
108 m_processedRecordsCountHasBeenSet = true;
109 m_processedRecordsCount = value;
110 }
113 return *this;
114 }
116
118
122 inline int GetFailedRecordsCount() const { return m_failedRecordsCount; }
123 inline bool FailedRecordsCountHasBeenSet() const { return m_failedRecordsCountHasBeenSet; }
124 inline void SetFailedRecordsCount(int value) {
125 m_failedRecordsCountHasBeenSet = true;
126 m_failedRecordsCount = value;
127 }
130 return *this;
131 }
133 private:
134 Aws::String m_jobId;
135
136 ImportDestination m_importDestination;
137
138 JobStatus m_jobStatus{JobStatus::NOT_SET};
139
140 Aws::Utils::DateTime m_createdTimestamp{};
141
142 int m_processedRecordsCount{0};
143
144 int m_failedRecordsCount{0};
145 bool m_jobIdHasBeenSet = false;
146 bool m_importDestinationHasBeenSet = false;
147 bool m_jobStatusHasBeenSet = false;
148 bool m_createdTimestampHasBeenSet = false;
149 bool m_processedRecordsCountHasBeenSet = false;
150 bool m_failedRecordsCountHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace SESV2
155} // namespace Aws
void SetCreatedTimestamp(CreatedTimestampT &&value)
ImportJobSummary & WithFailedRecordsCount(int value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
ImportJobSummary & WithImportDestination(ImportDestinationT &&value)
void SetImportDestination(ImportDestinationT &&value)
const ImportDestination & GetImportDestination() const
ImportJobSummary & WithJobStatus(JobStatus value)
ImportJobSummary & WithCreatedTimestamp(CreatedTimestampT &&value)
const Aws::String & GetJobId() const
AWS_SESV2_API ImportJobSummary()=default
AWS_SESV2_API ImportJobSummary(Aws::Utils::Json::JsonView jsonValue)
ImportJobSummary & WithProcessedRecordsCount(int value)
ImportJobSummary & WithJobId(JobIdT &&value)
AWS_SESV2_API ImportJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue