AWS SDK for C++  1.9.160
AWS SDK for C++
ReservationPlan.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace MediaConvert
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Commitment& GetCommitment() const{ return m_commitment; }
48 
52  inline bool CommitmentHasBeenSet() const { return m_commitmentHasBeenSet; }
53 
57  inline void SetCommitment(const Commitment& value) { m_commitmentHasBeenSet = true; m_commitment = value; }
58 
62  inline void SetCommitment(Commitment&& value) { m_commitmentHasBeenSet = true; m_commitment = std::move(value); }
63 
67  inline ReservationPlan& WithCommitment(const Commitment& value) { SetCommitment(value); return *this;}
68 
72  inline ReservationPlan& WithCommitment(Commitment&& value) { SetCommitment(std::move(value)); return *this;}
73 
74 
79  inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
80 
85  inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
86 
91  inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
92 
97  inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
98 
103  inline ReservationPlan& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
104 
109  inline ReservationPlan& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
110 
111 
116  inline const Aws::Utils::DateTime& GetPurchasedAt() const{ return m_purchasedAt; }
117 
122  inline bool PurchasedAtHasBeenSet() const { return m_purchasedAtHasBeenSet; }
123 
128  inline void SetPurchasedAt(const Aws::Utils::DateTime& value) { m_purchasedAtHasBeenSet = true; m_purchasedAt = value; }
129 
134  inline void SetPurchasedAt(Aws::Utils::DateTime&& value) { m_purchasedAtHasBeenSet = true; m_purchasedAt = std::move(value); }
135 
140  inline ReservationPlan& WithPurchasedAt(const Aws::Utils::DateTime& value) { SetPurchasedAt(value); return *this;}
141 
146  inline ReservationPlan& WithPurchasedAt(Aws::Utils::DateTime&& value) { SetPurchasedAt(std::move(value)); return *this;}
147 
148 
153  inline const RenewalType& GetRenewalType() const{ return m_renewalType; }
154 
159  inline bool RenewalTypeHasBeenSet() const { return m_renewalTypeHasBeenSet; }
160 
165  inline void SetRenewalType(const RenewalType& value) { m_renewalTypeHasBeenSet = true; m_renewalType = value; }
166 
171  inline void SetRenewalType(RenewalType&& value) { m_renewalTypeHasBeenSet = true; m_renewalType = std::move(value); }
172 
177  inline ReservationPlan& WithRenewalType(const RenewalType& value) { SetRenewalType(value); return *this;}
178 
183  inline ReservationPlan& WithRenewalType(RenewalType&& value) { SetRenewalType(std::move(value)); return *this;}
184 
185 
194  inline int GetReservedSlots() const{ return m_reservedSlots; }
195 
204  inline bool ReservedSlotsHasBeenSet() const { return m_reservedSlotsHasBeenSet; }
205 
214  inline void SetReservedSlots(int value) { m_reservedSlotsHasBeenSet = true; m_reservedSlots = value; }
215 
224  inline ReservationPlan& WithReservedSlots(int value) { SetReservedSlots(value); return *this;}
225 
226 
230  inline const ReservationPlanStatus& GetStatus() const{ return m_status; }
231 
235  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
236 
240  inline void SetStatus(const ReservationPlanStatus& value) { m_statusHasBeenSet = true; m_status = value; }
241 
245  inline void SetStatus(ReservationPlanStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
246 
250  inline ReservationPlan& WithStatus(const ReservationPlanStatus& value) { SetStatus(value); return *this;}
251 
255  inline ReservationPlan& WithStatus(ReservationPlanStatus&& value) { SetStatus(std::move(value)); return *this;}
256 
257  private:
258 
259  Commitment m_commitment;
260  bool m_commitmentHasBeenSet;
261 
262  Aws::Utils::DateTime m_expiresAt;
263  bool m_expiresAtHasBeenSet;
264 
265  Aws::Utils::DateTime m_purchasedAt;
266  bool m_purchasedAtHasBeenSet;
267 
268  RenewalType m_renewalType;
269  bool m_renewalTypeHasBeenSet;
270 
271  int m_reservedSlots;
272  bool m_reservedSlotsHasBeenSet;
273 
274  ReservationPlanStatus m_status;
275  bool m_statusHasBeenSet;
276  };
277 
278 } // namespace Model
279 } // namespace MediaConvert
280 } // namespace Aws
Aws::MediaConvert::Model::ReservationPlan::SetPurchasedAt
void SetPurchasedAt(const Aws::Utils::DateTime &value)
Definition: ReservationPlan.h:128
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MediaConvert::Model::ReservationPlan::WithPurchasedAt
ReservationPlan & WithPurchasedAt(Aws::Utils::DateTime &&value)
Definition: ReservationPlan.h:146
Aws::MediaConvert::Model::ReservationPlan::SetStatus
void SetStatus(const ReservationPlanStatus &value)
Definition: ReservationPlan.h:240
MediaConvert_EXPORTS.h
AWS_MEDIACONVERT_API
#define AWS_MEDIACONVERT_API
Definition: MediaConvert_EXPORTS.h:28
DateTime.h
Aws::MediaConvert::Model::ReservationPlan::RenewalTypeHasBeenSet
bool RenewalTypeHasBeenSet() const
Definition: ReservationPlan.h:159
Aws::MediaConvert::Model::RenewalType
RenewalType
Definition: RenewalType.h:17
Aws::MediaConvert::Model::ReservationPlan::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Commitment.h
Aws::MediaConvert::Model::ReservationPlan::WithStatus
ReservationPlan & WithStatus(ReservationPlanStatus &&value)
Definition: ReservationPlan.h:255
ReservationPlanStatus.h
RenewalType.h
Aws::MediaConvert::Model::ReservationPlan::SetCommitment
void SetCommitment(const Commitment &value)
Definition: ReservationPlan.h:57
Aws::MediaConvert::Model::ReservationPlan::GetReservedSlots
int GetReservedSlots() const
Definition: ReservationPlan.h:194
Aws::MediaConvert::Model::ReservationPlan
Definition: ReservationPlan.h:36
Aws::MediaConvert::Model::ReservationPlan::WithExpiresAt
ReservationPlan & WithExpiresAt(Aws::Utils::DateTime &&value)
Definition: ReservationPlan.h:109
Aws::MediaConvert::Model::ReservationPlan::PurchasedAtHasBeenSet
bool PurchasedAtHasBeenSet() const
Definition: ReservationPlan.h:122
Aws::MediaConvert::Model::ReservationPlan::WithStatus
ReservationPlan & WithStatus(const ReservationPlanStatus &value)
Definition: ReservationPlan.h:250
Aws::MediaConvert::Model::ReservationPlan::SetStatus
void SetStatus(ReservationPlanStatus &&value)
Definition: ReservationPlan.h:245
Aws::MediaConvert::Model::ReservationPlan::SetRenewalType
void SetRenewalType(RenewalType &&value)
Definition: ReservationPlan.h:171
Aws::MediaConvert::Model::ReservationPlan::ReservationPlan
ReservationPlan(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaConvert::Model::ReservationPlan::GetCommitment
const Commitment & GetCommitment() const
Definition: ReservationPlan.h:47
Aws::MediaConvert::Model::ReservationPlan::WithExpiresAt
ReservationPlan & WithExpiresAt(const Aws::Utils::DateTime &value)
Definition: ReservationPlan.h:103
Aws::MediaConvert::Model::ReservationPlan::ReservationPlan
ReservationPlan()
Aws::MediaConvert::Model::Commitment
Commitment
Definition: Commitment.h:17
Aws::MediaConvert::Model::ReservationPlan::WithCommitment
ReservationPlan & WithCommitment(Commitment &&value)
Definition: ReservationPlan.h:72
Aws::MediaConvert::Model::ReservationPlan::CommitmentHasBeenSet
bool CommitmentHasBeenSet() const
Definition: ReservationPlan.h:52
Aws::MediaConvert::Model::ReservationPlanStatus
ReservationPlanStatus
Definition: ReservationPlanStatus.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MediaConvert::Model::ReservationPlan::SetExpiresAt
void SetExpiresAt(const Aws::Utils::DateTime &value)
Definition: ReservationPlan.h:91
Aws::MediaConvert::Model::ReservationPlan::GetExpiresAt
const Aws::Utils::DateTime & GetExpiresAt() const
Definition: ReservationPlan.h:79
Aws::MediaConvert::Model::ReservationPlan::SetExpiresAt
void SetExpiresAt(Aws::Utils::DateTime &&value)
Definition: ReservationPlan.h:97
Aws::MediaConvert::Model::ReservationPlan::SetRenewalType
void SetRenewalType(const RenewalType &value)
Definition: ReservationPlan.h:165
Aws::MediaConvert::Model::ReservationPlan::SetCommitment
void SetCommitment(Commitment &&value)
Definition: ReservationPlan.h:62
Aws::MediaConvert::Model::ReservationPlan::ReservedSlotsHasBeenSet
bool ReservedSlotsHasBeenSet() const
Definition: ReservationPlan.h:204
Aws::MediaConvert::Model::ReservationPlan::WithCommitment
ReservationPlan & WithCommitment(const Commitment &value)
Definition: ReservationPlan.h:67
Aws::MediaConvert::Model::ReservationPlan::SetPurchasedAt
void SetPurchasedAt(Aws::Utils::DateTime &&value)
Definition: ReservationPlan.h:134
Aws::MediaConvert::Model::ReservationPlan::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ReservationPlan.h:235
Aws::MediaConvert::Model::ReservationPlan::ExpiresAtHasBeenSet
bool ExpiresAtHasBeenSet() const
Definition: ReservationPlan.h:85
Aws::MediaConvert::Model::ReservationPlan::WithRenewalType
ReservationPlan & WithRenewalType(const RenewalType &value)
Definition: ReservationPlan.h:177
Aws::MediaConvert::Model::ReservationPlan::GetStatus
const ReservationPlanStatus & GetStatus() const
Definition: ReservationPlan.h:230
Aws::MediaConvert::Model::ReservationPlan::GetPurchasedAt
const Aws::Utils::DateTime & GetPurchasedAt() const
Definition: ReservationPlan.h:116
Aws::MediaConvert::Model::ReservationPlan::WithReservedSlots
ReservationPlan & WithReservedSlots(int value)
Definition: ReservationPlan.h:224
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::MediaConvert::Model::ReservationPlan::SetReservedSlots
void SetReservedSlots(int value)
Definition: ReservationPlan.h:214
Aws::MediaConvert::Model::ReservationPlan::WithPurchasedAt
ReservationPlan & WithPurchasedAt(const Aws::Utils::DateTime &value)
Definition: ReservationPlan.h:140
Aws::MediaConvert::Model::ReservationPlan::GetRenewalType
const RenewalType & GetRenewalType() const
Definition: ReservationPlan.h:153
Aws::MediaConvert::Model::ReservationPlan::operator=
ReservationPlan & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaConvert::Model::ReservationPlan::WithRenewalType
ReservationPlan & WithRenewalType(RenewalType &&value)
Definition: ReservationPlan.h:183