AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
CapacityReservationCancellationQuote.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/CancellationTerms.h>
13#include <aws/ec2/model/CapacityReservationCancellationQuoteState.h>
14#include <aws/ec2/model/CapacityReservationConfiguration.h>
15#include <aws/ec2/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
27
36 public:
37 AWS_EC2_API CapacityReservationCancellationQuote() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
48 inline const Aws::String& GetCapacityReservationCancellationQuoteId() const { return m_capacityReservationCancellationQuoteId; }
49 inline bool CapacityReservationCancellationQuoteIdHasBeenSet() const { return m_capacityReservationCancellationQuoteIdHasBeenSet; }
50 template <typename CapacityReservationCancellationQuoteIdT = Aws::String>
51 void SetCapacityReservationCancellationQuoteId(CapacityReservationCancellationQuoteIdT&& value) {
52 m_capacityReservationCancellationQuoteIdHasBeenSet = true;
53 m_capacityReservationCancellationQuoteId = std::forward<CapacityReservationCancellationQuoteIdT>(value);
54 }
55 template <typename CapacityReservationCancellationQuoteIdT = Aws::String>
56 CapacityReservationCancellationQuote& WithCapacityReservationCancellationQuoteId(CapacityReservationCancellationQuoteIdT&& value) {
57 SetCapacityReservationCancellationQuoteId(std::forward<CapacityReservationCancellationQuoteIdT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetCapacityReservationId() const { return m_capacityReservationId; }
68 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
69 template <typename CapacityReservationIdT = Aws::String>
70 void SetCapacityReservationId(CapacityReservationIdT&& value) {
71 m_capacityReservationIdHasBeenSet = true;
72 m_capacityReservationId = std::forward<CapacityReservationIdT>(value);
73 }
74 template <typename CapacityReservationIdT = Aws::String>
76 SetCapacityReservationId(std::forward<CapacityReservationIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
86 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
87 template <typename CreateTimeT = Aws::Utils::DateTime>
88 void SetCreateTime(CreateTimeT&& value) {
89 m_createTimeHasBeenSet = true;
90 m_createTime = std::forward<CreateTimeT>(value);
91 }
92 template <typename CreateTimeT = Aws::Utils::DateTime>
94 SetCreateTime(std::forward<CreateTimeT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
104 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
105 template <typename ExpirationTimeT = Aws::Utils::DateTime>
106 void SetExpirationTime(ExpirationTimeT&& value) {
107 m_expirationTimeHasBeenSet = true;
108 m_expirationTime = std::forward<ExpirationTimeT>(value);
109 }
110 template <typename ExpirationTimeT = Aws::Utils::DateTime>
112 SetExpirationTime(std::forward<ExpirationTimeT>(value));
113 return *this;
114 }
116
118
122 inline CapacityReservationCancellationQuoteState GetQuoteState() const { return m_quoteState; }
123 inline bool QuoteStateHasBeenSet() const { return m_quoteStateHasBeenSet; }
125 m_quoteStateHasBeenSet = true;
126 m_quoteState = value;
127 }
129 SetQuoteState(value);
130 return *this;
131 }
133
135
138 inline const CapacityReservationConfiguration& GetCurrentConfiguration() const { return m_currentConfiguration; }
139 inline bool CurrentConfigurationHasBeenSet() const { return m_currentConfigurationHasBeenSet; }
140 template <typename CurrentConfigurationT = CapacityReservationConfiguration>
141 void SetCurrentConfiguration(CurrentConfigurationT&& value) {
142 m_currentConfigurationHasBeenSet = true;
143 m_currentConfiguration = std::forward<CurrentConfigurationT>(value);
144 }
145 template <typename CurrentConfigurationT = CapacityReservationConfiguration>
147 SetCurrentConfiguration(std::forward<CurrentConfigurationT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::Vector<CancellationTerms>& GetCancellationTerms() const { return m_cancellationTerms; }
158 inline bool CancellationTermsHasBeenSet() const { return m_cancellationTermsHasBeenSet; }
159 template <typename CancellationTermsT = Aws::Vector<CancellationTerms>>
160 void SetCancellationTerms(CancellationTermsT&& value) {
161 m_cancellationTermsHasBeenSet = true;
162 m_cancellationTerms = std::forward<CancellationTermsT>(value);
163 }
164 template <typename CancellationTermsT = Aws::Vector<CancellationTerms>>
166 SetCancellationTerms(std::forward<CancellationTermsT>(value));
167 return *this;
168 }
169 template <typename CancellationTermsT = CancellationTerms>
171 m_cancellationTermsHasBeenSet = true;
172 m_cancellationTerms.emplace_back(std::forward<CancellationTermsT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 template <typename TagsT = Aws::Vector<Tag>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Vector<Tag>>
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsT = Tag>
195 m_tagsHasBeenSet = true;
196 m_tags.emplace_back(std::forward<TagsT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_capacityReservationCancellationQuoteId;
202
203 Aws::String m_capacityReservationId;
204
205 Aws::Utils::DateTime m_createTime{};
206
207 Aws::Utils::DateTime m_expirationTime{};
208
210
211 CapacityReservationConfiguration m_currentConfiguration;
212
213 Aws::Vector<CancellationTerms> m_cancellationTerms;
214
215 Aws::Vector<Tag> m_tags;
216 bool m_capacityReservationCancellationQuoteIdHasBeenSet = false;
217 bool m_capacityReservationIdHasBeenSet = false;
218 bool m_createTimeHasBeenSet = false;
219 bool m_expirationTimeHasBeenSet = false;
220 bool m_quoteStateHasBeenSet = false;
221 bool m_currentConfigurationHasBeenSet = false;
222 bool m_cancellationTermsHasBeenSet = false;
223 bool m_tagsHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace EC2
228} // namespace Aws
AWS_EC2_API CapacityReservationCancellationQuote & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationCancellationQuote & WithCapacityReservationCancellationQuoteId(CapacityReservationCancellationQuoteIdT &&value)
CapacityReservationCancellationQuote & WithCancellationTerms(CancellationTermsT &&value)
void SetQuoteState(CapacityReservationCancellationQuoteState value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityReservationCancellationQuote & WithQuoteState(CapacityReservationCancellationQuoteState value)
CapacityReservationCancellationQuote & WithExpirationTime(ExpirationTimeT &&value)
const CapacityReservationConfiguration & GetCurrentConfiguration() const
CapacityReservationCancellationQuote & WithCurrentConfiguration(CurrentConfigurationT &&value)
AWS_EC2_API CapacityReservationCancellationQuote(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCapacityReservationCancellationQuoteId(CapacityReservationCancellationQuoteIdT &&value)
CapacityReservationCancellationQuote & AddCancellationTerms(CancellationTermsT &&value)
CapacityReservationCancellationQuote & AddTags(TagsT &&value)
CapacityReservationCancellationQuoteState GetQuoteState() const
CapacityReservationCancellationQuote & WithCapacityReservationId(CapacityReservationIdT &&value)
CapacityReservationCancellationQuote & WithTags(TagsT &&value)
CapacityReservationCancellationQuote & WithCreateTime(CreateTimeT &&value)
const Aws::Vector< CancellationTerms > & GetCancellationTerms() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream