AWS SDK for C++  1.9.70
AWS SDK for C++
RecurringCharge.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline double GetAmount() const{ return m_amount; }
46 
50  inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
51 
55  inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; }
56 
60  inline RecurringCharge& WithAmount(double value) { SetAmount(value); return *this;}
61 
62 
66  inline const RecurringChargeFrequency& GetFrequency() const{ return m_frequency; }
67 
71  inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
72 
76  inline void SetFrequency(const RecurringChargeFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
77 
81  inline void SetFrequency(RecurringChargeFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
82 
86  inline RecurringCharge& WithFrequency(const RecurringChargeFrequency& value) { SetFrequency(value); return *this;}
87 
91  inline RecurringCharge& WithFrequency(RecurringChargeFrequency&& value) { SetFrequency(std::move(value)); return *this;}
92 
93  private:
94 
95  double m_amount;
96  bool m_amountHasBeenSet;
97 
98  RecurringChargeFrequency m_frequency;
99  bool m_frequencyHasBeenSet;
100  };
101 
102 } // namespace Model
103 } // namespace EC2
104 } // namespace Aws
Aws::EC2::Model::RecurringCharge::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::RecurringCharge::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::RecurringCharge
Definition: RecurringCharge.h:32
RecurringChargeFrequency.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::RecurringChargeFrequency
RecurringChargeFrequency
Definition: RecurringChargeFrequency.h:17
Aws::EC2::Model::RecurringCharge::SetFrequency
void SetFrequency(RecurringChargeFrequency &&value)
Definition: RecurringCharge.h:81
AWSStreamFwd.h
Aws::EC2::Model::RecurringCharge::SetFrequency
void SetFrequency(const RecurringChargeFrequency &value)
Definition: RecurringCharge.h:76
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::RecurringCharge::AmountHasBeenSet
bool AmountHasBeenSet() const
Definition: RecurringCharge.h:50
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::RecurringCharge::RecurringCharge
RecurringCharge(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::RecurringCharge::GetFrequency
const RecurringChargeFrequency & GetFrequency() const
Definition: RecurringCharge.h:66
Aws::EC2::Model::RecurringCharge::WithFrequency
RecurringCharge & WithFrequency(const RecurringChargeFrequency &value)
Definition: RecurringCharge.h:86
Aws::EC2::Model::RecurringCharge::WithAmount
RecurringCharge & WithAmount(double value)
Definition: RecurringCharge.h:60
Aws::EC2::Model::RecurringCharge::FrequencyHasBeenSet
bool FrequencyHasBeenSet() const
Definition: RecurringCharge.h:71
Aws::EC2::Model::RecurringCharge::SetAmount
void SetAmount(double value)
Definition: RecurringCharge.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RecurringCharge::GetAmount
double GetAmount() const
Definition: RecurringCharge.h:45
Aws::EC2::Model::RecurringCharge::WithFrequency
RecurringCharge & WithFrequency(RecurringChargeFrequency &&value)
Definition: RecurringCharge.h:91
Aws::EC2::Model::RecurringCharge::operator=
RecurringCharge & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::RecurringCharge::RecurringCharge
RecurringCharge()
EC2_EXPORTS.h