AWS SDK for C++  1.9.123
AWS SDK for C++
CreditSpecificationRequest.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 
47  inline const Aws::String& GetCpuCredits() const{ return m_cpuCredits; }
48 
53  inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
54 
59  inline void SetCpuCredits(const Aws::String& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = value; }
60 
65  inline void SetCpuCredits(Aws::String&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::move(value); }
66 
71  inline void SetCpuCredits(const char* value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits.assign(value); }
72 
77  inline CreditSpecificationRequest& WithCpuCredits(const Aws::String& value) { SetCpuCredits(value); return *this;}
78 
83  inline CreditSpecificationRequest& WithCpuCredits(Aws::String&& value) { SetCpuCredits(std::move(value)); return *this;}
84 
89  inline CreditSpecificationRequest& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;}
90 
91  private:
92 
93  Aws::String m_cpuCredits;
94  bool m_cpuCreditsHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace EC2
99 } // namespace Aws
Aws::EC2::Model::CreditSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CreditSpecificationRequest::WithCpuCredits
CreditSpecificationRequest & WithCpuCredits(const Aws::String &value)
Definition: CreditSpecificationRequest.h:77
Aws::EC2::Model::CreditSpecificationRequest::WithCpuCredits
CreditSpecificationRequest & WithCpuCredits(Aws::String &&value)
Definition: CreditSpecificationRequest.h:83
Aws::EC2::Model::CreditSpecificationRequest::CpuCreditsHasBeenSet
bool CpuCreditsHasBeenSet() const
Definition: CreditSpecificationRequest.h:53
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreditSpecificationRequest
Definition: CreditSpecificationRequest.h:33
AWSStreamFwd.h
Aws::EC2::Model::CreditSpecificationRequest::CreditSpecificationRequest
CreditSpecificationRequest()
Aws::EC2::Model::CreditSpecificationRequest::GetCpuCredits
const Aws::String & GetCpuCredits() const
Definition: CreditSpecificationRequest.h:47
Aws::EC2::Model::CreditSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CreditSpecificationRequest::SetCpuCredits
void SetCpuCredits(const char *value)
Definition: CreditSpecificationRequest.h:71
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CreditSpecificationRequest::WithCpuCredits
CreditSpecificationRequest & WithCpuCredits(const char *value)
Definition: CreditSpecificationRequest.h:89
AWSString.h
Aws::EC2::Model::CreditSpecificationRequest::operator=
CreditSpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
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::CreditSpecificationRequest::SetCpuCredits
void SetCpuCredits(const Aws::String &value)
Definition: CreditSpecificationRequest.h:59
Aws::EC2::Model::CreditSpecificationRequest::CreditSpecificationRequest
CreditSpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CreditSpecificationRequest::SetCpuCredits
void SetCpuCredits(Aws::String &&value)
Definition: CreditSpecificationRequest.h:65
EC2_EXPORTS.h