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/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/RecurringChargeFrequency.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API RecurringCharge();
35 AWS_EC2_API RecurringCharge(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline double GetAmount() const{ return m_amount; }
47 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
48 inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; }
49 inline RecurringCharge& WithAmount(double value) { SetAmount(value); return *this;}
51
53
56 inline const RecurringChargeFrequency& GetFrequency() const{ return m_frequency; }
57 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
58 inline void SetFrequency(const RecurringChargeFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
59 inline void SetFrequency(RecurringChargeFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
60 inline RecurringCharge& WithFrequency(const RecurringChargeFrequency& value) { SetFrequency(value); return *this;}
61 inline RecurringCharge& WithFrequency(RecurringChargeFrequency&& value) { SetFrequency(std::move(value)); return *this;}
63 private:
64
65 double m_amount;
66 bool m_amountHasBeenSet = false;
67
68 RecurringChargeFrequency m_frequency;
69 bool m_frequencyHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace EC2
74} // namespace Aws
void SetFrequency(RecurringChargeFrequency &&value)
void SetFrequency(const RecurringChargeFrequency &value)
RecurringCharge & WithFrequency(const RecurringChargeFrequency &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RecurringCharge & WithFrequency(RecurringChargeFrequency &&value)
const RecurringChargeFrequency & GetFrequency() const
AWS_EC2_API RecurringCharge(const Aws::Utils::Xml::XmlNode &xmlNode)
RecurringCharge & WithAmount(double value)
AWS_EC2_API RecurringCharge & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream