AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCost(const MonetaryAmount& value) { m_costHasBeenSet = true; m_cost = value; }
49 inline void SetCost(MonetaryAmount&& value) { m_costHasBeenSet = true; m_cost = std::move(value); }
50 inline RecurringCharge& WithCost(const MonetaryAmount& value) { SetCost(value); return *this;}
51 inline RecurringCharge& WithCost(MonetaryAmount&& value) { SetCost(std::move(value)); return *this;}
53
55
58 inline const RecurringChargeFrequency& GetFrequency() const{ return m_frequency; }
59 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
60 inline void SetFrequency(const RecurringChargeFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
61 inline void SetFrequency(RecurringChargeFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
62 inline RecurringCharge& WithFrequency(const RecurringChargeFrequency& value) { SetFrequency(value); return *this;}
63 inline RecurringCharge& WithFrequency(RecurringChargeFrequency&& value) { SetFrequency(std::move(value)); return *this;}
65 private:
66
67 MonetaryAmount m_cost;
68 bool m_costHasBeenSet = false;
69
70 RecurringChargeFrequency m_frequency;
71 bool m_frequencyHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace DeviceFarm
76} // namespace Aws
const RecurringChargeFrequency & GetFrequency() const
void SetFrequency(const RecurringChargeFrequency &value)
AWS_DEVICEFARM_API RecurringCharge(Aws::Utils::Json::JsonView jsonValue)
RecurringCharge & WithFrequency(RecurringChargeFrequency &&value)
RecurringCharge & WithCost(MonetaryAmount &&value)
void SetFrequency(RecurringChargeFrequency &&value)
void SetCost(const MonetaryAmount &value)
const MonetaryAmount & GetCost() const
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCost(MonetaryAmount &&value)
RecurringCharge & WithFrequency(const RecurringChargeFrequency &value)
RecurringCharge & WithCost(const MonetaryAmount &value)
AWS_DEVICEFARM_API RecurringCharge & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue