AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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