AWS SDK for C++  1.9.130
AWS SDK for C++
SpotPlacement.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <aws/ec2/model/Tenancy.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
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 
48  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
49 
55  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
56 
62  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
63 
69  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
70 
76  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
77 
83  inline SpotPlacement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
84 
90  inline SpotPlacement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
91 
97  inline SpotPlacement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
98 
99 
103  inline const Aws::String& GetGroupName() const{ return m_groupName; }
104 
108  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
109 
113  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
114 
118  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
119 
123  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
124 
128  inline SpotPlacement& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
129 
133  inline SpotPlacement& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
134 
138  inline SpotPlacement& WithGroupName(const char* value) { SetGroupName(value); return *this;}
139 
140 
146  inline const Tenancy& GetTenancy() const{ return m_tenancy; }
147 
153  inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
154 
160  inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
161 
167  inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
168 
174  inline SpotPlacement& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
175 
181  inline SpotPlacement& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
182 
183  private:
184 
185  Aws::String m_availabilityZone;
186  bool m_availabilityZoneHasBeenSet;
187 
188  Aws::String m_groupName;
189  bool m_groupNameHasBeenSet;
190 
191  Tenancy m_tenancy;
192  bool m_tenancyHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace EC2
197 } // namespace Aws
Aws::EC2::Model::SpotPlacement::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: SpotPlacement.h:69
Aws::EC2::Model::SpotPlacement::WithGroupName
SpotPlacement & WithGroupName(const Aws::String &value)
Definition: SpotPlacement.h:128
Aws::EC2::Model::SpotPlacement::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SpotPlacement::GetTenancy
const Tenancy & GetTenancy() const
Definition: SpotPlacement.h:146
Aws::EC2::Model::SpotPlacement::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: SpotPlacement.h:118
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotPlacement::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: SpotPlacement.h:55
Aws::EC2::Model::SpotPlacement::GetGroupName
const Aws::String & GetGroupName() const
Definition: SpotPlacement.h:103
Aws::EC2::Model::SpotPlacement::WithAvailabilityZone
SpotPlacement & WithAvailabilityZone(const char *value)
Definition: SpotPlacement.h:97
AWSStreamFwd.h
Aws::EC2::Model::SpotPlacement::WithGroupName
SpotPlacement & WithGroupName(Aws::String &&value)
Definition: SpotPlacement.h:133
Aws::EC2::Model::SpotPlacement::WithAvailabilityZone
SpotPlacement & WithAvailabilityZone(Aws::String &&value)
Definition: SpotPlacement.h:90
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SpotPlacement::WithAvailabilityZone
SpotPlacement & WithAvailabilityZone(const Aws::String &value)
Definition: SpotPlacement.h:83
Aws::EC2::Model::SpotPlacement::SpotPlacement
SpotPlacement()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotPlacement::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::Tenancy
Tenancy
Definition: Tenancy.h:17
Aws::EC2::Model::SpotPlacement::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: SpotPlacement.h:108
Aws::EC2::Model::SpotPlacement::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: SpotPlacement.h:113
Aws::EC2::Model::SpotPlacement::SetTenancy
void SetTenancy(const Tenancy &value)
Definition: SpotPlacement.h:160
Tenancy.h
Aws::EC2::Model::SpotPlacement::WithTenancy
SpotPlacement & WithTenancy(const Tenancy &value)
Definition: SpotPlacement.h:174
Aws::EC2::Model::SpotPlacement::SetGroupName
void SetGroupName(const char *value)
Definition: SpotPlacement.h:123
AWSString.h
Aws::EC2::Model::SpotPlacement::SpotPlacement
SpotPlacement(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotPlacement::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: SpotPlacement.h:62
Aws::EC2::Model::SpotPlacement
Definition: SpotPlacement.h:33
Aws::EC2::Model::SpotPlacement::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: SpotPlacement.h:48
Aws::EC2::Model::SpotPlacement::TenancyHasBeenSet
bool TenancyHasBeenSet() const
Definition: SpotPlacement.h:153
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SpotPlacement::SetTenancy
void SetTenancy(Tenancy &&value)
Definition: SpotPlacement.h:167
Aws::EC2::Model::SpotPlacement::operator=
SpotPlacement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotPlacement::WithTenancy
SpotPlacement & WithTenancy(Tenancy &&value)
Definition: SpotPlacement.h:181
Aws::EC2::Model::SpotPlacement::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: SpotPlacement.h:76
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
EC2_EXPORTS.h
Aws::EC2::Model::SpotPlacement::WithGroupName
SpotPlacement & WithGroupName(const char *value)
Definition: SpotPlacement.h:138