AWS SDK for C++  1.9.160
AWS SDK for C++
RecurringCharge.h
Go to the documentation of this file.
1 
6 #pragma once
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 Redshift
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 
46  inline double GetRecurringChargeAmount() const{ return m_recurringChargeAmount; }
47 
52  inline bool RecurringChargeAmountHasBeenSet() const { return m_recurringChargeAmountHasBeenSet; }
53 
58  inline void SetRecurringChargeAmount(double value) { m_recurringChargeAmountHasBeenSet = true; m_recurringChargeAmount = value; }
59 
64  inline RecurringCharge& WithRecurringChargeAmount(double value) { SetRecurringChargeAmount(value); return *this;}
65 
66 
70  inline const Aws::String& GetRecurringChargeFrequency() const{ return m_recurringChargeFrequency; }
71 
75  inline bool RecurringChargeFrequencyHasBeenSet() const { return m_recurringChargeFrequencyHasBeenSet; }
76 
80  inline void SetRecurringChargeFrequency(const Aws::String& value) { m_recurringChargeFrequencyHasBeenSet = true; m_recurringChargeFrequency = value; }
81 
85  inline void SetRecurringChargeFrequency(Aws::String&& value) { m_recurringChargeFrequencyHasBeenSet = true; m_recurringChargeFrequency = std::move(value); }
86 
90  inline void SetRecurringChargeFrequency(const char* value) { m_recurringChargeFrequencyHasBeenSet = true; m_recurringChargeFrequency.assign(value); }
91 
95  inline RecurringCharge& WithRecurringChargeFrequency(const Aws::String& value) { SetRecurringChargeFrequency(value); return *this;}
96 
100  inline RecurringCharge& WithRecurringChargeFrequency(Aws::String&& value) { SetRecurringChargeFrequency(std::move(value)); return *this;}
101 
105  inline RecurringCharge& WithRecurringChargeFrequency(const char* value) { SetRecurringChargeFrequency(value); return *this;}
106 
107  private:
108 
109  double m_recurringChargeAmount;
110  bool m_recurringChargeAmountHasBeenSet;
111 
112  Aws::String m_recurringChargeFrequency;
113  bool m_recurringChargeFrequencyHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace Redshift
118 } // namespace Aws
Aws::Redshift::Model::RecurringCharge::RecurringCharge
RecurringCharge(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::RecurringCharge::GetRecurringChargeFrequency
const Aws::String & GetRecurringChargeFrequency() const
Definition: RecurringCharge.h:70
Aws::Redshift::Model::RecurringCharge::operator=
RecurringCharge & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::RecurringCharge::WithRecurringChargeFrequency
RecurringCharge & WithRecurringChargeFrequency(const char *value)
Definition: RecurringCharge.h:105
Aws::Redshift::Model::RecurringCharge::SetRecurringChargeFrequency
void SetRecurringChargeFrequency(Aws::String &&value)
Definition: RecurringCharge.h:85
AWSStreamFwd.h
Aws::Redshift::Model::RecurringCharge::RecurringChargeAmountHasBeenSet
bool RecurringChargeAmountHasBeenSet() const
Definition: RecurringCharge.h:52
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::RecurringCharge::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::Redshift::Model::RecurringCharge::RecurringCharge
RecurringCharge()
Aws::Redshift::Model::RecurringCharge
Definition: RecurringCharge.h:32
Aws::Redshift::Model::RecurringCharge::WithRecurringChargeFrequency
RecurringCharge & WithRecurringChargeFrequency(Aws::String &&value)
Definition: RecurringCharge.h:100
Aws::Redshift::Model::RecurringCharge::SetRecurringChargeFrequency
void SetRecurringChargeFrequency(const Aws::String &value)
Definition: RecurringCharge.h:80
Aws::Redshift::Model::RecurringCharge::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::RecurringCharge::RecurringChargeFrequencyHasBeenSet
bool RecurringChargeFrequencyHasBeenSet() const
Definition: RecurringCharge.h:75
Aws::Redshift::Model::RecurringCharge::WithRecurringChargeFrequency
RecurringCharge & WithRecurringChargeFrequency(const Aws::String &value)
Definition: RecurringCharge.h:95
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::RecurringCharge::SetRecurringChargeFrequency
void SetRecurringChargeFrequency(const char *value)
Definition: RecurringCharge.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::RecurringCharge::WithRecurringChargeAmount
RecurringCharge & WithRecurringChargeAmount(double value)
Definition: RecurringCharge.h:64
Aws::Redshift::Model::RecurringCharge::GetRecurringChargeAmount
double GetRecurringChargeAmount() const
Definition: RecurringCharge.h:46
Aws::Redshift::Model::RecurringCharge::SetRecurringChargeAmount
void SetRecurringChargeAmount(double value)
Definition: RecurringCharge.h:58