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>
45 template <
typename StartDateT = Aws::Utils::DateTime>
47 m_startDateHasBeenSet =
true;
48 m_startDate = std::forward<StartDateT>(value);
50 template <
typename StartDateT = Aws::Utils::DateTime>
64 template <
typename EndDateT = Aws::Utils::DateTime>
66 m_endDateHasBeenSet =
true;
67 m_endDate = std::forward<EndDateT>(value);
69 template <
typename EndDateT = Aws::Utils::DateTime>
83 template <
typename CommitmentEndDateT = Aws::Utils::DateTime>
85 m_commitmentEndDateHasBeenSet =
true;
86 m_commitmentEndDate = std::forward<CommitmentEndDateT>(value);
88 template <
typename CommitmentEndDateT = Aws::Utils::DateTime>
105 template <
typename EndDateTypeT = Aws::String>
107 m_endDateTypeHasBeenSet =
true;
108 m_endDateType = std::forward<EndDateTypeT>(value);
110 template <
typename EndDateTypeT = Aws::String>
125 m_commitmentDurationHasBeenSet =
true;
126 m_commitmentDuration = value;
142 long long m_commitmentDuration{0};
143 bool m_startDateHasBeenSet =
false;
144 bool m_endDateHasBeenSet =
false;
145 bool m_commitmentEndDateHasBeenSet =
false;
146 bool m_endDateTypeHasBeenSet =
false;
147 bool m_commitmentDurationHasBeenSet =
false;
bool EndDateTypeHasBeenSet() const
AWS_EC2_API CapacityReservationAdjustmentDetails()=default
void SetEndDateType(EndDateTypeT &&value)
const Aws::Utils::DateTime & GetStartDate() const
void SetStartDate(StartDateT &&value)
const Aws::String & GetEndDateType() const
void SetCommitmentDuration(long long value)
CapacityReservationAdjustmentDetails & WithEndDate(EndDateT &&value)
const Aws::Utils::DateTime & GetCommitmentEndDate() const
void SetCommitmentEndDate(CommitmentEndDateT &&value)
CapacityReservationAdjustmentDetails & WithCommitmentDuration(long long value)
CapacityReservationAdjustmentDetails & WithEndDateType(EndDateTypeT &&value)
void SetEndDate(EndDateT &&value)
CapacityReservationAdjustmentDetails & WithCommitmentEndDate(CommitmentEndDateT &&value)
bool CommitmentDurationHasBeenSet() const
bool CommitmentEndDateHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool EndDateHasBeenSet() const
const Aws::Utils::DateTime & GetEndDate() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityReservationAdjustmentDetails & WithStartDate(StartDateT &&value)
AWS_EC2_API CapacityReservationAdjustmentDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
bool StartDateHasBeenSet() const
long long GetCommitmentDuration() const
AWS_EC2_API CapacityReservationAdjustmentDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream