AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservationPlan.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/Commitment.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/mediaconvert/model/RenewalType.h>
11#include <aws/mediaconvert/model/ReservationPlanStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaConvert
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MEDIACONVERT_API ReservationPlan();
39 AWS_MEDIACONVERT_API ReservationPlan(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONVERT_API ReservationPlan& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Commitment& GetCommitment() const{ return m_commitment; }
49 inline bool CommitmentHasBeenSet() const { return m_commitmentHasBeenSet; }
50 inline void SetCommitment(const Commitment& value) { m_commitmentHasBeenSet = true; m_commitment = value; }
51 inline void SetCommitment(Commitment&& value) { m_commitmentHasBeenSet = true; m_commitment = std::move(value); }
52 inline ReservationPlan& WithCommitment(const Commitment& value) { SetCommitment(value); return *this;}
53 inline ReservationPlan& WithCommitment(Commitment&& value) { SetCommitment(std::move(value)); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
62 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
63 inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
64 inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
65 inline ReservationPlan& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
66 inline ReservationPlan& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetPurchasedAt() const{ return m_purchasedAt; }
75 inline bool PurchasedAtHasBeenSet() const { return m_purchasedAtHasBeenSet; }
76 inline void SetPurchasedAt(const Aws::Utils::DateTime& value) { m_purchasedAtHasBeenSet = true; m_purchasedAt = value; }
77 inline void SetPurchasedAt(Aws::Utils::DateTime&& value) { m_purchasedAtHasBeenSet = true; m_purchasedAt = std::move(value); }
78 inline ReservationPlan& WithPurchasedAt(const Aws::Utils::DateTime& value) { SetPurchasedAt(value); return *this;}
79 inline ReservationPlan& WithPurchasedAt(Aws::Utils::DateTime&& value) { SetPurchasedAt(std::move(value)); return *this;}
81
83
87 inline const RenewalType& GetRenewalType() const{ return m_renewalType; }
88 inline bool RenewalTypeHasBeenSet() const { return m_renewalTypeHasBeenSet; }
89 inline void SetRenewalType(const RenewalType& value) { m_renewalTypeHasBeenSet = true; m_renewalType = value; }
90 inline void SetRenewalType(RenewalType&& value) { m_renewalTypeHasBeenSet = true; m_renewalType = std::move(value); }
91 inline ReservationPlan& WithRenewalType(const RenewalType& value) { SetRenewalType(value); return *this;}
92 inline ReservationPlan& WithRenewalType(RenewalType&& value) { SetRenewalType(std::move(value)); return *this;}
94
96
104 inline int GetReservedSlots() const{ return m_reservedSlots; }
105 inline bool ReservedSlotsHasBeenSet() const { return m_reservedSlotsHasBeenSet; }
106 inline void SetReservedSlots(int value) { m_reservedSlotsHasBeenSet = true; m_reservedSlots = value; }
107 inline ReservationPlan& WithReservedSlots(int value) { SetReservedSlots(value); return *this;}
109
111
114 inline const ReservationPlanStatus& GetStatus() const{ return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(const ReservationPlanStatus& value) { m_statusHasBeenSet = true; m_status = value; }
117 inline void SetStatus(ReservationPlanStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
118 inline ReservationPlan& WithStatus(const ReservationPlanStatus& value) { SetStatus(value); return *this;}
119 inline ReservationPlan& WithStatus(ReservationPlanStatus&& value) { SetStatus(std::move(value)); return *this;}
121 private:
122
123 Commitment m_commitment;
124 bool m_commitmentHasBeenSet = false;
125
126 Aws::Utils::DateTime m_expiresAt;
127 bool m_expiresAtHasBeenSet = false;
128
129 Aws::Utils::DateTime m_purchasedAt;
130 bool m_purchasedAtHasBeenSet = false;
131
132 RenewalType m_renewalType;
133 bool m_renewalTypeHasBeenSet = false;
134
135 int m_reservedSlots;
136 bool m_reservedSlotsHasBeenSet = false;
137
138 ReservationPlanStatus m_status;
139 bool m_statusHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace MediaConvert
144} // namespace Aws
ReservationPlan & WithExpiresAt(Aws::Utils::DateTime &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
const ReservationPlanStatus & GetStatus() const
void SetPurchasedAt(const Aws::Utils::DateTime &value)
void SetExpiresAt(const Aws::Utils::DateTime &value)
void SetStatus(ReservationPlanStatus &&value)
ReservationPlan & WithPurchasedAt(Aws::Utils::DateTime &&value)
void SetExpiresAt(Aws::Utils::DateTime &&value)
void SetRenewalType(const RenewalType &value)
ReservationPlan & WithStatus(const ReservationPlanStatus &value)
const Commitment & GetCommitment() const
void SetStatus(const ReservationPlanStatus &value)
ReservationPlan & WithCommitment(Commitment &&value)
ReservationPlan & WithReservedSlots(int value)
const Aws::Utils::DateTime & GetExpiresAt() const
ReservationPlan & WithExpiresAt(const Aws::Utils::DateTime &value)
ReservationPlan & WithRenewalType(RenewalType &&value)
AWS_MEDIACONVERT_API ReservationPlan & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservationPlan & WithPurchasedAt(const Aws::Utils::DateTime &value)
const RenewalType & GetRenewalType() const
void SetPurchasedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetPurchasedAt() const
ReservationPlan & WithRenewalType(const RenewalType &value)
AWS_MEDIACONVERT_API ReservationPlan(Aws::Utils::Json::JsonView jsonValue)
void SetCommitment(const Commitment &value)
ReservationPlan & WithCommitment(const Commitment &value)
ReservationPlan & WithStatus(ReservationPlanStatus &&value)
Aws::Utils::Json::JsonValue JsonValue