AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedInstancesConfiguration.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/InstanceType.h>
11#include <aws/ec2/model/Scope.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
50 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
51 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
52 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
53 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
55 inline ReservedInstancesConfiguration& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
56 inline ReservedInstancesConfiguration& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
58
60
64 inline int GetInstanceCount() const{ return m_instanceCount; }
65 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
66 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
67 inline ReservedInstancesConfiguration& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
69
71
74 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
75 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
76 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
77 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
78 inline ReservedInstancesConfiguration& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
79 inline ReservedInstancesConfiguration& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetPlatform() const{ return m_platform; }
87 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
88 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
89 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
90 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
91 inline ReservedInstancesConfiguration& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
92 inline ReservedInstancesConfiguration& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
93 inline ReservedInstancesConfiguration& WithPlatform(const char* value) { SetPlatform(value); return *this;}
95
97
101 inline const Scope& GetScope() const{ return m_scope; }
102 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
103 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
104 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
105 inline ReservedInstancesConfiguration& WithScope(const Scope& value) { SetScope(value); return *this;}
106 inline ReservedInstancesConfiguration& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_availabilityZone;
111 bool m_availabilityZoneHasBeenSet = false;
112
113 int m_instanceCount;
114 bool m_instanceCountHasBeenSet = false;
115
116 InstanceType m_instanceType;
117 bool m_instanceTypeHasBeenSet = false;
118
119 Aws::String m_platform;
120 bool m_platformHasBeenSet = false;
121
122 Scope m_scope;
123 bool m_scopeHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace EC2
128} // namespace Aws
ReservedInstancesConfiguration & WithPlatform(const char *value)
ReservedInstancesConfiguration & WithScope(const Scope &value)
AWS_EC2_API ReservedInstancesConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstancesConfiguration & WithInstanceCount(int value)
ReservedInstancesConfiguration & WithInstanceType(const InstanceType &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ReservedInstancesConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedInstancesConfiguration & WithAvailabilityZone(Aws::String &&value)
ReservedInstancesConfiguration & WithAvailabilityZone(const char *value)
ReservedInstancesConfiguration & WithInstanceType(InstanceType &&value)
ReservedInstancesConfiguration & WithPlatform(const Aws::String &value)
ReservedInstancesConfiguration & WithScope(Scope &&value)
ReservedInstancesConfiguration & WithAvailabilityZone(const Aws::String &value)
ReservedInstancesConfiguration & WithPlatform(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream