AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreditSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API CreditSpecification() = default;
31 AWS_EC2_API CreditSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline const Aws::String& GetCpuCredits() const { return m_cpuCredits; }
43 inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
44 template <typename CpuCreditsT = Aws::String>
45 void SetCpuCredits(CpuCreditsT&& value) {
46 m_cpuCreditsHasBeenSet = true;
47 m_cpuCredits = std::forward<CpuCreditsT>(value);
48 }
49 template <typename CpuCreditsT = Aws::String>
50 CreditSpecification& WithCpuCredits(CpuCreditsT&& value) {
51 SetCpuCredits(std::forward<CpuCreditsT>(value));
52 return *this;
53 }
55 private:
56 Aws::String m_cpuCredits;
57 bool m_cpuCreditsHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace EC2
62} // namespace Aws
const Aws::String & GetCpuCredits() const
CreditSpecification & WithCpuCredits(CpuCreditsT &&value)
AWS_EC2_API CreditSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API CreditSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API CreditSpecification()=default
void SetCpuCredits(CpuCreditsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream