AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Placement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
10#include <aws/workspaces-instances/model/TenancyEnum.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace WorkspacesInstances {
21namespace Model {
22
29class Placement {
30 public:
31 AWS_WORKSPACESINSTANCES_API Placement() = default;
32 AWS_WORKSPACESINSTANCES_API Placement(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACESINSTANCES_API Placement& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetAffinity() const { return m_affinity; }
41 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
42 template <typename AffinityT = Aws::String>
43 void SetAffinity(AffinityT&& value) {
44 m_affinityHasBeenSet = true;
45 m_affinity = std::forward<AffinityT>(value);
46 }
47 template <typename AffinityT = Aws::String>
48 Placement& WithAffinity(AffinityT&& value) {
49 SetAffinity(std::forward<AffinityT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
59 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
60 template <typename AvailabilityZoneT = Aws::String>
61 void SetAvailabilityZone(AvailabilityZoneT&& value) {
62 m_availabilityZoneHasBeenSet = true;
63 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
64 }
65 template <typename AvailabilityZoneT = Aws::String>
66 Placement& WithAvailabilityZone(AvailabilityZoneT&& value) {
67 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetGroupId() const { return m_groupId; }
77 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
78 template <typename GroupIdT = Aws::String>
79 void SetGroupId(GroupIdT&& value) {
80 m_groupIdHasBeenSet = true;
81 m_groupId = std::forward<GroupIdT>(value);
82 }
83 template <typename GroupIdT = Aws::String>
84 Placement& WithGroupId(GroupIdT&& value) {
85 SetGroupId(std::forward<GroupIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetGroupName() const { return m_groupName; }
95 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
96 template <typename GroupNameT = Aws::String>
97 void SetGroupName(GroupNameT&& value) {
98 m_groupNameHasBeenSet = true;
99 m_groupName = std::forward<GroupNameT>(value);
100 }
101 template <typename GroupNameT = Aws::String>
102 Placement& WithGroupName(GroupNameT&& value) {
103 SetGroupName(std::forward<GroupNameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetHostId() const { return m_hostId; }
113 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
114 template <typename HostIdT = Aws::String>
115 void SetHostId(HostIdT&& value) {
116 m_hostIdHasBeenSet = true;
117 m_hostId = std::forward<HostIdT>(value);
118 }
119 template <typename HostIdT = Aws::String>
120 Placement& WithHostId(HostIdT&& value) {
121 SetHostId(std::forward<HostIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetHostResourceGroupArn() const { return m_hostResourceGroupArn; }
131 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
132 template <typename HostResourceGroupArnT = Aws::String>
133 void SetHostResourceGroupArn(HostResourceGroupArnT&& value) {
134 m_hostResourceGroupArnHasBeenSet = true;
135 m_hostResourceGroupArn = std::forward<HostResourceGroupArnT>(value);
136 }
137 template <typename HostResourceGroupArnT = Aws::String>
138 Placement& WithHostResourceGroupArn(HostResourceGroupArnT&& value) {
139 SetHostResourceGroupArn(std::forward<HostResourceGroupArnT>(value));
140 return *this;
141 }
143
145
148 inline int64_t GetPartitionNumber() const { return m_partitionNumber; }
149 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
150 inline void SetPartitionNumber(int64_t value) {
151 m_partitionNumberHasBeenSet = true;
152 m_partitionNumber = value;
153 }
154 inline Placement& WithPartitionNumber(int64_t value) {
155 SetPartitionNumber(value);
156 return *this;
157 }
159
161
164 inline TenancyEnum GetTenancy() const { return m_tenancy; }
165 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
166 inline void SetTenancy(TenancyEnum value) {
167 m_tenancyHasBeenSet = true;
168 m_tenancy = value;
169 }
171 SetTenancy(value);
172 return *this;
173 }
175 private:
176 Aws::String m_affinity;
177
178 Aws::String m_availabilityZone;
179
180 Aws::String m_groupId;
181
182 Aws::String m_groupName;
183
184 Aws::String m_hostId;
185
186 Aws::String m_hostResourceGroupArn;
187
188 int64_t m_partitionNumber{0};
189
191 bool m_affinityHasBeenSet = false;
192 bool m_availabilityZoneHasBeenSet = false;
193 bool m_groupIdHasBeenSet = false;
194 bool m_groupNameHasBeenSet = false;
195 bool m_hostIdHasBeenSet = false;
196 bool m_hostResourceGroupArnHasBeenSet = false;
197 bool m_partitionNumberHasBeenSet = false;
198 bool m_tenancyHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace WorkspacesInstances
203} // namespace Aws
const Aws::String & GetGroupName() const
Definition Placement.h:94
const Aws::String & GetAffinity() const
Definition Placement.h:40
Placement & WithHostResourceGroupArn(HostResourceGroupArnT &&value)
Definition Placement.h:138
void SetAffinity(AffinityT &&value)
Definition Placement.h:43
Placement & WithAffinity(AffinityT &&value)
Definition Placement.h:48
void SetHostResourceGroupArn(HostResourceGroupArnT &&value)
Definition Placement.h:133
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Placement.h:61
Placement & WithGroupName(GroupNameT &&value)
Definition Placement.h:102
const Aws::String & GetGroupId() const
Definition Placement.h:76
AWS_WORKSPACESINSTANCES_API Placement()=default
Placement & WithHostId(HostIdT &&value)
Definition Placement.h:120
Placement & WithGroupId(GroupIdT &&value)
Definition Placement.h:84
Placement & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Placement.h:66
AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetHostId() const
Definition Placement.h:112
AWS_WORKSPACESINSTANCES_API Placement & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetGroupName(GroupNameT &&value)
Definition Placement.h:97
const Aws::String & GetHostResourceGroupArn() const
Definition Placement.h:130
Placement & WithPartitionNumber(int64_t value)
Definition Placement.h:154
const Aws::String & GetAvailabilityZone() const
Definition Placement.h:58
Placement & WithTenancy(TenancyEnum value)
Definition Placement.h:170
AWS_WORKSPACESINSTANCES_API Placement(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String