AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Placement.h
1
6#pragma once
7#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces-instances/model/TenancyEnum.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkspacesInstances
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_WORKSPACESINSTANCES_API Placement() = default;
37 AWS_WORKSPACESINSTANCES_API Placement(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACESINSTANCES_API Placement& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKSPACESINSTANCES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAffinity() const { return m_affinity; }
47 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
48 template<typename AffinityT = Aws::String>
49 void SetAffinity(AffinityT&& value) { m_affinityHasBeenSet = true; m_affinity = std::forward<AffinityT>(value); }
50 template<typename AffinityT = Aws::String>
51 Placement& WithAffinity(AffinityT&& value) { SetAffinity(std::forward<AffinityT>(value)); return *this;}
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) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
62 template<typename AvailabilityZoneT = Aws::String>
63 Placement& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
65
67
70 inline const Aws::String& GetGroupId() const { return m_groupId; }
71 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
72 template<typename GroupIdT = Aws::String>
73 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
74 template<typename GroupIdT = Aws::String>
75 Placement& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetGroupName() const { return m_groupName; }
83 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
84 template<typename GroupNameT = Aws::String>
85 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
86 template<typename GroupNameT = Aws::String>
87 Placement& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
89
91
94 inline const Aws::String& GetHostId() const { return m_hostId; }
95 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
96 template<typename HostIdT = Aws::String>
97 void SetHostId(HostIdT&& value) { m_hostIdHasBeenSet = true; m_hostId = std::forward<HostIdT>(value); }
98 template<typename HostIdT = Aws::String>
99 Placement& WithHostId(HostIdT&& value) { SetHostId(std::forward<HostIdT>(value)); return *this;}
101
103
106 inline const Aws::String& GetHostResourceGroupArn() const { return m_hostResourceGroupArn; }
107 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
108 template<typename HostResourceGroupArnT = Aws::String>
109 void SetHostResourceGroupArn(HostResourceGroupArnT&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::forward<HostResourceGroupArnT>(value); }
110 template<typename HostResourceGroupArnT = Aws::String>
111 Placement& WithHostResourceGroupArn(HostResourceGroupArnT&& value) { SetHostResourceGroupArn(std::forward<HostResourceGroupArnT>(value)); return *this;}
113
115
118 inline int GetPartitionNumber() const { return m_partitionNumber; }
119 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
120 inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
121 inline Placement& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
123
125
128 inline TenancyEnum GetTenancy() const { return m_tenancy; }
129 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
130 inline void SetTenancy(TenancyEnum value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
131 inline Placement& WithTenancy(TenancyEnum value) { SetTenancy(value); return *this;}
133 private:
134
135 Aws::String m_affinity;
136 bool m_affinityHasBeenSet = false;
137
138 Aws::String m_availabilityZone;
139 bool m_availabilityZoneHasBeenSet = false;
140
141 Aws::String m_groupId;
142 bool m_groupIdHasBeenSet = false;
143
144 Aws::String m_groupName;
145 bool m_groupNameHasBeenSet = false;
146
147 Aws::String m_hostId;
148 bool m_hostIdHasBeenSet = false;
149
150 Aws::String m_hostResourceGroupArn;
151 bool m_hostResourceGroupArnHasBeenSet = false;
152
153 int m_partitionNumber{0};
154 bool m_partitionNumberHasBeenSet = false;
155
157 bool m_tenancyHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace WorkspacesInstances
162} // namespace Aws
const Aws::String & GetGroupName() const
Definition Placement.h:82
const Aws::String & GetAffinity() const
Definition Placement.h:46
Placement & WithHostResourceGroupArn(HostResourceGroupArnT &&value)
Definition Placement.h:111
void SetAffinity(AffinityT &&value)
Definition Placement.h:49
Placement & WithPartitionNumber(int value)
Definition Placement.h:121
Placement & WithAffinity(AffinityT &&value)
Definition Placement.h:51
void SetHostResourceGroupArn(HostResourceGroupArnT &&value)
Definition Placement.h:109
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Placement.h:61
Placement & WithGroupName(GroupNameT &&value)
Definition Placement.h:87
const Aws::String & GetGroupId() const
Definition Placement.h:70
AWS_WORKSPACESINSTANCES_API Placement()=default
Placement & WithHostId(HostIdT &&value)
Definition Placement.h:99
AWS_WORKSPACESINSTANCES_API Placement(Aws::Utils::Json::JsonView jsonValue)
Placement & WithGroupId(GroupIdT &&value)
Definition Placement.h:75
AWS_WORKSPACESINSTANCES_API Aws::Utils::Json::JsonValue Jsonize() const
Placement & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Placement.h:63
const Aws::String & GetHostId() const
Definition Placement.h:94
void SetGroupName(GroupNameT &&value)
Definition Placement.h:85
AWS_WORKSPACESINSTANCES_API Placement & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHostResourceGroupArn() const
Definition Placement.h:106
const Aws::String & GetAvailabilityZone() const
Definition Placement.h:58
Placement & WithTenancy(TenancyEnum value)
Definition Placement.h:131
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue