AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ParentSavingsPlanOffering.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/savingsplans/model/SavingsPlanPaymentOption.h>
10#include <aws/savingsplans/model/SavingsPlanType.h>
11#include <aws/savingsplans/model/CurrencyCode.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 SavingsPlans
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SAVINGSPLANS_API ParentSavingsPlanOffering() = default;
40 AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
48 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
49 template<typename OfferingIdT = Aws::String>
50 void SetOfferingId(OfferingIdT&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::forward<OfferingIdT>(value); }
51 template<typename OfferingIdT = Aws::String>
52 ParentSavingsPlanOffering& WithOfferingId(OfferingIdT&& value) { SetOfferingId(std::forward<OfferingIdT>(value)); return *this;}
54
56
59 inline SavingsPlanPaymentOption GetPaymentOption() const { return m_paymentOption; }
60 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
61 inline void SetPaymentOption(SavingsPlanPaymentOption value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
64
66
69 inline SavingsPlanType GetPlanType() const { return m_planType; }
70 inline bool PlanTypeHasBeenSet() const { return m_planTypeHasBeenSet; }
71 inline void SetPlanType(SavingsPlanType value) { m_planTypeHasBeenSet = true; m_planType = value; }
72 inline ParentSavingsPlanOffering& WithPlanType(SavingsPlanType value) { SetPlanType(value); return *this;}
74
76
79 inline long long GetDurationSeconds() const { return m_durationSeconds; }
80 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
81 inline void SetDurationSeconds(long long value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
82 inline ParentSavingsPlanOffering& WithDurationSeconds(long long value) { SetDurationSeconds(value); return *this;}
84
86
89 inline CurrencyCode GetCurrency() const { return m_currency; }
90 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
91 inline void SetCurrency(CurrencyCode value) { m_currencyHasBeenSet = true; m_currency = value; }
92 inline ParentSavingsPlanOffering& WithCurrency(CurrencyCode value) { SetCurrency(value); return *this;}
94
96
99 inline const Aws::String& GetPlanDescription() const { return m_planDescription; }
100 inline bool PlanDescriptionHasBeenSet() const { return m_planDescriptionHasBeenSet; }
101 template<typename PlanDescriptionT = Aws::String>
102 void SetPlanDescription(PlanDescriptionT&& value) { m_planDescriptionHasBeenSet = true; m_planDescription = std::forward<PlanDescriptionT>(value); }
103 template<typename PlanDescriptionT = Aws::String>
104 ParentSavingsPlanOffering& WithPlanDescription(PlanDescriptionT&& value) { SetPlanDescription(std::forward<PlanDescriptionT>(value)); return *this;}
106 private:
107
108 Aws::String m_offeringId;
109 bool m_offeringIdHasBeenSet = false;
110
112 bool m_paymentOptionHasBeenSet = false;
113
115 bool m_planTypeHasBeenSet = false;
116
117 long long m_durationSeconds{0};
118 bool m_durationSecondsHasBeenSet = false;
119
121 bool m_currencyHasBeenSet = false;
122
123 Aws::String m_planDescription;
124 bool m_planDescriptionHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SavingsPlans
129} // namespace Aws
AWS_SAVINGSPLANS_API ParentSavingsPlanOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
ParentSavingsPlanOffering & WithPlanDescription(PlanDescriptionT &&value)
ParentSavingsPlanOffering & WithPaymentOption(SavingsPlanPaymentOption value)
AWS_SAVINGSPLANS_API ParentSavingsPlanOffering()=default
ParentSavingsPlanOffering & WithPlanType(SavingsPlanType value)
ParentSavingsPlanOffering & WithCurrency(CurrencyCode value)
ParentSavingsPlanOffering & WithOfferingId(OfferingIdT &&value)
AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
ParentSavingsPlanOffering & WithDurationSeconds(long long value)
AWS_SAVINGSPLANS_API ParentSavingsPlanOffering(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue