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>
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>
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>>
96 template<
typename OrderIdsT = Aws::String>
97 Subscription&
AddOrderIds(OrderIdsT&& value) { m_orderIdsHasBeenSet =
true; m_orderIds.emplace_back(std::forward<OrderIdsT>(value));
return *
this; }
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>
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>
141 inline void SetUpfrontPrice(
double value) { m_upfrontPriceHasBeenSet =
true; m_upfrontPrice = value; }
147 bool m_subscriptionIdHasBeenSet =
false;
150 bool m_subscriptionTypeHasBeenSet =
false;
153 bool m_subscriptionStatusHasBeenSet =
false;
156 bool m_orderIdsHasBeenSet =
false;
159 bool m_beginDateHasBeenSet =
false;
162 bool m_endDateHasBeenSet =
false;
164 double m_monthlyRecurringPrice{0.0};
165 bool m_monthlyRecurringPriceHasBeenSet =
false;
167 double m_upfrontPrice{0.0};
168 bool m_upfrontPriceHasBeenSet =
false;
AWS_OUTPOSTS_API Subscription(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithSubscriptionStatus(SubscriptionStatus value)
void SetMonthlyRecurringPrice(double value)
Subscription & AddOrderIds(OrderIdsT &&value)
bool SubscriptionStatusHasBeenSet() const
const Aws::Utils::DateTime & GetBeginDate() const
Subscription & WithOrderIds(OrderIdsT &&value)
double GetUpfrontPrice() const
bool SubscriptionTypeHasBeenSet() const
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
bool UpfrontPriceHasBeenSet() const
double GetMonthlyRecurringPrice() const
bool BeginDateHasBeenSet() const
SubscriptionType GetSubscriptionType() const
Subscription & WithSubscriptionType(SubscriptionType value)
SubscriptionStatus GetSubscriptionStatus() const
bool MonthlyRecurringPriceHasBeenSet() const
bool OrderIdsHasBeenSet() const
void SetBeginDate(BeginDateT &&value)
bool EndDateHasBeenSet() const
bool SubscriptionIdHasBeenSet() const
AWS_OUTPOSTS_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpfrontPrice(double value)
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