AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
InventoryCertificate.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/CertificateHealthSeverity.h>
9#include <aws/acm/model/FindingCounts.h>
10#include <aws/acm/model/InventoryCertificateIdentity.h>
11#include <aws/acm/model/InventoryX509Details.h>
12#include <aws/acm/model/MaterialType.h>
13#include <aws/acm/model/ValidityWindow.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ACM {
26namespace Model {
27
35 public:
36 AWS_ACM_API InventoryCertificate() = default;
40
42
45 inline const Aws::String& GetIdentifier() const { return m_identifier; }
46 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
47 template <typename IdentifierT = Aws::String>
48 void SetIdentifier(IdentifierT&& value) {
49 m_identifierHasBeenSet = true;
50 m_identifier = std::forward<IdentifierT>(value);
51 }
52 template <typename IdentifierT = Aws::String>
53 InventoryCertificate& WithIdentifier(IdentifierT&& value) {
54 SetIdentifier(std::forward<IdentifierT>(value));
55 return *this;
56 }
58
60
63 inline MaterialType GetMaterialType() const { return m_materialType; }
64 inline bool MaterialTypeHasBeenSet() const { return m_materialTypeHasBeenSet; }
65 inline void SetMaterialType(MaterialType value) {
66 m_materialTypeHasBeenSet = true;
67 m_materialType = value;
68 }
70 SetMaterialType(value);
71 return *this;
72 }
74
76
79 inline const ValidityWindow& GetValidity() const { return m_validity; }
80 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
81 template <typename ValidityT = ValidityWindow>
82 void SetValidity(ValidityT&& value) {
83 m_validityHasBeenSet = true;
84 m_validity = std::forward<ValidityT>(value);
85 }
86 template <typename ValidityT = ValidityWindow>
87 InventoryCertificate& WithValidity(ValidityT&& value) {
88 SetValidity(std::forward<ValidityT>(value));
89 return *this;
90 }
92
94
97 inline const InventoryCertificateIdentity& GetIdentity() const { return m_identity; }
98 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
99 template <typename IdentityT = InventoryCertificateIdentity>
100 void SetIdentity(IdentityT&& value) {
101 m_identityHasBeenSet = true;
102 m_identity = std::forward<IdentityT>(value);
103 }
104 template <typename IdentityT = InventoryCertificateIdentity>
105 InventoryCertificate& WithIdentity(IdentityT&& value) {
106 SetIdentity(std::forward<IdentityT>(value));
107 return *this;
108 }
110
112
119 inline long long GetUsageCount() const { return m_usageCount; }
120 inline bool UsageCountHasBeenSet() const { return m_usageCountHasBeenSet; }
121 inline void SetUsageCount(long long value) {
122 m_usageCountHasBeenSet = true;
123 m_usageCount = value;
124 }
125 inline InventoryCertificate& WithUsageCount(long long value) {
126 SetUsageCount(value);
127 return *this;
128 }
130
132
136 inline const FindingCounts& GetFindingCounts() const { return m_findingCounts; }
137 inline bool FindingCountsHasBeenSet() const { return m_findingCountsHasBeenSet; }
138 template <typename FindingCountsT = FindingCounts>
139 void SetFindingCounts(FindingCountsT&& value) {
140 m_findingCountsHasBeenSet = true;
141 m_findingCounts = std::forward<FindingCountsT>(value);
142 }
143 template <typename FindingCountsT = FindingCounts>
144 InventoryCertificate& WithFindingCounts(FindingCountsT&& value) {
145 SetFindingCounts(std::forward<FindingCountsT>(value));
146 return *this;
147 }
149
151
155 inline const InventoryX509Details& GetX509Details() const { return m_x509Details; }
156 inline bool X509DetailsHasBeenSet() const { return m_x509DetailsHasBeenSet; }
157 template <typename X509DetailsT = InventoryX509Details>
158 void SetX509Details(X509DetailsT&& value) {
159 m_x509DetailsHasBeenSet = true;
160 m_x509Details = std::forward<X509DetailsT>(value);
161 }
162 template <typename X509DetailsT = InventoryX509Details>
163 InventoryCertificate& WithX509Details(X509DetailsT&& value) {
164 SetX509Details(std::forward<X509DetailsT>(value));
165 return *this;
166 }
168
170
178 inline CertificateHealthSeverity GetHighestFindingSeverity() const { return m_highestFindingSeverity; }
179 inline bool HighestFindingSeverityHasBeenSet() const { return m_highestFindingSeverityHasBeenSet; }
181 m_highestFindingSeverityHasBeenSet = true;
182 m_highestFindingSeverity = value;
183 }
189
191
200 inline long long GetRelatedResourceCount() const { return m_relatedResourceCount; }
201 inline bool RelatedResourceCountHasBeenSet() const { return m_relatedResourceCountHasBeenSet; }
202 inline void SetRelatedResourceCount(long long value) {
203 m_relatedResourceCountHasBeenSet = true;
204 m_relatedResourceCount = value;
205 }
208 return *this;
209 }
211 private:
212 Aws::String m_identifier;
213
214 MaterialType m_materialType{MaterialType::NOT_SET};
215
216 ValidityWindow m_validity;
217
218 InventoryCertificateIdentity m_identity;
219
220 long long m_usageCount{0};
221
222 FindingCounts m_findingCounts;
223
224 InventoryX509Details m_x509Details;
225
227
228 long long m_relatedResourceCount{0};
229 bool m_identifierHasBeenSet = false;
230 bool m_materialTypeHasBeenSet = false;
231 bool m_validityHasBeenSet = false;
232 bool m_identityHasBeenSet = false;
233 bool m_usageCountHasBeenSet = false;
234 bool m_findingCountsHasBeenSet = false;
235 bool m_x509DetailsHasBeenSet = false;
236 bool m_highestFindingSeverityHasBeenSet = false;
237 bool m_relatedResourceCountHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace ACM
242} // namespace Aws
const ValidityWindow & GetValidity() const
const Aws::String & GetIdentifier() const
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
InventoryCertificate & WithFindingCounts(FindingCountsT &&value)
InventoryCertificate & WithUsageCount(long long value)
const InventoryX509Details & GetX509Details() const
InventoryCertificate & WithHighestFindingSeverity(CertificateHealthSeverity value)
CertificateHealthSeverity GetHighestFindingSeverity() const
InventoryCertificate & WithRelatedResourceCount(long long value)
InventoryCertificate & WithMaterialType(MaterialType value)
const FindingCounts & GetFindingCounts() const
void SetFindingCounts(FindingCountsT &&value)
InventoryCertificate & WithIdentity(IdentityT &&value)
AWS_ACM_API InventoryCertificate & operator=(Aws::Utils::Json::JsonView jsonValue)
InventoryCertificate & WithIdentifier(IdentifierT &&value)
InventoryCertificate & WithX509Details(X509DetailsT &&value)
InventoryCertificate & WithValidity(ValidityT &&value)
const InventoryCertificateIdentity & GetIdentity() const
void SetHighestFindingSeverity(CertificateHealthSeverity value)
AWS_ACM_API InventoryCertificate(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_API InventoryCertificate()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue