AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DeviceFarm {
21namespace Model {
22
30 public:
31 AWS_DEVICEFARM_API RecurringCharge() = default;
32 AWS_DEVICEFARM_API RecurringCharge(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const MonetaryAmount& GetCost() const { return m_cost; }
41 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
42 template <typename CostT = MonetaryAmount>
43 void SetCost(CostT&& value) {
44 m_costHasBeenSet = true;
45 m_cost = std::forward<CostT>(value);
46 }
47 template <typename CostT = MonetaryAmount>
48 RecurringCharge& WithCost(CostT&& value) {
49 SetCost(std::forward<CostT>(value));
50 return *this;
51 }
53
55
58 inline RecurringChargeFrequency GetFrequency() const { return m_frequency; }
59 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
61 m_frequencyHasBeenSet = true;
62 m_frequency = value;
63 }
65 SetFrequency(value);
66 return *this;
67 }
69 private:
70 MonetaryAmount m_cost;
71
73 bool m_costHasBeenSet = false;
74 bool m_frequencyHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace DeviceFarm
79} // 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