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>
50 template <
typename CapacityReservationCancellationQuoteIdT = Aws::String>
52 m_capacityReservationCancellationQuoteIdHasBeenSet =
true;
53 m_capacityReservationCancellationQuoteId = std::forward<CapacityReservationCancellationQuoteIdT>(value);
55 template <
typename CapacityReservationCancellationQuoteIdT = Aws::String>
69 template <
typename CapacityReservationIdT = Aws::String>
71 m_capacityReservationIdHasBeenSet =
true;
72 m_capacityReservationId = std::forward<CapacityReservationIdT>(value);
74 template <
typename CapacityReservationIdT = Aws::String>
87 template <
typename CreateTimeT = Aws::Utils::DateTime>
89 m_createTimeHasBeenSet =
true;
90 m_createTime = std::forward<CreateTimeT>(value);
92 template <
typename CreateTimeT = Aws::Utils::DateTime>
105 template <
typename ExpirationTimeT = Aws::Utils::DateTime>
107 m_expirationTimeHasBeenSet =
true;
108 m_expirationTime = std::forward<ExpirationTimeT>(value);
110 template <
typename ExpirationTimeT = Aws::Utils::DateTime>
125 m_quoteStateHasBeenSet =
true;
126 m_quoteState = value;
140 template <
typename CurrentConfigurationT = CapacityReservationConfiguration>
142 m_currentConfigurationHasBeenSet =
true;
143 m_currentConfiguration = std::forward<CurrentConfigurationT>(value);
145 template <
typename CurrentConfigurationT = CapacityReservationConfiguration>
159 template <
typename CancellationTermsT = Aws::Vector<CancellationTerms>>
161 m_cancellationTermsHasBeenSet =
true;
162 m_cancellationTerms = std::forward<CancellationTermsT>(value);
164 template <
typename CancellationTermsT = Aws::Vector<CancellationTerms>>
169 template <
typename CancellationTermsT = CancellationTerms>
171 m_cancellationTermsHasBeenSet =
true;
172 m_cancellationTerms.emplace_back(std::forward<CancellationTermsT>(value));
183 template <
typename TagsT = Aws::Vector<Tag>>
185 m_tagsHasBeenSet =
true;
186 m_tags = std::forward<TagsT>(value);
188 template <
typename TagsT = Aws::Vector<Tag>>
190 SetTags(std::forward<TagsT>(value));
193 template <
typename TagsT = Tag>
195 m_tagsHasBeenSet =
true;
196 m_tags.emplace_back(std::forward<TagsT>(value));
201 Aws::String m_capacityReservationCancellationQuoteId;
211 CapacityReservationConfiguration m_currentConfiguration;
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;
AWS_EC2_API CapacityReservationCancellationQuote & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCancellationTerms(CancellationTermsT &&value)
void SetCreateTime(CreateTimeT &&value)
CapacityReservationCancellationQuote & WithCapacityReservationCancellationQuoteId(CapacityReservationCancellationQuoteIdT &&value)
const Aws::String & GetCapacityReservationId() const
bool CurrentConfigurationHasBeenSet() const
CapacityReservationCancellationQuote & WithCancellationTerms(CancellationTermsT &&value)
bool CapacityReservationCancellationQuoteIdHasBeenSet() const
void SetQuoteState(CapacityReservationCancellationQuoteState value)
void SetTags(TagsT &&value)
AWS_EC2_API CapacityReservationCancellationQuote()=default
bool QuoteStateHasBeenSet() const
void SetCurrentConfiguration(CurrentConfigurationT &&value)
bool TagsHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::DateTime & GetExpirationTime() const
bool CapacityReservationIdHasBeenSet() const
const Aws::Utils::DateTime & GetCreateTime() const
bool CreateTimeHasBeenSet() const
CapacityReservationCancellationQuote & WithQuoteState(CapacityReservationCancellationQuoteState value)
CapacityReservationCancellationQuote & WithExpirationTime(ExpirationTimeT &&value)
const CapacityReservationConfiguration & GetCurrentConfiguration() const
void SetCapacityReservationId(CapacityReservationIdT &&value)
CapacityReservationCancellationQuote & WithCurrentConfiguration(CurrentConfigurationT &&value)
AWS_EC2_API CapacityReservationCancellationQuote(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ExpirationTimeHasBeenSet() const
void SetExpirationTime(ExpirationTimeT &&value)
void SetCapacityReservationCancellationQuoteId(CapacityReservationCancellationQuoteIdT &&value)
CapacityReservationCancellationQuote & AddCancellationTerms(CancellationTermsT &&value)
CapacityReservationCancellationQuote & AddTags(TagsT &&value)
CapacityReservationCancellationQuoteState GetQuoteState() const
CapacityReservationCancellationQuote & WithCapacityReservationId(CapacityReservationIdT &&value)
CapacityReservationCancellationQuote & WithTags(TagsT &&value)
bool CancellationTermsHasBeenSet() const
CapacityReservationCancellationQuote & WithCreateTime(CreateTimeT &&value)
const Aws::Vector< CancellationTerms > & GetCancellationTerms() const
const Aws::String & GetCapacityReservationCancellationQuoteId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityReservationCancellationQuoteState
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