AWS SDK for C++  1.9.129
AWS SDK for C++
InstanceFamilyCreditSpecification.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const UnlimitedSupportedInstanceFamily& GetInstanceFamily() const{ return m_instanceFamily; }
48 
52  inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
53 
57  inline void SetInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
58 
62  inline void SetInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
63 
67  inline InstanceFamilyCreditSpecification& WithInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { SetInstanceFamily(value); return *this;}
68 
72  inline InstanceFamilyCreditSpecification& WithInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { SetInstanceFamily(std::move(value)); return *this;}
73 
74 
79  inline const Aws::String& GetCpuCredits() const{ return m_cpuCredits; }
80 
85  inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
86 
91  inline void SetCpuCredits(const Aws::String& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = value; }
92 
97  inline void SetCpuCredits(Aws::String&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::move(value); }
98 
103  inline void SetCpuCredits(const char* value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits.assign(value); }
104 
109  inline InstanceFamilyCreditSpecification& WithCpuCredits(const Aws::String& value) { SetCpuCredits(value); return *this;}
110 
115  inline InstanceFamilyCreditSpecification& WithCpuCredits(Aws::String&& value) { SetCpuCredits(std::move(value)); return *this;}
116 
121  inline InstanceFamilyCreditSpecification& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;}
122 
123  private:
124 
125  UnlimitedSupportedInstanceFamily m_instanceFamily;
126  bool m_instanceFamilyHasBeenSet;
127 
128  Aws::String m_cpuCredits;
129  bool m_cpuCreditsHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::InstanceFamilyCreditSpecification::SetCpuCredits
void SetCpuCredits(Aws::String &&value)
Definition: InstanceFamilyCreditSpecification.h:97
Aws::EC2::Model::InstanceFamilyCreditSpecification::GetCpuCredits
const Aws::String & GetCpuCredits() const
Definition: InstanceFamilyCreditSpecification.h:79
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceFamilyCreditSpecification::operator=
InstanceFamilyCreditSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::InstanceFamilyCreditSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceFamilyCreditSpecification::WithInstanceFamily
InstanceFamilyCreditSpecification & WithInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
Definition: InstanceFamilyCreditSpecification.h:72
Aws::EC2::Model::InstanceFamilyCreditSpecification::InstanceFamilyHasBeenSet
bool InstanceFamilyHasBeenSet() const
Definition: InstanceFamilyCreditSpecification.h:52
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceFamilyCreditSpecification::WithInstanceFamily
InstanceFamilyCreditSpecification & WithInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
Definition: InstanceFamilyCreditSpecification.h:67
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceFamilyCreditSpecification::InstanceFamilyCreditSpecification
InstanceFamilyCreditSpecification()
Aws::EC2::Model::InstanceFamilyCreditSpecification::SetCpuCredits
void SetCpuCredits(const Aws::String &value)
Definition: InstanceFamilyCreditSpecification.h:91
Aws::EC2::Model::InstanceFamilyCreditSpecification::GetInstanceFamily
const UnlimitedSupportedInstanceFamily & GetInstanceFamily() const
Definition: InstanceFamilyCreditSpecification.h:47
Aws::EC2::Model::InstanceFamilyCreditSpecification::InstanceFamilyCreditSpecification
InstanceFamilyCreditSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceFamilyCreditSpecification
Definition: InstanceFamilyCreditSpecification.h:34
AWSString.h
Aws::EC2::Model::UnlimitedSupportedInstanceFamily
UnlimitedSupportedInstanceFamily
Definition: UnlimitedSupportedInstanceFamily.h:17
Aws::EC2::Model::InstanceFamilyCreditSpecification::WithCpuCredits
InstanceFamilyCreditSpecification & WithCpuCredits(Aws::String &&value)
Definition: InstanceFamilyCreditSpecification.h:115
Aws::EC2::Model::InstanceFamilyCreditSpecification::WithCpuCredits
InstanceFamilyCreditSpecification & WithCpuCredits(const Aws::String &value)
Definition: InstanceFamilyCreditSpecification.h:109
Aws::EC2::Model::InstanceFamilyCreditSpecification::CpuCreditsHasBeenSet
bool CpuCreditsHasBeenSet() const
Definition: InstanceFamilyCreditSpecification.h:85
Aws::EC2::Model::InstanceFamilyCreditSpecification::WithCpuCredits
InstanceFamilyCreditSpecification & WithCpuCredits(const char *value)
Definition: InstanceFamilyCreditSpecification.h:121
Aws::EC2::Model::InstanceFamilyCreditSpecification::SetInstanceFamily
void SetInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
Definition: InstanceFamilyCreditSpecification.h:57
Aws
Definition: AccessManagementClient.h:15
UnlimitedSupportedInstanceFamily.h
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::EC2::Model::InstanceFamilyCreditSpecification::SetInstanceFamily
void SetInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
Definition: InstanceFamilyCreditSpecification.h:62
EC2_EXPORTS.h
Aws::EC2::Model::InstanceFamilyCreditSpecification::SetCpuCredits
void SetCpuCredits(const char *value)
Definition: InstanceFamilyCreditSpecification.h:103
Aws::EC2::Model::InstanceFamilyCreditSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const