AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EmailTargetDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
11#include <aws/partnercentral-marketing/model/ScanStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace PartnerCentralMarketing {
22namespace Model {
23
36 public:
37 AWS_PARTNERCENTRALMARKETING_API EmailTargetDetail() = default;
38 AWS_PARTNERCENTRALMARKETING_API EmailTargetDetail(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_PARTNERCENTRALMARKETING_API EmailTargetDetail& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
46 inline ScanStatus GetScanStatus() const { return m_scanStatus; }
47 inline bool ScanStatusHasBeenSet() const { return m_scanStatusHasBeenSet; }
48 inline void SetScanStatus(ScanStatus value) {
49 m_scanStatusHasBeenSet = true;
50 m_scanStatus = value;
51 }
53 SetScanStatus(value);
54 return *this;
55 }
57
59
62 inline const Aws::Utils::DateTime& GetAttachedAt() const { return m_attachedAt; }
63 inline bool AttachedAtHasBeenSet() const { return m_attachedAtHasBeenSet; }
64 template <typename AttachedAtT = Aws::Utils::DateTime>
65 void SetAttachedAt(AttachedAtT&& value) {
66 m_attachedAtHasBeenSet = true;
67 m_attachedAt = std::forward<AttachedAtT>(value);
68 }
69 template <typename AttachedAtT = Aws::Utils::DateTime>
70 EmailTargetDetail& WithAttachedAt(AttachedAtT&& value) {
71 SetAttachedAt(std::forward<AttachedAtT>(value));
72 return *this;
73 }
75
77
80 inline int64_t GetValidCount() const { return m_validCount; }
81 inline bool ValidCountHasBeenSet() const { return m_validCountHasBeenSet; }
82 inline void SetValidCount(int64_t value) {
83 m_validCountHasBeenSet = true;
84 m_validCount = value;
85 }
86 inline EmailTargetDetail& WithValidCount(int64_t value) {
87 SetValidCount(value);
88 return *this;
89 }
91
93
96 inline int64_t GetRejectedCount() const { return m_rejectedCount; }
97 inline bool RejectedCountHasBeenSet() const { return m_rejectedCountHasBeenSet; }
98 inline void SetRejectedCount(int64_t value) {
99 m_rejectedCountHasBeenSet = true;
100 m_rejectedCount = value;
101 }
102 inline EmailTargetDetail& WithRejectedCount(int64_t value) {
103 SetRejectedCount(value);
104 return *this;
105 }
107
109
113 inline int64_t GetDuplicateCount() const { return m_duplicateCount; }
114 inline bool DuplicateCountHasBeenSet() const { return m_duplicateCountHasBeenSet; }
115 inline void SetDuplicateCount(int64_t value) {
116 m_duplicateCountHasBeenSet = true;
117 m_duplicateCount = value;
118 }
119 inline EmailTargetDetail& WithDuplicateCount(int64_t value) {
120 SetDuplicateCount(value);
121 return *this;
122 }
124
126
132 inline const Aws::String& GetFileName() const { return m_fileName; }
133 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
134 template <typename FileNameT = Aws::String>
135 void SetFileName(FileNameT&& value) {
136 m_fileNameHasBeenSet = true;
137 m_fileName = std::forward<FileNameT>(value);
138 }
139 template <typename FileNameT = Aws::String>
140 EmailTargetDetail& WithFileName(FileNameT&& value) {
141 SetFileName(std::forward<FileNameT>(value));
142 return *this;
143 }
145 private:
146 ScanStatus m_scanStatus{ScanStatus::NOT_SET};
147
148 Aws::Utils::DateTime m_attachedAt{};
149
150 int64_t m_validCount{0};
151
152 int64_t m_rejectedCount{0};
153
154 int64_t m_duplicateCount{0};
155
156 Aws::String m_fileName;
157 bool m_scanStatusHasBeenSet = false;
158 bool m_attachedAtHasBeenSet = false;
159 bool m_validCountHasBeenSet = false;
160 bool m_rejectedCountHasBeenSet = false;
161 bool m_duplicateCountHasBeenSet = false;
162 bool m_fileNameHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace PartnerCentralMarketing
167} // namespace Aws
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EmailTargetDetail & WithFileName(FileNameT &&value)
AWS_PARTNERCENTRALMARKETING_API EmailTargetDetail()=default
EmailTargetDetail & WithAttachedAt(AttachedAtT &&value)
AWS_PARTNERCENTRALMARKETING_API EmailTargetDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EmailTargetDetail & WithScanStatus(ScanStatus value)
AWS_PARTNERCENTRALMARKETING_API EmailTargetDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetAttachedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String