AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
InventoryAggregateResult.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/InventoryAggregate.h>
9#include <aws/acm/model/InventoryAggregateGroup.h>
10#include <aws/acm/model/InventoryAggregateStatus.h>
11#include <aws/acm/model/InventoryCertificateTypeGroup.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ACM {
25namespace Model {
26
39 public:
40 AWS_ACM_API InventoryAggregateResult() = default;
44
46
49 inline InventoryAggregate GetAggregate() const { return m_aggregate; }
50 inline bool AggregateHasBeenSet() const { return m_aggregateHasBeenSet; }
51 inline void SetAggregate(InventoryAggregate value) {
52 m_aggregateHasBeenSet = true;
53 m_aggregate = value;
54 }
56 SetAggregate(value);
57 return *this;
58 }
60
62
65 inline InventoryAggregateStatus GetStatus() const { return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
68 m_statusHasBeenSet = true;
69 m_status = value;
70 }
72 SetStatus(value);
73 return *this;
74 }
76
78
83 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
84 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
85 template <typename UpdatedAtT = Aws::Utils::DateTime>
86 void SetUpdatedAt(UpdatedAtT&& value) {
87 m_updatedAtHasBeenSet = true;
88 m_updatedAt = std::forward<UpdatedAtT>(value);
89 }
90 template <typename UpdatedAtT = Aws::Utils::DateTime>
92 SetUpdatedAt(std::forward<UpdatedAtT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Vector<InventoryAggregateGroup>& GetGroups() const { return m_groups; }
103 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
104 template <typename GroupsT = Aws::Vector<InventoryAggregateGroup>>
105 void SetGroups(GroupsT&& value) {
106 m_groupsHasBeenSet = true;
107 m_groups = std::forward<GroupsT>(value);
108 }
109 template <typename GroupsT = Aws::Vector<InventoryAggregateGroup>>
111 SetGroups(std::forward<GroupsT>(value));
112 return *this;
113 }
114 template <typename GroupsT = InventoryAggregateGroup>
116 m_groupsHasBeenSet = true;
117 m_groups.emplace_back(std::forward<GroupsT>(value));
118 return *this;
119 }
121
123
127 inline long long GetOtherCount() const { return m_otherCount; }
128 inline bool OtherCountHasBeenSet() const { return m_otherCountHasBeenSet; }
129 inline void SetOtherCount(long long value) {
130 m_otherCountHasBeenSet = true;
131 m_otherCount = value;
132 }
133 inline InventoryAggregateResult& WithOtherCount(long long value) {
134 SetOtherCount(value);
135 return *this;
136 }
138
140
147 inline const Aws::Vector<InventoryCertificateTypeGroup>& GetCertificateTypeGroups() const { return m_certificateTypeGroups; }
148 inline bool CertificateTypeGroupsHasBeenSet() const { return m_certificateTypeGroupsHasBeenSet; }
149 template <typename CertificateTypeGroupsT = Aws::Vector<InventoryCertificateTypeGroup>>
150 void SetCertificateTypeGroups(CertificateTypeGroupsT&& value) {
151 m_certificateTypeGroupsHasBeenSet = true;
152 m_certificateTypeGroups = std::forward<CertificateTypeGroupsT>(value);
153 }
154 template <typename CertificateTypeGroupsT = Aws::Vector<InventoryCertificateTypeGroup>>
155 InventoryAggregateResult& WithCertificateTypeGroups(CertificateTypeGroupsT&& value) {
156 SetCertificateTypeGroups(std::forward<CertificateTypeGroupsT>(value));
157 return *this;
158 }
159 template <typename CertificateTypeGroupsT = InventoryCertificateTypeGroup>
160 InventoryAggregateResult& AddCertificateTypeGroups(CertificateTypeGroupsT&& value) {
161 m_certificateTypeGroupsHasBeenSet = true;
162 m_certificateTypeGroups.emplace_back(std::forward<CertificateTypeGroupsT>(value));
163 return *this;
164 }
166 private:
168
170
171 Aws::Utils::DateTime m_updatedAt{};
172
174
175 long long m_otherCount{0};
176
177 Aws::Vector<InventoryCertificateTypeGroup> m_certificateTypeGroups;
178 bool m_aggregateHasBeenSet = false;
179 bool m_statusHasBeenSet = false;
180 bool m_updatedAtHasBeenSet = false;
181 bool m_groupsHasBeenSet = false;
182 bool m_otherCountHasBeenSet = false;
183 bool m_certificateTypeGroupsHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace ACM
188} // namespace Aws
InventoryAggregateResult & WithOtherCount(long long value)
void SetCertificateTypeGroups(CertificateTypeGroupsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_ACM_API InventoryAggregateResult()=default
InventoryAggregateResult & WithStatus(InventoryAggregateStatus value)
AWS_ACM_API InventoryAggregateResult & operator=(Aws::Utils::Json::JsonView jsonValue)
InventoryAggregateResult & AddGroups(GroupsT &&value)
InventoryAggregateResult & AddCertificateTypeGroups(CertificateTypeGroupsT &&value)
InventoryAggregateResult & WithUpdatedAt(UpdatedAtT &&value)
void SetStatus(InventoryAggregateStatus value)
AWS_ACM_API InventoryAggregateResult(Aws::Utils::Json::JsonView jsonValue)
InventoryAggregateResult & WithCertificateTypeGroups(CertificateTypeGroupsT &&value)
const Aws::Vector< InventoryAggregateGroup > & GetGroups() const
InventoryAggregateResult & WithGroups(GroupsT &&value)
InventoryAggregateResult & WithAggregate(InventoryAggregate value)
const Aws::Vector< InventoryCertificateTypeGroup > & GetCertificateTypeGroups() const
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue