AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/model/SubscriptionType.h>
10#include <aws/outposts/model/SubscriptionStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Outposts
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_OUTPOSTS_API Subscription() = default;
40 AWS_OUTPOSTS_API Subscription(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
51 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
52 template<typename SubscriptionIdT = Aws::String>
53 void SetSubscriptionId(SubscriptionIdT&& value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId = std::forward<SubscriptionIdT>(value); }
54 template<typename SubscriptionIdT = Aws::String>
55 Subscription& WithSubscriptionId(SubscriptionIdT&& value) { SetSubscriptionId(std::forward<SubscriptionIdT>(value)); return *this;}
57
59
66 inline SubscriptionType GetSubscriptionType() const { return m_subscriptionType; }
67 inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
68 inline void SetSubscriptionType(SubscriptionType value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
71
73
80 inline SubscriptionStatus GetSubscriptionStatus() const { return m_subscriptionStatus; }
81 inline bool SubscriptionStatusHasBeenSet() const { return m_subscriptionStatusHasBeenSet; }
82 inline void SetSubscriptionStatus(SubscriptionStatus value) { m_subscriptionStatusHasBeenSet = true; m_subscriptionStatus = value; }
85
87
90 inline const Aws::Vector<Aws::String>& GetOrderIds() const { return m_orderIds; }
91 inline bool OrderIdsHasBeenSet() const { return m_orderIdsHasBeenSet; }
92 template<typename OrderIdsT = Aws::Vector<Aws::String>>
93 void SetOrderIds(OrderIdsT&& value) { m_orderIdsHasBeenSet = true; m_orderIds = std::forward<OrderIdsT>(value); }
94 template<typename OrderIdsT = Aws::Vector<Aws::String>>
95 Subscription& WithOrderIds(OrderIdsT&& value) { SetOrderIds(std::forward<OrderIdsT>(value)); return *this;}
96 template<typename OrderIdsT = Aws::String>
97 Subscription& AddOrderIds(OrderIdsT&& value) { m_orderIdsHasBeenSet = true; m_orderIds.emplace_back(std::forward<OrderIdsT>(value)); return *this; }
99
101
104 inline const Aws::Utils::DateTime& GetBeginDate() const { return m_beginDate; }
105 inline bool BeginDateHasBeenSet() const { return m_beginDateHasBeenSet; }
106 template<typename BeginDateT = Aws::Utils::DateTime>
107 void SetBeginDate(BeginDateT&& value) { m_beginDateHasBeenSet = true; m_beginDate = std::forward<BeginDateT>(value); }
108 template<typename BeginDateT = Aws::Utils::DateTime>
109 Subscription& WithBeginDate(BeginDateT&& value) { SetBeginDate(std::forward<BeginDateT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
117 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
118 template<typename EndDateT = Aws::Utils::DateTime>
119 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
120 template<typename EndDateT = Aws::Utils::DateTime>
121 Subscription& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
123
125
128 inline double GetMonthlyRecurringPrice() const { return m_monthlyRecurringPrice; }
129 inline bool MonthlyRecurringPriceHasBeenSet() const { return m_monthlyRecurringPriceHasBeenSet; }
130 inline void SetMonthlyRecurringPrice(double value) { m_monthlyRecurringPriceHasBeenSet = true; m_monthlyRecurringPrice = value; }
131 inline Subscription& WithMonthlyRecurringPrice(double value) { SetMonthlyRecurringPrice(value); return *this;}
133
135
139 inline double GetUpfrontPrice() const { return m_upfrontPrice; }
140 inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; }
141 inline void SetUpfrontPrice(double value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = value; }
142 inline Subscription& WithUpfrontPrice(double value) { SetUpfrontPrice(value); return *this;}
144 private:
145
146 Aws::String m_subscriptionId;
147 bool m_subscriptionIdHasBeenSet = false;
148
150 bool m_subscriptionTypeHasBeenSet = false;
151
153 bool m_subscriptionStatusHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_orderIds;
156 bool m_orderIdsHasBeenSet = false;
157
158 Aws::Utils::DateTime m_beginDate{};
159 bool m_beginDateHasBeenSet = false;
160
161 Aws::Utils::DateTime m_endDate{};
162 bool m_endDateHasBeenSet = false;
163
164 double m_monthlyRecurringPrice{0.0};
165 bool m_monthlyRecurringPriceHasBeenSet = false;
166
167 double m_upfrontPrice{0.0};
168 bool m_upfrontPriceHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Outposts
173} // namespace Aws
AWS_OUTPOSTS_API Subscription(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithSubscriptionStatus(SubscriptionStatus value)
void SetMonthlyRecurringPrice(double value)
Subscription & AddOrderIds(OrderIdsT &&value)
const Aws::Utils::DateTime & GetBeginDate() const
Subscription & WithOrderIds(OrderIdsT &&value)
AWS_OUTPOSTS_API Subscription()=default
Subscription & WithSubscriptionId(SubscriptionIdT &&value)
void SetEndDate(EndDateT &&value)
Subscription & WithMonthlyRecurringPrice(double value)
Subscription & WithUpfrontPrice(double value)
const Aws::Utils::DateTime & GetEndDate() const
void SetSubscriptionType(SubscriptionType value)
void SetSubscriptionId(SubscriptionIdT &&value)
Subscription & WithEndDate(EndDateT &&value)
void SetOrderIds(OrderIdsT &&value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
SubscriptionType GetSubscriptionType() const
Subscription & WithSubscriptionType(SubscriptionType value)
SubscriptionStatus GetSubscriptionStatus() const
void SetBeginDate(BeginDateT &&value)
AWS_OUTPOSTS_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithBeginDate(BeginDateT &&value)
const Aws::Vector< Aws::String > & GetOrderIds() const
void SetSubscriptionStatus(SubscriptionStatus value)
const Aws::String & GetSubscriptionId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue