AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceFamilyCreditSpecification.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/UnlimitedSupportedInstanceFamily.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const UnlimitedSupportedInstanceFamily& GetInstanceFamily() const{ return m_instanceFamily; }
49 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
50 inline void SetInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
51 inline void SetInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
55
57
61 inline const Aws::String& GetCpuCredits() const{ return m_cpuCredits; }
62 inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
63 inline void SetCpuCredits(const Aws::String& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = value; }
64 inline void SetCpuCredits(Aws::String&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::move(value); }
65 inline void SetCpuCredits(const char* value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits.assign(value); }
66 inline InstanceFamilyCreditSpecification& WithCpuCredits(const Aws::String& value) { SetCpuCredits(value); return *this;}
67 inline InstanceFamilyCreditSpecification& WithCpuCredits(Aws::String&& value) { SetCpuCredits(std::move(value)); return *this;}
68 inline InstanceFamilyCreditSpecification& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;}
70 private:
71
72 UnlimitedSupportedInstanceFamily m_instanceFamily;
73 bool m_instanceFamilyHasBeenSet = false;
74
75 Aws::String m_cpuCredits;
76 bool m_cpuCreditsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
void SetInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
void SetInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
InstanceFamilyCreditSpecification & WithCpuCredits(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceFamilyCreditSpecification & WithCpuCredits(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceFamilyCreditSpecification & WithInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
AWS_EC2_API InstanceFamilyCreditSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceFamilyCreditSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceFamilyCreditSpecification & WithCpuCredits(Aws::String &&value)
InstanceFamilyCreditSpecification & WithInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
const UnlimitedSupportedInstanceFamily & GetInstanceFamily() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream