AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DkimAttributes.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/DkimSigningAttributesOrigin.h>
12#include <aws/sesv2/model/DkimSigningKeyLength.h>
13#include <aws/sesv2/model/DkimStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SESV2 {
25namespace Model {
26
43 public:
44 AWS_SESV2_API DkimAttributes() = default;
47 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
55 inline bool GetSigningEnabled() const { return m_signingEnabled; }
56 inline bool SigningEnabledHasBeenSet() const { return m_signingEnabledHasBeenSet; }
57 inline void SetSigningEnabled(bool value) {
58 m_signingEnabledHasBeenSet = true;
59 m_signingEnabled = value;
60 }
61 inline DkimAttributes& WithSigningEnabled(bool value) {
62 SetSigningEnabled(value);
63 return *this;
64 }
66
68
82 inline DkimStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(DkimStatus value) {
85 m_statusHasBeenSet = true;
86 m_status = value;
87 }
89 SetStatus(value);
90 return *this;
91 }
93
95
108 inline const Aws::Vector<Aws::String>& GetTokens() const { return m_tokens; }
109 inline bool TokensHasBeenSet() const { return m_tokensHasBeenSet; }
110 template <typename TokensT = Aws::Vector<Aws::String>>
111 void SetTokens(TokensT&& value) {
112 m_tokensHasBeenSet = true;
113 m_tokens = std::forward<TokensT>(value);
114 }
115 template <typename TokensT = Aws::Vector<Aws::String>>
116 DkimAttributes& WithTokens(TokensT&& value) {
117 SetTokens(std::forward<TokensT>(value));
118 return *this;
119 }
120 template <typename TokensT = Aws::String>
121 DkimAttributes& AddTokens(TokensT&& value) {
122 m_tokensHasBeenSet = true;
123 m_tokens.emplace_back(std::forward<TokensT>(value));
124 return *this;
125 }
127
129
141 inline const Aws::String& GetSigningHostedZone() const { return m_signingHostedZone; }
142 inline bool SigningHostedZoneHasBeenSet() const { return m_signingHostedZoneHasBeenSet; }
143 template <typename SigningHostedZoneT = Aws::String>
144 void SetSigningHostedZone(SigningHostedZoneT&& value) {
145 m_signingHostedZoneHasBeenSet = true;
146 m_signingHostedZone = std::forward<SigningHostedZoneT>(value);
147 }
148 template <typename SigningHostedZoneT = Aws::String>
149 DkimAttributes& WithSigningHostedZone(SigningHostedZoneT&& value) {
150 SetSigningHostedZone(std::forward<SigningHostedZoneT>(value));
151 return *this;
152 }
154
156
173 inline DkimSigningAttributesOrigin GetSigningAttributesOrigin() const { return m_signingAttributesOrigin; }
174 inline bool SigningAttributesOriginHasBeenSet() const { return m_signingAttributesOriginHasBeenSet; }
176 m_signingAttributesOriginHasBeenSet = true;
177 m_signingAttributesOrigin = value;
178 }
184
186
190 inline DkimSigningKeyLength GetNextSigningKeyLength() const { return m_nextSigningKeyLength; }
191 inline bool NextSigningKeyLengthHasBeenSet() const { return m_nextSigningKeyLengthHasBeenSet; }
193 m_nextSigningKeyLengthHasBeenSet = true;
194 m_nextSigningKeyLength = value;
195 }
198 return *this;
199 }
201
203
206 inline DkimSigningKeyLength GetCurrentSigningKeyLength() const { return m_currentSigningKeyLength; }
207 inline bool CurrentSigningKeyLengthHasBeenSet() const { return m_currentSigningKeyLengthHasBeenSet; }
209 m_currentSigningKeyLengthHasBeenSet = true;
210 m_currentSigningKeyLength = value;
211 }
217
219
222 inline const Aws::Utils::DateTime& GetLastKeyGenerationTimestamp() const { return m_lastKeyGenerationTimestamp; }
223 inline bool LastKeyGenerationTimestampHasBeenSet() const { return m_lastKeyGenerationTimestampHasBeenSet; }
224 template <typename LastKeyGenerationTimestampT = Aws::Utils::DateTime>
225 void SetLastKeyGenerationTimestamp(LastKeyGenerationTimestampT&& value) {
226 m_lastKeyGenerationTimestampHasBeenSet = true;
227 m_lastKeyGenerationTimestamp = std::forward<LastKeyGenerationTimestampT>(value);
228 }
229 template <typename LastKeyGenerationTimestampT = Aws::Utils::DateTime>
230 DkimAttributes& WithLastKeyGenerationTimestamp(LastKeyGenerationTimestampT&& value) {
231 SetLastKeyGenerationTimestamp(std::forward<LastKeyGenerationTimestampT>(value));
232 return *this;
233 }
235 private:
236 bool m_signingEnabled{false};
237
239
241
242 Aws::String m_signingHostedZone;
243
245
247
248 DkimSigningKeyLength m_currentSigningKeyLength{DkimSigningKeyLength::NOT_SET};
249
250 Aws::Utils::DateTime m_lastKeyGenerationTimestamp{};
251 bool m_signingEnabledHasBeenSet = false;
252 bool m_statusHasBeenSet = false;
253 bool m_tokensHasBeenSet = false;
254 bool m_signingHostedZoneHasBeenSet = false;
255 bool m_signingAttributesOriginHasBeenSet = false;
256 bool m_nextSigningKeyLengthHasBeenSet = false;
257 bool m_currentSigningKeyLengthHasBeenSet = false;
258 bool m_lastKeyGenerationTimestampHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace SESV2
263} // namespace Aws
void SetNextSigningKeyLength(DkimSigningKeyLength value)
DkimAttributes & WithSigningAttributesOrigin(DkimSigningAttributesOrigin value)
DkimAttributes & WithNextSigningKeyLength(DkimSigningKeyLength value)
DkimSigningAttributesOrigin GetSigningAttributesOrigin() const
const Aws::String & GetSigningHostedZone() const
void SetStatus(DkimStatus value)
void SetLastKeyGenerationTimestamp(LastKeyGenerationTimestampT &&value)
DkimSigningKeyLength GetCurrentSigningKeyLength() const
AWS_SESV2_API DkimAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
DkimAttributes & WithSigningHostedZone(SigningHostedZoneT &&value)
DkimSigningKeyLength GetNextSigningKeyLength() const
DkimAttributes & WithCurrentSigningKeyLength(DkimSigningKeyLength value)
const Aws::Utils::DateTime & GetLastKeyGenerationTimestamp() const
AWS_SESV2_API DkimAttributes()=default
DkimAttributes & WithLastKeyGenerationTimestamp(LastKeyGenerationTimestampT &&value)
AWS_SESV2_API DkimAttributes(Aws::Utils::Json::JsonView jsonValue)
void SetSigningAttributesOrigin(DkimSigningAttributesOrigin value)
void SetCurrentSigningKeyLength(DkimSigningKeyLength value)
DkimAttributes & WithTokens(TokensT &&value)
void SetSigningHostedZone(SigningHostedZoneT &&value)
DkimAttributes & WithSigningEnabled(bool value)
DkimAttributes & AddTokens(TokensT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
DkimAttributes & WithStatus(DkimStatus value)
const Aws::Vector< Aws::String > & GetTokens() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue