AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CertificateInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ds/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/CertificateState.h>
11#include <aws/ds/model/CertificateType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DirectoryService {
23namespace Model {
24
32 public:
33 AWS_DIRECTORYSERVICE_API CertificateInfo() = default;
34 AWS_DIRECTORYSERVICE_API CertificateInfo(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTORYSERVICE_API CertificateInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCertificateId() const { return m_certificateId; }
43 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
44 template <typename CertificateIdT = Aws::String>
45 void SetCertificateId(CertificateIdT&& value) {
46 m_certificateIdHasBeenSet = true;
47 m_certificateId = std::forward<CertificateIdT>(value);
48 }
49 template <typename CertificateIdT = Aws::String>
50 CertificateInfo& WithCertificateId(CertificateIdT&& value) {
51 SetCertificateId(std::forward<CertificateIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCommonName() const { return m_commonName; }
61 inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
62 template <typename CommonNameT = Aws::String>
63 void SetCommonName(CommonNameT&& value) {
64 m_commonNameHasBeenSet = true;
65 m_commonName = std::forward<CommonNameT>(value);
66 }
67 template <typename CommonNameT = Aws::String>
68 CertificateInfo& WithCommonName(CommonNameT&& value) {
69 SetCommonName(std::forward<CommonNameT>(value));
70 return *this;
71 }
73
75
78 inline CertificateState GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(CertificateState value) {
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetExpiryDateTime() const { return m_expiryDateTime; }
95 inline bool ExpiryDateTimeHasBeenSet() const { return m_expiryDateTimeHasBeenSet; }
96 template <typename ExpiryDateTimeT = Aws::Utils::DateTime>
97 void SetExpiryDateTime(ExpiryDateTimeT&& value) {
98 m_expiryDateTimeHasBeenSet = true;
99 m_expiryDateTime = std::forward<ExpiryDateTimeT>(value);
100 }
101 template <typename ExpiryDateTimeT = Aws::Utils::DateTime>
102 CertificateInfo& WithExpiryDateTime(ExpiryDateTimeT&& value) {
103 SetExpiryDateTime(std::forward<ExpiryDateTimeT>(value));
104 return *this;
105 }
107
109
114 inline CertificateType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(CertificateType value) {
117 m_typeHasBeenSet = true;
118 m_type = value;
119 }
121 SetType(value);
122 return *this;
123 }
125 private:
126 Aws::String m_certificateId;
127
128 Aws::String m_commonName;
129
131
132 Aws::Utils::DateTime m_expiryDateTime{};
133
135 bool m_certificateIdHasBeenSet = false;
136 bool m_commonNameHasBeenSet = false;
137 bool m_stateHasBeenSet = false;
138 bool m_expiryDateTimeHasBeenSet = false;
139 bool m_typeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace DirectoryService
144} // namespace Aws
void SetExpiryDateTime(ExpiryDateTimeT &&value)
AWS_DIRECTORYSERVICE_API CertificateInfo()=default
CertificateInfo & WithCertificateId(CertificateIdT &&value)
void SetCertificateId(CertificateIdT &&value)
CertificateInfo & WithCommonName(CommonNameT &&value)
const Aws::Utils::DateTime & GetExpiryDateTime() const
CertificateInfo & WithState(CertificateState value)
AWS_DIRECTORYSERVICE_API CertificateInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
CertificateInfo & WithExpiryDateTime(ExpiryDateTimeT &&value)
AWS_DIRECTORYSERVICE_API CertificateInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CertificateInfo & WithType(CertificateType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue