AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
50 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
51 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
52 inline ParentSavingsPlanOffering& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
53 inline ParentSavingsPlanOffering& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
54 inline ParentSavingsPlanOffering& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
56
58
61 inline const SavingsPlanPaymentOption& GetPaymentOption() const{ return m_paymentOption; }
62 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
63 inline void SetPaymentOption(const SavingsPlanPaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
64 inline void SetPaymentOption(SavingsPlanPaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
66 inline ParentSavingsPlanOffering& WithPaymentOption(SavingsPlanPaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
68
70
73 inline const SavingsPlanType& GetPlanType() const{ return m_planType; }
74 inline bool PlanTypeHasBeenSet() const { return m_planTypeHasBeenSet; }
75 inline void SetPlanType(const SavingsPlanType& value) { m_planTypeHasBeenSet = true; m_planType = value; }
76 inline void SetPlanType(SavingsPlanType&& value) { m_planTypeHasBeenSet = true; m_planType = std::move(value); }
77 inline ParentSavingsPlanOffering& WithPlanType(const SavingsPlanType& value) { SetPlanType(value); return *this;}
78 inline ParentSavingsPlanOffering& WithPlanType(SavingsPlanType&& value) { SetPlanType(std::move(value)); return *this;}
80
82
85 inline long long GetDurationSeconds() const{ return m_durationSeconds; }
86 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
87 inline void SetDurationSeconds(long long value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
88 inline ParentSavingsPlanOffering& WithDurationSeconds(long long value) { SetDurationSeconds(value); return *this;}
90
92
95 inline const CurrencyCode& GetCurrency() const{ return m_currency; }
96 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
97 inline void SetCurrency(const CurrencyCode& value) { m_currencyHasBeenSet = true; m_currency = value; }
98 inline void SetCurrency(CurrencyCode&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
99 inline ParentSavingsPlanOffering& WithCurrency(const CurrencyCode& value) { SetCurrency(value); return *this;}
100 inline ParentSavingsPlanOffering& WithCurrency(CurrencyCode&& value) { SetCurrency(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetPlanDescription() const{ return m_planDescription; }
108 inline bool PlanDescriptionHasBeenSet() const { return m_planDescriptionHasBeenSet; }
109 inline void SetPlanDescription(const Aws::String& value) { m_planDescriptionHasBeenSet = true; m_planDescription = value; }
110 inline void SetPlanDescription(Aws::String&& value) { m_planDescriptionHasBeenSet = true; m_planDescription = std::move(value); }
111 inline void SetPlanDescription(const char* value) { m_planDescriptionHasBeenSet = true; m_planDescription.assign(value); }
113 inline ParentSavingsPlanOffering& WithPlanDescription(Aws::String&& value) { SetPlanDescription(std::move(value)); return *this;}
114 inline ParentSavingsPlanOffering& WithPlanDescription(const char* value) { SetPlanDescription(value); return *this;}
116 private:
117
118 Aws::String m_offeringId;
119 bool m_offeringIdHasBeenSet = false;
120
121 SavingsPlanPaymentOption m_paymentOption;
122 bool m_paymentOptionHasBeenSet = false;
123
124 SavingsPlanType m_planType;
125 bool m_planTypeHasBeenSet = false;
126
127 long long m_durationSeconds;
128 bool m_durationSecondsHasBeenSet = false;
129
130 CurrencyCode m_currency;
131 bool m_currencyHasBeenSet = false;
132
133 Aws::String m_planDescription;
134 bool m_planDescriptionHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace SavingsPlans
139} // namespace Aws
AWS_SAVINGSPLANS_API ParentSavingsPlanOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPaymentOption(SavingsPlanPaymentOption &&value)
ParentSavingsPlanOffering & WithOfferingId(const Aws::String &value)
ParentSavingsPlanOffering & WithCurrency(const CurrencyCode &value)
const SavingsPlanPaymentOption & GetPaymentOption() const
ParentSavingsPlanOffering & WithOfferingId(Aws::String &&value)
ParentSavingsPlanOffering & WithPlanType(const SavingsPlanType &value)
ParentSavingsPlanOffering & WithPaymentOption(const SavingsPlanPaymentOption &value)
ParentSavingsPlanOffering & WithPlanDescription(Aws::String &&value)
void SetPaymentOption(const SavingsPlanPaymentOption &value)
ParentSavingsPlanOffering & WithPlanType(SavingsPlanType &&value)
ParentSavingsPlanOffering & WithPlanDescription(const Aws::String &value)
ParentSavingsPlanOffering & WithOfferingId(const char *value)
AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
ParentSavingsPlanOffering & WithCurrency(CurrencyCode &&value)
ParentSavingsPlanOffering & WithPlanDescription(const char *value)
ParentSavingsPlanOffering & WithPaymentOption(SavingsPlanPaymentOption &&value)
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