AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecurringCharge.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/model/MonetaryAmount.h>
9#include <aws/devicefarm/model/RecurringChargeFrequency.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DeviceFarm
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DEVICEFARM_API RecurringCharge() = default;
37 AWS_DEVICEFARM_API RecurringCharge(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const MonetaryAmount& GetCost() const { return m_cost; }
47 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
48 template<typename CostT = MonetaryAmount>
49 void SetCost(CostT&& value) { m_costHasBeenSet = true; m_cost = std::forward<CostT>(value); }
50 template<typename CostT = MonetaryAmount>
51 RecurringCharge& WithCost(CostT&& value) { SetCost(std::forward<CostT>(value)); return *this;}
53
55
58 inline RecurringChargeFrequency GetFrequency() const { return m_frequency; }
59 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
60 inline void SetFrequency(RecurringChargeFrequency value) { m_frequencyHasBeenSet = true; m_frequency = value; }
63 private:
64
65 MonetaryAmount m_cost;
66 bool m_costHasBeenSet = false;
67
69 bool m_frequencyHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace DeviceFarm
74} // namespace Aws
RecurringCharge & WithCost(CostT &&value)
AWS_DEVICEFARM_API RecurringCharge(Aws::Utils::Json::JsonView jsonValue)
RecurringChargeFrequency GetFrequency() const
void SetFrequency(RecurringChargeFrequency value)
AWS_DEVICEFARM_API RecurringCharge()=default
RecurringCharge & WithFrequency(RecurringChargeFrequency value)
const MonetaryAmount & GetCost() const
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API RecurringCharge & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue