AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
IdentityCertificate.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/IdentityCertificateStatus.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 IdentityCertificate() = default;
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetFromAddress() const { return m_fromAddress; }
42 inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; }
43 template <typename FromAddressT = Aws::String>
44 void SetFromAddress(FromAddressT&& value) {
45 m_fromAddressHasBeenSet = true;
46 m_fromAddress = std::forward<FromAddressT>(value);
47 }
48 template <typename FromAddressT = Aws::String>
49 IdentityCertificate& WithFromAddress(FromAddressT&& value) {
50 SetFromAddress(std::forward<FromAddressT>(value));
51 return *this;
52 }
54
56
60 inline IdentityCertificateStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 m_statusHasBeenSet = true;
64 m_status = value;
65 }
67 SetStatus(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
78 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
79 template <typename CertificateArnT = Aws::String>
80 void SetCertificateArn(CertificateArnT&& value) {
81 m_certificateArnHasBeenSet = true;
82 m_certificateArn = std::forward<CertificateArnT>(value);
83 }
84 template <typename CertificateArnT = Aws::String>
85 IdentityCertificate& WithCertificateArn(CertificateArnT&& value) {
86 SetCertificateArn(std::forward<CertificateArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetCertificateExpiryTime() const { return m_certificateExpiryTime; }
96 inline bool CertificateExpiryTimeHasBeenSet() const { return m_certificateExpiryTimeHasBeenSet; }
97 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
98 void SetCertificateExpiryTime(CertificateExpiryTimeT&& value) {
99 m_certificateExpiryTimeHasBeenSet = true;
100 m_certificateExpiryTime = std::forward<CertificateExpiryTimeT>(value);
101 }
102 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
103 IdentityCertificate& WithCertificateExpiryTime(CertificateExpiryTimeT&& value) {
104 SetCertificateExpiryTime(std::forward<CertificateExpiryTimeT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_fromAddress;
110
112
113 Aws::String m_certificateArn;
114
115 Aws::Utils::DateTime m_certificateExpiryTime{};
116 bool m_fromAddressHasBeenSet = false;
117 bool m_statusHasBeenSet = false;
118 bool m_certificateArnHasBeenSet = false;
119 bool m_certificateExpiryTimeHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace SESV2
124} // namespace Aws
IdentityCertificate & WithCertificateExpiryTime(CertificateExpiryTimeT &&value)
void SetStatus(IdentityCertificateStatus value)
IdentityCertificate & WithStatus(IdentityCertificateStatus value)
void SetCertificateArn(CertificateArnT &&value)
IdentityCertificateStatus GetStatus() const
IdentityCertificate & WithCertificateArn(CertificateArnT &&value)
AWS_SESV2_API IdentityCertificate(Aws::Utils::Json::JsonView jsonValue)
void SetCertificateExpiryTime(CertificateExpiryTimeT &&value)
const Aws::String & GetCertificateArn() const
AWS_SESV2_API IdentityCertificate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFromAddress(FromAddressT &&value)
IdentityCertificate & WithFromAddress(FromAddressT &&value)
const Aws::String & GetFromAddress() const
const Aws::Utils::DateTime & GetCertificateExpiryTime() const
AWS_SESV2_API IdentityCertificate()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue