AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplatePlacementRequest.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/Tenancy.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
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
48 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
49 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
50 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
51 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
53 inline LaunchTemplatePlacementRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
54 inline LaunchTemplatePlacementRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
56
58
61 inline const Aws::String& GetAffinity() const{ return m_affinity; }
62 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
63 inline void SetAffinity(const Aws::String& value) { m_affinityHasBeenSet = true; m_affinity = value; }
64 inline void SetAffinity(Aws::String&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); }
65 inline void SetAffinity(const char* value) { m_affinityHasBeenSet = true; m_affinity.assign(value); }
66 inline LaunchTemplatePlacementRequest& WithAffinity(const Aws::String& value) { SetAffinity(value); return *this;}
67 inline LaunchTemplatePlacementRequest& WithAffinity(Aws::String&& value) { SetAffinity(std::move(value)); return *this;}
68 inline LaunchTemplatePlacementRequest& WithAffinity(const char* value) { SetAffinity(value); return *this;}
70
72
75 inline const Aws::String& GetGroupName() const{ return m_groupName; }
76 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
77 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
78 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
79 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
80 inline LaunchTemplatePlacementRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
81 inline LaunchTemplatePlacementRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
82 inline LaunchTemplatePlacementRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
84
86
89 inline const Aws::String& GetHostId() const{ return m_hostId; }
90 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
91 inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
92 inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
93 inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
94 inline LaunchTemplatePlacementRequest& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
95 inline LaunchTemplatePlacementRequest& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
96 inline LaunchTemplatePlacementRequest& WithHostId(const char* value) { SetHostId(value); return *this;}
98
100
104 inline const Tenancy& GetTenancy() const{ return m_tenancy; }
105 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
106 inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
107 inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
108 inline LaunchTemplatePlacementRequest& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
109 inline LaunchTemplatePlacementRequest& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetSpreadDomain() const{ return m_spreadDomain; }
117 inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
118 inline void SetSpreadDomain(const Aws::String& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = value; }
119 inline void SetSpreadDomain(Aws::String&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::move(value); }
120 inline void SetSpreadDomain(const char* value) { m_spreadDomainHasBeenSet = true; m_spreadDomain.assign(value); }
121 inline LaunchTemplatePlacementRequest& WithSpreadDomain(const Aws::String& value) { SetSpreadDomain(value); return *this;}
122 inline LaunchTemplatePlacementRequest& WithSpreadDomain(Aws::String&& value) { SetSpreadDomain(std::move(value)); return *this;}
123 inline LaunchTemplatePlacementRequest& WithSpreadDomain(const char* value) { SetSpreadDomain(value); return *this;}
125
127
132 inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
133 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
134 inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
135 inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
136 inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
139 inline LaunchTemplatePlacementRequest& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
141
143
147 inline int GetPartitionNumber() const{ return m_partitionNumber; }
148 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
149 inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
152
154
158 inline const Aws::String& GetGroupId() const{ return m_groupId; }
159 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
160 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
161 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
162 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
163 inline LaunchTemplatePlacementRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
164 inline LaunchTemplatePlacementRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
165 inline LaunchTemplatePlacementRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
167 private:
168
169 Aws::String m_availabilityZone;
170 bool m_availabilityZoneHasBeenSet = false;
171
172 Aws::String m_affinity;
173 bool m_affinityHasBeenSet = false;
174
175 Aws::String m_groupName;
176 bool m_groupNameHasBeenSet = false;
177
178 Aws::String m_hostId;
179 bool m_hostIdHasBeenSet = false;
180
181 Tenancy m_tenancy;
182 bool m_tenancyHasBeenSet = false;
183
184 Aws::String m_spreadDomain;
185 bool m_spreadDomainHasBeenSet = false;
186
187 Aws::String m_hostResourceGroupArn;
188 bool m_hostResourceGroupArnHasBeenSet = false;
189
190 int m_partitionNumber;
191 bool m_partitionNumberHasBeenSet = false;
192
193 Aws::String m_groupId;
194 bool m_groupIdHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace EC2
199} // namespace Aws
LaunchTemplatePlacementRequest & WithAvailabilityZone(const Aws::String &value)
LaunchTemplatePlacementRequest & WithAvailabilityZone(const char *value)
LaunchTemplatePlacementRequest & WithSpreadDomain(const char *value)
LaunchTemplatePlacementRequest & WithTenancy(const Tenancy &value)
LaunchTemplatePlacementRequest & WithAffinity(Aws::String &&value)
LaunchTemplatePlacementRequest & WithGroupId(const Aws::String &value)
AWS_EC2_API LaunchTemplatePlacementRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplatePlacementRequest & WithGroupId(Aws::String &&value)
LaunchTemplatePlacementRequest & WithAffinity(const char *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
LaunchTemplatePlacementRequest & WithHostId(const char *value)
LaunchTemplatePlacementRequest & WithPartitionNumber(int value)
LaunchTemplatePlacementRequest & WithSpreadDomain(Aws::String &&value)
LaunchTemplatePlacementRequest & WithHostResourceGroupArn(const Aws::String &value)
LaunchTemplatePlacementRequest & WithHostId(Aws::String &&value)
LaunchTemplatePlacementRequest & WithHostId(const Aws::String &value)
LaunchTemplatePlacementRequest & WithAvailabilityZone(Aws::String &&value)
LaunchTemplatePlacementRequest & WithGroupId(const char *value)
LaunchTemplatePlacementRequest & WithGroupName(const Aws::String &value)
LaunchTemplatePlacementRequest & WithAffinity(const Aws::String &value)
LaunchTemplatePlacementRequest & WithHostResourceGroupArn(Aws::String &&value)
LaunchTemplatePlacementRequest & WithTenancy(Tenancy &&value)
LaunchTemplatePlacementRequest & WithGroupName(Aws::String &&value)
LaunchTemplatePlacementRequest & WithSpreadDomain(const Aws::String &value)
LaunchTemplatePlacementRequest & WithHostResourceGroupArn(const char *value)
AWS_EC2_API LaunchTemplatePlacementRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplatePlacementRequest & WithGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream