AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityReservationBillingRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/CapacityReservationBillingRequestStatus.h>
12#include <aws/ec2/model/CapacityReservationInfo.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
51 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
52 inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
53 inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
54 inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
59
61
64 inline const Aws::String& GetRequestedBy() const{ return m_requestedBy; }
65 inline bool RequestedByHasBeenSet() const { return m_requestedByHasBeenSet; }
66 inline void SetRequestedBy(const Aws::String& value) { m_requestedByHasBeenSet = true; m_requestedBy = value; }
67 inline void SetRequestedBy(Aws::String&& value) { m_requestedByHasBeenSet = true; m_requestedBy = std::move(value); }
68 inline void SetRequestedBy(const char* value) { m_requestedByHasBeenSet = true; m_requestedBy.assign(value); }
69 inline CapacityReservationBillingRequest& WithRequestedBy(const Aws::String& value) { SetRequestedBy(value); return *this;}
70 inline CapacityReservationBillingRequest& WithRequestedBy(Aws::String&& value) { SetRequestedBy(std::move(value)); return *this;}
71 inline CapacityReservationBillingRequest& WithRequestedBy(const char* value) { SetRequestedBy(value); return *this;}
73
75
78 inline const Aws::String& GetUnusedReservationBillingOwnerId() const{ return m_unusedReservationBillingOwnerId; }
79 inline bool UnusedReservationBillingOwnerIdHasBeenSet() const { return m_unusedReservationBillingOwnerIdHasBeenSet; }
80 inline void SetUnusedReservationBillingOwnerId(const Aws::String& value) { m_unusedReservationBillingOwnerIdHasBeenSet = true; m_unusedReservationBillingOwnerId = value; }
81 inline void SetUnusedReservationBillingOwnerId(Aws::String&& value) { m_unusedReservationBillingOwnerIdHasBeenSet = true; m_unusedReservationBillingOwnerId = std::move(value); }
82 inline void SetUnusedReservationBillingOwnerId(const char* value) { m_unusedReservationBillingOwnerIdHasBeenSet = true; m_unusedReservationBillingOwnerId.assign(value); }
87
89
93 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
94 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
95 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
96 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
100
102
108 inline const CapacityReservationBillingRequestStatus& GetStatus() const{ return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(const CapacityReservationBillingRequestStatus& value) { m_statusHasBeenSet = true; m_status = value; }
111 inline void SetStatus(CapacityReservationBillingRequestStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
115
117
120 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
121 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
122 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
123 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
124 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
126 inline CapacityReservationBillingRequest& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
127 inline CapacityReservationBillingRequest& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
129
131
134 inline const CapacityReservationInfo& GetCapacityReservationInfo() const{ return m_capacityReservationInfo; }
135 inline bool CapacityReservationInfoHasBeenSet() const { return m_capacityReservationInfoHasBeenSet; }
136 inline void SetCapacityReservationInfo(const CapacityReservationInfo& value) { m_capacityReservationInfoHasBeenSet = true; m_capacityReservationInfo = value; }
137 inline void SetCapacityReservationInfo(CapacityReservationInfo&& value) { m_capacityReservationInfoHasBeenSet = true; m_capacityReservationInfo = std::move(value); }
141 private:
142
143 Aws::String m_capacityReservationId;
144 bool m_capacityReservationIdHasBeenSet = false;
145
146 Aws::String m_requestedBy;
147 bool m_requestedByHasBeenSet = false;
148
149 Aws::String m_unusedReservationBillingOwnerId;
150 bool m_unusedReservationBillingOwnerIdHasBeenSet = false;
151
152 Aws::Utils::DateTime m_lastUpdateTime;
153 bool m_lastUpdateTimeHasBeenSet = false;
154
156 bool m_statusHasBeenSet = false;
157
158 Aws::String m_statusMessage;
159 bool m_statusMessageHasBeenSet = false;
160
161 CapacityReservationInfo m_capacityReservationInfo;
162 bool m_capacityReservationInfoHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
void SetStatus(CapacityReservationBillingRequestStatus &&value)
AWS_EC2_API CapacityReservationBillingRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationBillingRequest & WithUnusedReservationBillingOwnerId(const Aws::String &value)
CapacityReservationBillingRequest & WithCapacityReservationId(const Aws::String &value)
CapacityReservationBillingRequest & WithStatusMessage(const char *value)
CapacityReservationBillingRequest & WithRequestedBy(const Aws::String &value)
AWS_EC2_API CapacityReservationBillingRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationBillingRequest & WithCapacityReservationId(const char *value)
const CapacityReservationBillingRequestStatus & GetStatus() const
CapacityReservationBillingRequest & WithLastUpdateTime(Aws::Utils::DateTime &&value)
CapacityReservationBillingRequest & WithRequestedBy(const char *value)
CapacityReservationBillingRequest & WithCapacityReservationInfo(const CapacityReservationInfo &value)
CapacityReservationBillingRequest & WithStatus(CapacityReservationBillingRequestStatus &&value)
void SetStatus(const CapacityReservationBillingRequestStatus &value)
CapacityReservationBillingRequest & WithUnusedReservationBillingOwnerId(Aws::String &&value)
CapacityReservationBillingRequest & WithCapacityReservationId(Aws::String &&value)
void SetCapacityReservationInfo(const CapacityReservationInfo &value)
CapacityReservationBillingRequest & WithLastUpdateTime(const Aws::Utils::DateTime &value)
CapacityReservationBillingRequest & WithStatus(const CapacityReservationBillingRequestStatus &value)
CapacityReservationBillingRequest & WithRequestedBy(Aws::String &&value)
CapacityReservationBillingRequest & WithStatusMessage(Aws::String &&value)
CapacityReservationBillingRequest & WithCapacityReservationInfo(CapacityReservationInfo &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityReservationBillingRequest & WithStatusMessage(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityReservationBillingRequest & WithUnusedReservationBillingOwnerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream