AWS SDK for C++  1.9.67
AWS SDK for C++
InstanceCreditSpecification.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
47 
51  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
52 
56  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
57 
61  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
62 
66  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 
71  inline InstanceCreditSpecification& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
76  inline InstanceCreditSpecification& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
77 
81  inline InstanceCreditSpecification& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
82 
83 
88  inline const Aws::String& GetCpuCredits() const{ return m_cpuCredits; }
89 
94  inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
95 
100  inline void SetCpuCredits(const Aws::String& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = value; }
101 
106  inline void SetCpuCredits(Aws::String&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::move(value); }
107 
112  inline void SetCpuCredits(const char* value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits.assign(value); }
113 
118  inline InstanceCreditSpecification& WithCpuCredits(const Aws::String& value) { SetCpuCredits(value); return *this;}
119 
124  inline InstanceCreditSpecification& WithCpuCredits(Aws::String&& value) { SetCpuCredits(std::move(value)); return *this;}
125 
130  inline InstanceCreditSpecification& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;}
131 
132  private:
133 
134  Aws::String m_instanceId;
135  bool m_instanceIdHasBeenSet;
136 
137  Aws::String m_cpuCredits;
138  bool m_cpuCreditsHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace EC2
143 } // namespace Aws
Aws::EC2::Model::InstanceCreditSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceCreditSpecification::operator=
InstanceCreditSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceCreditSpecification::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: InstanceCreditSpecification.h:56
Aws::EC2::Model::InstanceCreditSpecification::SetCpuCredits
void SetCpuCredits(const char *value)
Definition: InstanceCreditSpecification.h:112
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceCreditSpecification::SetCpuCredits
void SetCpuCredits(Aws::String &&value)
Definition: InstanceCreditSpecification.h:106
Aws::EC2::Model::InstanceCreditSpecification::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: InstanceCreditSpecification.h:51
Aws::EC2::Model::InstanceCreditSpecification::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: InstanceCreditSpecification.h:46
Aws::EC2::Model::InstanceCreditSpecification::SetInstanceId
void SetInstanceId(const char *value)
Definition: InstanceCreditSpecification.h:66
AWSStreamFwd.h
Aws::EC2::Model::InstanceCreditSpecification::CpuCreditsHasBeenSet
bool CpuCreditsHasBeenSet() const
Definition: InstanceCreditSpecification.h:94
Aws::EC2::Model::InstanceCreditSpecification
Definition: InstanceCreditSpecification.h:33
Aws::EC2::Model::InstanceCreditSpecification::InstanceCreditSpecification
InstanceCreditSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceCreditSpecification::WithCpuCredits
InstanceCreditSpecification & WithCpuCredits(Aws::String &&value)
Definition: InstanceCreditSpecification.h:124
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceCreditSpecification::WithCpuCredits
InstanceCreditSpecification & WithCpuCredits(const Aws::String &value)
Definition: InstanceCreditSpecification.h:118
AWSString.h
Aws::EC2::Model::InstanceCreditSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceCreditSpecification::InstanceCreditSpecification
InstanceCreditSpecification()
Aws::EC2::Model::InstanceCreditSpecification::WithCpuCredits
InstanceCreditSpecification & WithCpuCredits(const char *value)
Definition: InstanceCreditSpecification.h:130
Aws::EC2::Model::InstanceCreditSpecification::SetCpuCredits
void SetCpuCredits(const Aws::String &value)
Definition: InstanceCreditSpecification.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceCreditSpecification::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: InstanceCreditSpecification.h:61
Aws::EC2::Model::InstanceCreditSpecification::GetCpuCredits
const Aws::String & GetCpuCredits() const
Definition: InstanceCreditSpecification.h:88
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::InstanceCreditSpecification::WithInstanceId
InstanceCreditSpecification & WithInstanceId(Aws::String &&value)
Definition: InstanceCreditSpecification.h:76
Aws::EC2::Model::InstanceCreditSpecification::WithInstanceId
InstanceCreditSpecification & WithInstanceId(const Aws::String &value)
Definition: InstanceCreditSpecification.h:71
EC2_EXPORTS.h
Aws::EC2::Model::InstanceCreditSpecification::WithInstanceId
InstanceCreditSpecification & WithInstanceId(const char *value)
Definition: InstanceCreditSpecification.h:81