AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
VerificationInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9#include <aws/sesv2/model/SOARecord.h>
10#include <aws/sesv2/model/VerificationError.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SESV2 {
22namespace Model {
23
31 public:
32 AWS_SESV2_API VerificationInfo() = default;
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetLastCheckedTimestamp() const { return m_lastCheckedTimestamp; }
42 inline bool LastCheckedTimestampHasBeenSet() const { return m_lastCheckedTimestampHasBeenSet; }
43 template <typename LastCheckedTimestampT = Aws::Utils::DateTime>
44 void SetLastCheckedTimestamp(LastCheckedTimestampT&& value) {
45 m_lastCheckedTimestampHasBeenSet = true;
46 m_lastCheckedTimestamp = std::forward<LastCheckedTimestampT>(value);
47 }
48 template <typename LastCheckedTimestampT = Aws::Utils::DateTime>
49 VerificationInfo& WithLastCheckedTimestamp(LastCheckedTimestampT&& value) {
50 SetLastCheckedTimestamp(std::forward<LastCheckedTimestampT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetLastSuccessTimestamp() const { return m_lastSuccessTimestamp; }
60 inline bool LastSuccessTimestampHasBeenSet() const { return m_lastSuccessTimestampHasBeenSet; }
61 template <typename LastSuccessTimestampT = Aws::Utils::DateTime>
62 void SetLastSuccessTimestamp(LastSuccessTimestampT&& value) {
63 m_lastSuccessTimestampHasBeenSet = true;
64 m_lastSuccessTimestamp = std::forward<LastSuccessTimestampT>(value);
65 }
66 template <typename LastSuccessTimestampT = Aws::Utils::DateTime>
67 VerificationInfo& WithLastSuccessTimestamp(LastSuccessTimestampT&& value) {
68 SetLastSuccessTimestamp(std::forward<LastSuccessTimestampT>(value));
69 return *this;
70 }
72
74
108 inline VerificationError GetErrorType() const { return m_errorType; }
109 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
110 inline void SetErrorType(VerificationError value) {
111 m_errorTypeHasBeenSet = true;
112 m_errorType = value;
113 }
115 SetErrorType(value);
116 return *this;
117 }
119
121
125 inline const SOARecord& GetSOARecord() const { return m_sOARecord; }
126 inline bool SOARecordHasBeenSet() const { return m_sOARecordHasBeenSet; }
127 template <typename SOARecordT = SOARecord>
128 void SetSOARecord(SOARecordT&& value) {
129 m_sOARecordHasBeenSet = true;
130 m_sOARecord = std::forward<SOARecordT>(value);
131 }
132 template <typename SOARecordT = SOARecord>
133 VerificationInfo& WithSOARecord(SOARecordT&& value) {
134 SetSOARecord(std::forward<SOARecordT>(value));
135 return *this;
136 }
138 private:
139 Aws::Utils::DateTime m_lastCheckedTimestamp{};
140
141 Aws::Utils::DateTime m_lastSuccessTimestamp{};
142
144
145 SOARecord m_sOARecord;
146 bool m_lastCheckedTimestampHasBeenSet = false;
147 bool m_lastSuccessTimestampHasBeenSet = false;
148 bool m_errorTypeHasBeenSet = false;
149 bool m_sOARecordHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace SESV2
154} // namespace Aws
const Aws::Utils::DateTime & GetLastCheckedTimestamp() const
VerificationInfo & WithErrorType(VerificationError value)
VerificationInfo & WithLastCheckedTimestamp(LastCheckedTimestampT &&value)
AWS_SESV2_API VerificationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API VerificationInfo()=default
VerificationInfo & WithSOARecord(SOARecordT &&value)
void SetErrorType(VerificationError value)
void SetSOARecord(SOARecordT &&value)
VerificationInfo & WithLastSuccessTimestamp(LastSuccessTimestampT &&value)
void SetLastSuccessTimestamp(LastSuccessTimestampT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastCheckedTimestamp(LastCheckedTimestampT &&value)
VerificationError GetErrorType() const
const SOARecord & GetSOARecord() const
AWS_SESV2_API VerificationInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastSuccessTimestamp() const
Aws::Utils::Json::JsonValue JsonValue