AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ParentSavingsPlanOffering.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
9#include <aws/savingsplans/model/CurrencyCode.h>
10#include <aws/savingsplans/model/SavingsPlanPaymentOption.h>
11#include <aws/savingsplans/model/SavingsPlanType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SavingsPlans {
23namespace Model {
24
31 public:
32 AWS_SAVINGSPLANS_API ParentSavingsPlanOffering() = default;
35 AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
42 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
43 template <typename OfferingIdT = Aws::String>
44 void SetOfferingId(OfferingIdT&& value) {
45 m_offeringIdHasBeenSet = true;
46 m_offeringId = std::forward<OfferingIdT>(value);
47 }
48 template <typename OfferingIdT = Aws::String>
50 SetOfferingId(std::forward<OfferingIdT>(value));
51 return *this;
52 }
54
56
59 inline SavingsPlanPaymentOption GetPaymentOption() const { return m_paymentOption; }
60 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
62 m_paymentOptionHasBeenSet = true;
63 m_paymentOption = value;
64 }
66 SetPaymentOption(value);
67 return *this;
68 }
70
72
75 inline SavingsPlanType GetPlanType() const { return m_planType; }
76 inline bool PlanTypeHasBeenSet() const { return m_planTypeHasBeenSet; }
77 inline void SetPlanType(SavingsPlanType value) {
78 m_planTypeHasBeenSet = true;
79 m_planType = value;
80 }
82 SetPlanType(value);
83 return *this;
84 }
86
88
91 inline long long GetDurationSeconds() const { return m_durationSeconds; }
92 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
93 inline void SetDurationSeconds(long long value) {
94 m_durationSecondsHasBeenSet = true;
95 m_durationSeconds = value;
96 }
98 SetDurationSeconds(value);
99 return *this;
100 }
102
104
107 inline CurrencyCode GetCurrency() const { return m_currency; }
108 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
109 inline void SetCurrency(CurrencyCode value) {
110 m_currencyHasBeenSet = true;
111 m_currency = value;
112 }
114 SetCurrency(value);
115 return *this;
116 }
118
120
123 inline const Aws::String& GetPlanDescription() const { return m_planDescription; }
124 inline bool PlanDescriptionHasBeenSet() const { return m_planDescriptionHasBeenSet; }
125 template <typename PlanDescriptionT = Aws::String>
126 void SetPlanDescription(PlanDescriptionT&& value) {
127 m_planDescriptionHasBeenSet = true;
128 m_planDescription = std::forward<PlanDescriptionT>(value);
129 }
130 template <typename PlanDescriptionT = Aws::String>
132 SetPlanDescription(std::forward<PlanDescriptionT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_offeringId;
138
140
142
143 long long m_durationSeconds{0};
144
146
147 Aws::String m_planDescription;
148 bool m_offeringIdHasBeenSet = false;
149 bool m_paymentOptionHasBeenSet = false;
150 bool m_planTypeHasBeenSet = false;
151 bool m_durationSecondsHasBeenSet = false;
152 bool m_currencyHasBeenSet = false;
153 bool m_planDescriptionHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace SavingsPlans
158} // 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