AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservationPlanSettings.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/Commitment.h>
9#include <aws/mediaconvert/model/RenewalType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaConvert
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MEDIACONVERT_API ReservationPlanSettings();
37 AWS_MEDIACONVERT_API ReservationPlanSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Commitment& GetCommitment() const{ return m_commitment; }
47 inline bool CommitmentHasBeenSet() const { return m_commitmentHasBeenSet; }
48 inline void SetCommitment(const Commitment& value) { m_commitmentHasBeenSet = true; m_commitment = value; }
49 inline void SetCommitment(Commitment&& value) { m_commitmentHasBeenSet = true; m_commitment = std::move(value); }
50 inline ReservationPlanSettings& WithCommitment(const Commitment& value) { SetCommitment(value); return *this;}
51 inline ReservationPlanSettings& WithCommitment(Commitment&& value) { SetCommitment(std::move(value)); return *this;}
53
55
61 inline const RenewalType& GetRenewalType() const{ return m_renewalType; }
62 inline bool RenewalTypeHasBeenSet() const { return m_renewalTypeHasBeenSet; }
63 inline void SetRenewalType(const RenewalType& value) { m_renewalTypeHasBeenSet = true; m_renewalType = value; }
64 inline void SetRenewalType(RenewalType&& value) { m_renewalTypeHasBeenSet = true; m_renewalType = std::move(value); }
65 inline ReservationPlanSettings& WithRenewalType(const RenewalType& value) { SetRenewalType(value); return *this;}
66 inline ReservationPlanSettings& WithRenewalType(RenewalType&& value) { SetRenewalType(std::move(value)); return *this;}
68
70
80 inline int GetReservedSlots() const{ return m_reservedSlots; }
81 inline bool ReservedSlotsHasBeenSet() const { return m_reservedSlotsHasBeenSet; }
82 inline void SetReservedSlots(int value) { m_reservedSlotsHasBeenSet = true; m_reservedSlots = value; }
83 inline ReservationPlanSettings& WithReservedSlots(int value) { SetReservedSlots(value); return *this;}
85 private:
86
87 Commitment m_commitment;
88 bool m_commitmentHasBeenSet = false;
89
90 RenewalType m_renewalType;
91 bool m_renewalTypeHasBeenSet = false;
92
93 int m_reservedSlots;
94 bool m_reservedSlotsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace MediaConvert
99} // namespace Aws
ReservationPlanSettings & WithRenewalType(const RenewalType &value)
AWS_MEDIACONVERT_API ReservationPlanSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONVERT_API ReservationPlanSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservationPlanSettings & WithCommitment(const Commitment &value)
ReservationPlanSettings & WithCommitment(Commitment &&value)
ReservationPlanSettings & WithReservedSlots(int value)
ReservationPlanSettings & WithRenewalType(RenewalType &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue