AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
InventoryUsage.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/AgentUsageDetail.h>
9#include <aws/acm/model/UsageTarget.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ACM {
23namespace Model {
24
32 public:
33 AWS_ACM_API InventoryUsage() = default;
37
39
42 inline const Aws::String& GetCertificateIdentifier() const { return m_certificateIdentifier; }
43 inline bool CertificateIdentifierHasBeenSet() const { return m_certificateIdentifierHasBeenSet; }
44 template <typename CertificateIdentifierT = Aws::String>
45 void SetCertificateIdentifier(CertificateIdentifierT&& value) {
46 m_certificateIdentifierHasBeenSet = true;
47 m_certificateIdentifier = std::forward<CertificateIdentifierT>(value);
48 }
49 template <typename CertificateIdentifierT = Aws::String>
50 InventoryUsage& WithCertificateIdentifier(CertificateIdentifierT&& value) {
51 SetCertificateIdentifier(std::forward<CertificateIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const UsageTarget& GetTarget() const { return m_target; }
61 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
62 template <typename TargetT = UsageTarget>
63 void SetTarget(TargetT&& value) {
64 m_targetHasBeenSet = true;
65 m_target = std::forward<TargetT>(value);
66 }
67 template <typename TargetT = UsageTarget>
68 InventoryUsage& WithTarget(TargetT&& value) {
69 SetTarget(std::forward<TargetT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetLastObservedAt() const { return m_lastObservedAt; }
79 inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
80 template <typename LastObservedAtT = Aws::Utils::DateTime>
81 void SetLastObservedAt(LastObservedAtT&& value) {
82 m_lastObservedAtHasBeenSet = true;
83 m_lastObservedAt = std::forward<LastObservedAtT>(value);
84 }
85 template <typename LastObservedAtT = Aws::Utils::DateTime>
86 InventoryUsage& WithLastObservedAt(LastObservedAtT&& value) {
87 SetLastObservedAt(std::forward<LastObservedAtT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetAccountId() const { return m_accountId; }
97 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
98 template <typename AccountIdT = Aws::String>
99 void SetAccountId(AccountIdT&& value) {
100 m_accountIdHasBeenSet = true;
101 m_accountId = std::forward<AccountIdT>(value);
102 }
103 template <typename AccountIdT = Aws::String>
104 InventoryUsage& WithAccountId(AccountIdT&& value) {
105 SetAccountId(std::forward<AccountIdT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetRegion() const { return m_region; }
116 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
117 template <typename RegionT = Aws::String>
118 void SetRegion(RegionT&& value) {
119 m_regionHasBeenSet = true;
120 m_region = std::forward<RegionT>(value);
121 }
122 template <typename RegionT = Aws::String>
123 InventoryUsage& WithRegion(RegionT&& value) {
124 SetRegion(std::forward<RegionT>(value));
125 return *this;
126 }
128
130
134 inline const AgentUsageDetail& GetAgentReported() const { return m_agentReported; }
135 inline bool AgentReportedHasBeenSet() const { return m_agentReportedHasBeenSet; }
136 template <typename AgentReportedT = AgentUsageDetail>
137 void SetAgentReported(AgentReportedT&& value) {
138 m_agentReportedHasBeenSet = true;
139 m_agentReported = std::forward<AgentReportedT>(value);
140 }
141 template <typename AgentReportedT = AgentUsageDetail>
142 InventoryUsage& WithAgentReported(AgentReportedT&& value) {
143 SetAgentReported(std::forward<AgentReportedT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_certificateIdentifier;
149
150 UsageTarget m_target;
151
152 Aws::Utils::DateTime m_lastObservedAt{};
153
154 Aws::String m_accountId;
155
156 Aws::String m_region;
157
158 AgentUsageDetail m_agentReported;
159 bool m_certificateIdentifierHasBeenSet = false;
160 bool m_targetHasBeenSet = false;
161 bool m_lastObservedAtHasBeenSet = false;
162 bool m_accountIdHasBeenSet = false;
163 bool m_regionHasBeenSet = false;
164 bool m_agentReportedHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace ACM
169} // namespace Aws
void SetAgentReported(AgentReportedT &&value)
void SetLastObservedAt(LastObservedAtT &&value)
const Aws::String & GetCertificateIdentifier() const
const AgentUsageDetail & GetAgentReported() const
const Aws::String & GetRegion() const
InventoryUsage & WithAgentReported(AgentReportedT &&value)
const UsageTarget & GetTarget() const
AWS_ACM_API InventoryUsage()=default
void SetCertificateIdentifier(CertificateIdentifierT &&value)
AWS_ACM_API InventoryUsage(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACM_API InventoryUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
InventoryUsage & WithLastObservedAt(LastObservedAtT &&value)
void SetAccountId(AccountIdT &&value)
InventoryUsage & WithAccountId(AccountIdT &&value)
const Aws::Utils::DateTime & GetLastObservedAt() const
InventoryUsage & WithTarget(TargetT &&value)
const Aws::String & GetAccountId() const
void SetTarget(TargetT &&value)
InventoryUsage & WithCertificateIdentifier(CertificateIdentifierT &&value)
void SetRegion(RegionT &&value)
InventoryUsage & WithRegion(RegionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue