AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CapacityReservationBillingRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CapacityReservationBillingRequestStatus.h>
12#include <aws/ec2/model/CapacityReservationInfo.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API CapacityReservationBillingRequest() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetCapacityReservationId() const { return m_capacityReservationId; }
45 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
46 template <typename CapacityReservationIdT = Aws::String>
47 void SetCapacityReservationId(CapacityReservationIdT&& value) {
48 m_capacityReservationIdHasBeenSet = true;
49 m_capacityReservationId = std::forward<CapacityReservationIdT>(value);
50 }
51 template <typename CapacityReservationIdT = Aws::String>
53 SetCapacityReservationId(std::forward<CapacityReservationIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetRequestedBy() const { return m_requestedBy; }
63 inline bool RequestedByHasBeenSet() const { return m_requestedByHasBeenSet; }
64 template <typename RequestedByT = Aws::String>
65 void SetRequestedBy(RequestedByT&& value) {
66 m_requestedByHasBeenSet = true;
67 m_requestedBy = std::forward<RequestedByT>(value);
68 }
69 template <typename RequestedByT = Aws::String>
71 SetRequestedBy(std::forward<RequestedByT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetUnusedReservationBillingOwnerId() const { return m_unusedReservationBillingOwnerId; }
81 inline bool UnusedReservationBillingOwnerIdHasBeenSet() const { return m_unusedReservationBillingOwnerIdHasBeenSet; }
82 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
83 void SetUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT&& value) {
84 m_unusedReservationBillingOwnerIdHasBeenSet = true;
85 m_unusedReservationBillingOwnerId = std::forward<UnusedReservationBillingOwnerIdT>(value);
86 }
87 template <typename UnusedReservationBillingOwnerIdT = Aws::String>
89 SetUnusedReservationBillingOwnerId(std::forward<UnusedReservationBillingOwnerIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
100 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
101 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
102 void SetLastUpdateTime(LastUpdateTimeT&& value) {
103 m_lastUpdateTimeHasBeenSet = true;
104 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
105 }
106 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
108 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
109 return *this;
110 }
112
114
120 inline CapacityReservationBillingRequestStatus GetStatus() const { return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 m_statusHasBeenSet = true;
124 m_status = value;
125 }
127 SetStatus(value);
128 return *this;
129 }
131
133
136 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
137 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
138 template <typename StatusMessageT = Aws::String>
139 void SetStatusMessage(StatusMessageT&& value) {
140 m_statusMessageHasBeenSet = true;
141 m_statusMessage = std::forward<StatusMessageT>(value);
142 }
143 template <typename StatusMessageT = Aws::String>
145 SetStatusMessage(std::forward<StatusMessageT>(value));
146 return *this;
147 }
149
151
154 inline const CapacityReservationInfo& GetCapacityReservationInfo() const { return m_capacityReservationInfo; }
155 inline bool CapacityReservationInfoHasBeenSet() const { return m_capacityReservationInfoHasBeenSet; }
156 template <typename CapacityReservationInfoT = CapacityReservationInfo>
157 void SetCapacityReservationInfo(CapacityReservationInfoT&& value) {
158 m_capacityReservationInfoHasBeenSet = true;
159 m_capacityReservationInfo = std::forward<CapacityReservationInfoT>(value);
160 }
161 template <typename CapacityReservationInfoT = CapacityReservationInfo>
163 SetCapacityReservationInfo(std::forward<CapacityReservationInfoT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_capacityReservationId;
169
170 Aws::String m_requestedBy;
171
172 Aws::String m_unusedReservationBillingOwnerId;
173
174 Aws::Utils::DateTime m_lastUpdateTime{};
175
177
178 Aws::String m_statusMessage;
179
180 CapacityReservationInfo m_capacityReservationInfo;
181 bool m_capacityReservationIdHasBeenSet = false;
182 bool m_requestedByHasBeenSet = false;
183 bool m_unusedReservationBillingOwnerIdHasBeenSet = false;
184 bool m_lastUpdateTimeHasBeenSet = false;
185 bool m_statusHasBeenSet = false;
186 bool m_statusMessageHasBeenSet = false;
187 bool m_capacityReservationInfoHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace EC2
192} // namespace Aws
AWS_EC2_API CapacityReservationBillingRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationBillingRequestStatus GetStatus() const
AWS_EC2_API CapacityReservationBillingRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationBillingRequest & WithLastUpdateTime(LastUpdateTimeT &&value)
CapacityReservationBillingRequest & WithRequestedBy(RequestedByT &&value)
CapacityReservationBillingRequest & WithUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT &&value)
CapacityReservationBillingRequest & WithStatus(CapacityReservationBillingRequestStatus value)
CapacityReservationBillingRequest & WithCapacityReservationInfo(CapacityReservationInfoT &&value)
CapacityReservationBillingRequest & WithStatusMessage(StatusMessageT &&value)
void SetStatus(CapacityReservationBillingRequestStatus value)
void SetUnusedReservationBillingOwnerId(UnusedReservationBillingOwnerIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityReservationBillingRequest & WithCapacityReservationId(CapacityReservationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream