AWS SDK for C++

AWS SDK for C++ Version 1.11.907

Loading...
Searching...
No Matches
CapacityReservationAdjustmentDetails.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API CapacityReservationAdjustmentDetails() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
44 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
45 template <typename StartDateT = Aws::Utils::DateTime>
46 void SetStartDate(StartDateT&& value) {
47 m_startDateHasBeenSet = true;
48 m_startDate = std::forward<StartDateT>(value);
49 }
50 template <typename StartDateT = Aws::Utils::DateTime>
52 SetStartDate(std::forward<StartDateT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
63 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
64 template <typename EndDateT = Aws::Utils::DateTime>
65 void SetEndDate(EndDateT&& value) {
66 m_endDateHasBeenSet = true;
67 m_endDate = std::forward<EndDateT>(value);
68 }
69 template <typename EndDateT = Aws::Utils::DateTime>
71 SetEndDate(std::forward<EndDateT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Utils::DateTime& GetCommitmentEndDate() const { return m_commitmentEndDate; }
82 inline bool CommitmentEndDateHasBeenSet() const { return m_commitmentEndDateHasBeenSet; }
83 template <typename CommitmentEndDateT = Aws::Utils::DateTime>
84 void SetCommitmentEndDate(CommitmentEndDateT&& value) {
85 m_commitmentEndDateHasBeenSet = true;
86 m_commitmentEndDate = std::forward<CommitmentEndDateT>(value);
87 }
88 template <typename CommitmentEndDateT = Aws::Utils::DateTime>
90 SetCommitmentEndDate(std::forward<CommitmentEndDateT>(value));
91 return *this;
92 }
94
96
103 inline const Aws::String& GetEndDateType() const { return m_endDateType; }
104 inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
105 template <typename EndDateTypeT = Aws::String>
106 void SetEndDateType(EndDateTypeT&& value) {
107 m_endDateTypeHasBeenSet = true;
108 m_endDateType = std::forward<EndDateTypeT>(value);
109 }
110 template <typename EndDateTypeT = Aws::String>
112 SetEndDateType(std::forward<EndDateTypeT>(value));
113 return *this;
114 }
116
118
122 inline long long GetCommitmentDuration() const { return m_commitmentDuration; }
123 inline bool CommitmentDurationHasBeenSet() const { return m_commitmentDurationHasBeenSet; }
124 inline void SetCommitmentDuration(long long value) {
125 m_commitmentDurationHasBeenSet = true;
126 m_commitmentDuration = value;
127 }
130 return *this;
131 }
133 private:
134 Aws::Utils::DateTime m_startDate{};
135
136 Aws::Utils::DateTime m_endDate{};
137
138 Aws::Utils::DateTime m_commitmentEndDate{};
139
140 Aws::String m_endDateType;
141
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;
148};
149
150} // namespace Model
151} // namespace EC2
152} // namespace Aws
CapacityReservationAdjustmentDetails & WithEndDate(EndDateT &&value)
CapacityReservationAdjustmentDetails & WithCommitmentDuration(long long value)
CapacityReservationAdjustmentDetails & WithEndDateType(EndDateTypeT &&value)
CapacityReservationAdjustmentDetails & WithCommitmentEndDate(CommitmentEndDateT &&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
CapacityReservationAdjustmentDetails & WithStartDate(StartDateT &&value)
AWS_EC2_API CapacityReservationAdjustmentDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
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