AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservationFleetInstanceSpecification.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/InstanceType.h>
10#include <aws/ec2/model/CapacityReservationInstancePlatform.h>
11#include <aws/core/utils/memory/stl/AWSString.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
50 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
51 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
52 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
53 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
55 inline ReservationFleetInstanceSpecification& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
57
59
63 inline const CapacityReservationInstancePlatform& GetInstancePlatform() const{ return m_instancePlatform; }
64 inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
65 inline void SetInstancePlatform(const CapacityReservationInstancePlatform& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = value; }
66 inline void SetInstancePlatform(CapacityReservationInstancePlatform&& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = std::move(value); }
70
72
81 inline double GetWeight() const{ return m_weight; }
82 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
83 inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; }
84 inline ReservationFleetInstanceSpecification& WithWeight(double value) { SetWeight(value); return *this;}
86
88
94 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
95 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
96 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
97 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
98 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
101 inline ReservationFleetInstanceSpecification& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
103
105
111 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
112 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
113 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
114 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
115 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
120
122
129 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
130 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
131 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
132 inline ReservationFleetInstanceSpecification& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
134
136
143 inline int GetPriority() const{ return m_priority; }
144 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
145 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
146 inline ReservationFleetInstanceSpecification& WithPriority(int value) { SetPriority(value); return *this;}
148 private:
149
150 InstanceType m_instanceType;
151 bool m_instanceTypeHasBeenSet = false;
152
153 CapacityReservationInstancePlatform m_instancePlatform;
154 bool m_instancePlatformHasBeenSet = false;
155
156 double m_weight;
157 bool m_weightHasBeenSet = false;
158
159 Aws::String m_availabilityZone;
160 bool m_availabilityZoneHasBeenSet = false;
161
162 Aws::String m_availabilityZoneId;
163 bool m_availabilityZoneIdHasBeenSet = false;
164
165 bool m_ebsOptimized;
166 bool m_ebsOptimizedHasBeenSet = false;
167
168 int m_priority;
169 bool m_priorityHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace EC2
174} // namespace Aws
ReservationFleetInstanceSpecification & WithInstancePlatform(CapacityReservationInstancePlatform &&value)
const CapacityReservationInstancePlatform & GetInstancePlatform() const
ReservationFleetInstanceSpecification & WithAvailabilityZone(const Aws::String &value)
ReservationFleetInstanceSpecification & WithPriority(int value)
ReservationFleetInstanceSpecification & WithInstanceType(const InstanceType &value)
ReservationFleetInstanceSpecification & WithWeight(double value)
void SetInstancePlatform(CapacityReservationInstancePlatform &&value)
ReservationFleetInstanceSpecification & WithEbsOptimized(bool value)
AWS_EC2_API ReservationFleetInstanceSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservationFleetInstanceSpecification & WithAvailabilityZoneId(Aws::String &&value)
ReservationFleetInstanceSpecification & WithAvailabilityZone(const char *value)
ReservationFleetInstanceSpecification & WithAvailabilityZone(Aws::String &&value)
ReservationFleetInstanceSpecification & WithAvailabilityZoneId(const char *value)
ReservationFleetInstanceSpecification & WithInstanceType(InstanceType &&value)
AWS_EC2_API ReservationFleetInstanceSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservationFleetInstanceSpecification & WithAvailabilityZoneId(const Aws::String &value)
ReservationFleetInstanceSpecification & WithInstancePlatform(const CapacityReservationInstancePlatform &value)
void SetInstancePlatform(const CapacityReservationInstancePlatform &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream