AWS SDK for C++  1.9.159
AWS SDK for C++
ReservationPlanSettings.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace MediaConvert
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Commitment& GetCommitment() const{ return m_commitment; }
46 
50  inline bool CommitmentHasBeenSet() const { return m_commitmentHasBeenSet; }
51 
55  inline void SetCommitment(const Commitment& value) { m_commitmentHasBeenSet = true; m_commitment = value; }
56 
60  inline void SetCommitment(Commitment&& value) { m_commitmentHasBeenSet = true; m_commitment = std::move(value); }
61 
65  inline ReservationPlanSettings& WithCommitment(const Commitment& value) { SetCommitment(value); return *this;}
66 
70  inline ReservationPlanSettings& WithCommitment(Commitment&& value) { SetCommitment(std::move(value)); return *this;}
71 
72 
79  inline const RenewalType& GetRenewalType() const{ return m_renewalType; }
80 
87  inline bool RenewalTypeHasBeenSet() const { return m_renewalTypeHasBeenSet; }
88 
95  inline void SetRenewalType(const RenewalType& value) { m_renewalTypeHasBeenSet = true; m_renewalType = value; }
96 
103  inline void SetRenewalType(RenewalType&& value) { m_renewalTypeHasBeenSet = true; m_renewalType = std::move(value); }
104 
111  inline ReservationPlanSettings& WithRenewalType(const RenewalType& value) { SetRenewalType(value); return *this;}
112 
119  inline ReservationPlanSettings& WithRenewalType(RenewalType&& value) { SetRenewalType(std::move(value)); return *this;}
120 
121 
132  inline int GetReservedSlots() const{ return m_reservedSlots; }
133 
144  inline bool ReservedSlotsHasBeenSet() const { return m_reservedSlotsHasBeenSet; }
145 
156  inline void SetReservedSlots(int value) { m_reservedSlotsHasBeenSet = true; m_reservedSlots = value; }
157 
168  inline ReservationPlanSettings& WithReservedSlots(int value) { SetReservedSlots(value); return *this;}
169 
170  private:
171 
172  Commitment m_commitment;
173  bool m_commitmentHasBeenSet;
174 
175  RenewalType m_renewalType;
176  bool m_renewalTypeHasBeenSet;
177 
178  int m_reservedSlots;
179  bool m_reservedSlotsHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace MediaConvert
184 } // namespace Aws
Aws::MediaConvert::Model::ReservationPlanSettings::SetCommitment
void SetCommitment(Commitment &&value)
Definition: ReservationPlanSettings.h:60
Aws::MediaConvert::Model::ReservationPlanSettings::ReservationPlanSettings
ReservationPlanSettings()
MediaConvert_EXPORTS.h
AWS_MEDIACONVERT_API
#define AWS_MEDIACONVERT_API
Definition: MediaConvert_EXPORTS.h:28
Aws::MediaConvert::Model::ReservationPlanSettings::SetRenewalType
void SetRenewalType(const RenewalType &value)
Definition: ReservationPlanSettings.h:95
Aws::MediaConvert::Model::ReservationPlanSettings::SetReservedSlots
void SetReservedSlots(int value)
Definition: ReservationPlanSettings.h:156
Aws::MediaConvert::Model::RenewalType
RenewalType
Definition: RenewalType.h:17
Commitment.h
Aws::MediaConvert::Model::ReservationPlanSettings::ReservedSlotsHasBeenSet
bool ReservedSlotsHasBeenSet() const
Definition: ReservationPlanSettings.h:144
Aws::MediaConvert::Model::ReservationPlanSettings::GetRenewalType
const RenewalType & GetRenewalType() const
Definition: ReservationPlanSettings.h:79
Aws::MediaConvert::Model::ReservationPlanSettings::WithReservedSlots
ReservationPlanSettings & WithReservedSlots(int value)
Definition: ReservationPlanSettings.h:168
Aws::MediaConvert::Model::ReservationPlanSettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
RenewalType.h
Aws::MediaConvert::Model::ReservationPlanSettings::WithRenewalType
ReservationPlanSettings & WithRenewalType(const RenewalType &value)
Definition: ReservationPlanSettings.h:111
Aws::MediaConvert::Model::ReservationPlanSettings
Definition: ReservationPlanSettings.h:34
Aws::MediaConvert::Model::ReservationPlanSettings::GetReservedSlots
int GetReservedSlots() const
Definition: ReservationPlanSettings.h:132
Aws::MediaConvert::Model::Commitment
Commitment
Definition: Commitment.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MediaConvert::Model::ReservationPlanSettings::operator=
ReservationPlanSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaConvert::Model::ReservationPlanSettings::ReservationPlanSettings
ReservationPlanSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaConvert::Model::ReservationPlanSettings::WithCommitment
ReservationPlanSettings & WithCommitment(Commitment &&value)
Definition: ReservationPlanSettings.h:70
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MediaConvert::Model::ReservationPlanSettings::SetRenewalType
void SetRenewalType(RenewalType &&value)
Definition: ReservationPlanSettings.h:103
Aws::MediaConvert::Model::ReservationPlanSettings::WithCommitment
ReservationPlanSettings & WithCommitment(const Commitment &value)
Definition: ReservationPlanSettings.h:65
Aws::MediaConvert::Model::ReservationPlanSettings::WithRenewalType
ReservationPlanSettings & WithRenewalType(RenewalType &&value)
Definition: ReservationPlanSettings.h:119
Aws::MediaConvert::Model::ReservationPlanSettings::RenewalTypeHasBeenSet
bool RenewalTypeHasBeenSet() const
Definition: ReservationPlanSettings.h:87
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::MediaConvert::Model::ReservationPlanSettings::CommitmentHasBeenSet
bool CommitmentHasBeenSet() const
Definition: ReservationPlanSettings.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::MediaConvert::Model::ReservationPlanSettings::SetCommitment
void SetCommitment(const Commitment &value)
Definition: ReservationPlanSettings.h:55
Aws::MediaConvert::Model::ReservationPlanSettings::GetCommitment
const Commitment & GetCommitment() const
Definition: ReservationPlanSettings.h:45