AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
InventoryX509Details.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/InventoryKeyAlgorithm.h>
9#include <aws/acm/model/IssuanceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ACM {
24namespace Model {
25
32 public:
33 AWS_ACM_API InventoryX509Details() = default;
37
39
42 inline const Aws::String& GetIssuer() const { return m_issuer; }
43 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
44 template <typename IssuerT = Aws::String>
45 void SetIssuer(IssuerT&& value) {
46 m_issuerHasBeenSet = true;
47 m_issuer = std::forward<IssuerT>(value);
48 }
49 template <typename IssuerT = Aws::String>
50 InventoryX509Details& WithIssuer(IssuerT&& value) {
51 SetIssuer(std::forward<IssuerT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
63 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
64 template <typename SerialNumberT = Aws::String>
65 void SetSerialNumber(SerialNumberT&& value) {
66 m_serialNumberHasBeenSet = true;
67 m_serialNumber = std::forward<SerialNumberT>(value);
68 }
69 template <typename SerialNumberT = Aws::String>
70 InventoryX509Details& WithSerialNumber(SerialNumberT&& value) {
71 SetSerialNumber(std::forward<SerialNumberT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
81 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
82 template <typename NotBeforeT = Aws::Utils::DateTime>
83 void SetNotBefore(NotBeforeT&& value) {
84 m_notBeforeHasBeenSet = true;
85 m_notBefore = std::forward<NotBeforeT>(value);
86 }
87 template <typename NotBeforeT = Aws::Utils::DateTime>
88 InventoryX509Details& WithNotBefore(NotBeforeT&& value) {
89 SetNotBefore(std::forward<NotBeforeT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
99 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
100 template <typename NotAfterT = Aws::Utils::DateTime>
101 void SetNotAfter(NotAfterT&& value) {
102 m_notAfterHasBeenSet = true;
103 m_notAfter = std::forward<NotAfterT>(value);
104 }
105 template <typename NotAfterT = Aws::Utils::DateTime>
106 InventoryX509Details& WithNotAfter(NotAfterT&& value) {
107 SetNotAfter(std::forward<NotAfterT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
117 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
118 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
119 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
120 m_subjectAlternativeNamesHasBeenSet = true;
121 m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value);
122 }
123 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
124 InventoryX509Details& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
125 SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value));
126 return *this;
127 }
128 template <typename SubjectAlternativeNamesT = Aws::String>
129 InventoryX509Details& AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
130 m_subjectAlternativeNamesHasBeenSet = true;
131 m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value));
132 return *this;
133 }
135
137
140 inline InventoryKeyAlgorithm GetKeyAlgorithm() const { return m_keyAlgorithm; }
141 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
143 m_keyAlgorithmHasBeenSet = true;
144 m_keyAlgorithm = value;
145 }
147 SetKeyAlgorithm(value);
148 return *this;
149 }
151
153
156 inline IssuanceType GetIssuanceType() const { return m_issuanceType; }
157 inline bool IssuanceTypeHasBeenSet() const { return m_issuanceTypeHasBeenSet; }
158 inline void SetIssuanceType(IssuanceType value) {
159 m_issuanceTypeHasBeenSet = true;
160 m_issuanceType = value;
161 }
163 SetIssuanceType(value);
164 return *this;
165 }
167
169
176 inline const Aws::String& GetSignatureAlgorithm() const { return m_signatureAlgorithm; }
177 inline bool SignatureAlgorithmHasBeenSet() const { return m_signatureAlgorithmHasBeenSet; }
178 template <typename SignatureAlgorithmT = Aws::String>
179 void SetSignatureAlgorithm(SignatureAlgorithmT&& value) {
180 m_signatureAlgorithmHasBeenSet = true;
181 m_signatureAlgorithm = std::forward<SignatureAlgorithmT>(value);
182 }
183 template <typename SignatureAlgorithmT = Aws::String>
184 InventoryX509Details& WithSignatureAlgorithm(SignatureAlgorithmT&& value) {
185 SetSignatureAlgorithm(std::forward<SignatureAlgorithmT>(value));
186 return *this;
187 }
189
191
194 inline int GetKeySizeBits() const { return m_keySizeBits; }
195 inline bool KeySizeBitsHasBeenSet() const { return m_keySizeBitsHasBeenSet; }
196 inline void SetKeySizeBits(int value) {
197 m_keySizeBitsHasBeenSet = true;
198 m_keySizeBits = value;
199 }
201 SetKeySizeBits(value);
202 return *this;
203 }
205 private:
206 Aws::String m_issuer;
207
208 Aws::String m_serialNumber;
209
210 Aws::Utils::DateTime m_notBefore{};
211
212 Aws::Utils::DateTime m_notAfter{};
213
214 Aws::Vector<Aws::String> m_subjectAlternativeNames;
215
217
218 IssuanceType m_issuanceType{IssuanceType::NOT_SET};
219
220 Aws::String m_signatureAlgorithm;
221
222 int m_keySizeBits{0};
223 bool m_issuerHasBeenSet = false;
224 bool m_serialNumberHasBeenSet = false;
225 bool m_notBeforeHasBeenSet = false;
226 bool m_notAfterHasBeenSet = false;
227 bool m_subjectAlternativeNamesHasBeenSet = false;
228 bool m_keyAlgorithmHasBeenSet = false;
229 bool m_issuanceTypeHasBeenSet = false;
230 bool m_signatureAlgorithmHasBeenSet = false;
231 bool m_keySizeBitsHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace ACM
236} // namespace Aws
InventoryKeyAlgorithm GetKeyAlgorithm() const
void SetSignatureAlgorithm(SignatureAlgorithmT &&value)
InventoryX509Details & WithSerialNumber(SerialNumberT &&value)
void SetSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
const Aws::String & GetSerialNumber() const
InventoryX509Details & WithKeyAlgorithm(InventoryKeyAlgorithm value)
InventoryX509Details & WithNotAfter(NotAfterT &&value)
const Aws::Utils::DateTime & GetNotAfter() const
AWS_ACM_API InventoryX509Details(Aws::Utils::Json::JsonView jsonValue)
InventoryX509Details & WithKeySizeBits(int value)
const Aws::Utils::DateTime & GetNotBefore() const
InventoryX509Details & WithNotBefore(NotBeforeT &&value)
const Aws::String & GetSignatureAlgorithm() const
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
InventoryX509Details & WithSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
AWS_ACM_API InventoryX509Details & operator=(Aws::Utils::Json::JsonView jsonValue)
InventoryX509Details & AddSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
InventoryX509Details & WithIssuer(IssuerT &&value)
AWS_ACM_API InventoryX509Details()=default
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
InventoryX509Details & WithIssuanceType(IssuanceType value)
InventoryX509Details & WithSignatureAlgorithm(SignatureAlgorithmT &&value)
void SetKeyAlgorithm(InventoryKeyAlgorithm value)
void SetSerialNumber(SerialNumberT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue