AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/snow-device-management/model/CpuOptions.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/snow-device-management/model/InstanceState.h>
13#include <aws/snow-device-management/model/InstanceBlockDeviceMapping.h>
14#include <aws/snow-device-management/model/SecurityGroupIdentifier.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SnowDeviceManagement
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_SNOWDEVICEMANAGEMENT_API Instance();
42 AWS_SNOWDEVICEMANAGEMENT_API Instance(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SNOWDEVICEMANAGEMENT_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline int GetAmiLaunchIndex() const{ return m_amiLaunchIndex; }
53 inline bool AmiLaunchIndexHasBeenSet() const { return m_amiLaunchIndexHasBeenSet; }
54 inline void SetAmiLaunchIndex(int value) { m_amiLaunchIndexHasBeenSet = true; m_amiLaunchIndex = value; }
55 inline Instance& WithAmiLaunchIndex(int value) { SetAmiLaunchIndex(value); return *this;}
57
59
62 inline const Aws::Vector<InstanceBlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
63 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
64 inline void SetBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
65 inline void SetBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
68 inline Instance& AddBlockDeviceMappings(const InstanceBlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
69 inline Instance& AddBlockDeviceMappings(InstanceBlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
71
73
76 inline const CpuOptions& GetCpuOptions() const{ return m_cpuOptions; }
77 inline bool CpuOptionsHasBeenSet() const { return m_cpuOptionsHasBeenSet; }
78 inline void SetCpuOptions(const CpuOptions& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = value; }
79 inline void SetCpuOptions(CpuOptions&& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = std::move(value); }
80 inline Instance& WithCpuOptions(const CpuOptions& value) { SetCpuOptions(value); return *this;}
81 inline Instance& WithCpuOptions(CpuOptions&& value) { SetCpuOptions(std::move(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
89 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
90 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
91 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
92 inline Instance& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
93 inline Instance& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetImageId() const{ return m_imageId; }
101 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
102 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
103 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
104 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
105 inline Instance& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
106 inline Instance& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
107 inline Instance& WithImageId(const char* value) { SetImageId(value); return *this;}
109
111
114 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
115 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
116 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
117 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
118 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
119 inline Instance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
120 inline Instance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
121 inline Instance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
123
125
128 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
129 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
130 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
131 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
132 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
133 inline Instance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
134 inline Instance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
135 inline Instance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
137
139
142 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
143 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
144 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
145 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
146 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
147 inline Instance& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
148 inline Instance& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
149 inline Instance& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
151
153
156 inline const Aws::String& GetPublicIpAddress() const{ return m_publicIpAddress; }
157 inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; }
158 inline void SetPublicIpAddress(const Aws::String& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = value; }
159 inline void SetPublicIpAddress(Aws::String&& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = std::move(value); }
160 inline void SetPublicIpAddress(const char* value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress.assign(value); }
161 inline Instance& WithPublicIpAddress(const Aws::String& value) { SetPublicIpAddress(value); return *this;}
162 inline Instance& WithPublicIpAddress(Aws::String&& value) { SetPublicIpAddress(std::move(value)); return *this;}
163 inline Instance& WithPublicIpAddress(const char* value) { SetPublicIpAddress(value); return *this;}
165
167
171 inline const Aws::String& GetRootDeviceName() const{ return m_rootDeviceName; }
172 inline bool RootDeviceNameHasBeenSet() const { return m_rootDeviceNameHasBeenSet; }
173 inline void SetRootDeviceName(const Aws::String& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = value; }
174 inline void SetRootDeviceName(Aws::String&& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = std::move(value); }
175 inline void SetRootDeviceName(const char* value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName.assign(value); }
176 inline Instance& WithRootDeviceName(const Aws::String& value) { SetRootDeviceName(value); return *this;}
177 inline Instance& WithRootDeviceName(Aws::String&& value) { SetRootDeviceName(std::move(value)); return *this;}
178 inline Instance& WithRootDeviceName(const char* value) { SetRootDeviceName(value); return *this;}
180
182
185 inline const Aws::Vector<SecurityGroupIdentifier>& GetSecurityGroups() const{ return m_securityGroups; }
186 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
187 inline void SetSecurityGroups(const Aws::Vector<SecurityGroupIdentifier>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
188 inline void SetSecurityGroups(Aws::Vector<SecurityGroupIdentifier>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
190 inline Instance& WithSecurityGroups(Aws::Vector<SecurityGroupIdentifier>&& value) { SetSecurityGroups(std::move(value)); return *this;}
191 inline Instance& AddSecurityGroups(const SecurityGroupIdentifier& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
192 inline Instance& AddSecurityGroups(SecurityGroupIdentifier&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
194
196
197 inline const InstanceState& GetState() const{ return m_state; }
198 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
199 inline void SetState(const InstanceState& value) { m_stateHasBeenSet = true; m_state = value; }
200 inline void SetState(InstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
201 inline Instance& WithState(const InstanceState& value) { SetState(value); return *this;}
202 inline Instance& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;}
204
206
209 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
210 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
211 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
212 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
213 inline Instance& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
214 inline Instance& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
216 private:
217
218 int m_amiLaunchIndex;
219 bool m_amiLaunchIndexHasBeenSet = false;
220
221 Aws::Vector<InstanceBlockDeviceMapping> m_blockDeviceMappings;
222 bool m_blockDeviceMappingsHasBeenSet = false;
223
224 CpuOptions m_cpuOptions;
225 bool m_cpuOptionsHasBeenSet = false;
226
227 Aws::Utils::DateTime m_createdAt;
228 bool m_createdAtHasBeenSet = false;
229
230 Aws::String m_imageId;
231 bool m_imageIdHasBeenSet = false;
232
233 Aws::String m_instanceId;
234 bool m_instanceIdHasBeenSet = false;
235
236 Aws::String m_instanceType;
237 bool m_instanceTypeHasBeenSet = false;
238
239 Aws::String m_privateIpAddress;
240 bool m_privateIpAddressHasBeenSet = false;
241
242 Aws::String m_publicIpAddress;
243 bool m_publicIpAddressHasBeenSet = false;
244
245 Aws::String m_rootDeviceName;
246 bool m_rootDeviceNameHasBeenSet = false;
247
249 bool m_securityGroupsHasBeenSet = false;
250
251 InstanceState m_state;
252 bool m_stateHasBeenSet = false;
253
254 Aws::Utils::DateTime m_updatedAt;
255 bool m_updatedAtHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace SnowDeviceManagement
260} // namespace Aws
Instance & WithImageId(const Aws::String &value)
Definition Instance.h:105
void SetInstanceId(const Aws::String &value)
Definition Instance.h:116
Instance & WithCpuOptions(CpuOptions &&value)
Definition Instance.h:81
void SetPublicIpAddress(const Aws::String &value)
Definition Instance.h:158
Instance & WithInstanceType(const Aws::String &value)
Definition Instance.h:133
void SetPrivateIpAddress(Aws::String &&value)
Definition Instance.h:145
const CpuOptions & GetCpuOptions() const
Definition Instance.h:76
Instance & AddBlockDeviceMappings(const InstanceBlockDeviceMapping &value)
Definition Instance.h:68
AWS_SNOWDEVICEMANAGEMENT_API Instance(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(const Aws::String &value)
Definition Instance.h:130
Instance & WithInstanceType(Aws::String &&value)
Definition Instance.h:134
Instance & AddSecurityGroups(SecurityGroupIdentifier &&value)
Definition Instance.h:192
Instance & WithSecurityGroups(const Aws::Vector< SecurityGroupIdentifier > &value)
Definition Instance.h:189
const InstanceState & GetState() const
Definition Instance.h:197
Instance & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition Instance.h:214
void SetRootDeviceName(const char *value)
Definition Instance.h:175
Instance & WithInstanceId(Aws::String &&value)
Definition Instance.h:120
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Instance.h:209
Instance & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Instance.h:92
void SetPrivateIpAddress(const char *value)
Definition Instance.h:146
Instance & WithState(const InstanceState &value)
Definition Instance.h:201
void SetState(const InstanceState &value)
Definition Instance.h:199
void SetInstanceId(Aws::String &&value)
Definition Instance.h:117
void SetState(InstanceState &&value)
Definition Instance.h:200
void SetPublicIpAddress(Aws::String &&value)
Definition Instance.h:159
void SetSecurityGroups(Aws::Vector< SecurityGroupIdentifier > &&value)
Definition Instance.h:188
const Aws::String & GetInstanceType() const
Definition Instance.h:128
void SetInstanceType(Aws::String &&value)
Definition Instance.h:131
Instance & WithPrivateIpAddress(const Aws::String &value)
Definition Instance.h:147
Instance & WithPublicIpAddress(const char *value)
Definition Instance.h:163
Instance & WithPrivateIpAddress(const char *value)
Definition Instance.h:149
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Instance.h:91
void SetRootDeviceName(const Aws::String &value)
Definition Instance.h:173
const Aws::String & GetPrivateIpAddress() const
Definition Instance.h:142
Instance & WithInstanceId(const Aws::String &value)
Definition Instance.h:119
Instance & WithInstanceId(const char *value)
Definition Instance.h:121
AWS_SNOWDEVICEMANAGEMENT_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
Definition Instance.h:65
Instance & WithImageId(Aws::String &&value)
Definition Instance.h:106
void SetInstanceType(const char *value)
Definition Instance.h:132
Instance & WithRootDeviceName(Aws::String &&value)
Definition Instance.h:177
void SetImageId(const Aws::String &value)
Definition Instance.h:102
const Aws::String & GetImageId() const
Definition Instance.h:100
Instance & WithRootDeviceName(const char *value)
Definition Instance.h:178
AWS_SNOWDEVICEMANAGEMENT_API Instance()
void SetRootDeviceName(Aws::String &&value)
Definition Instance.h:174
const Aws::Vector< InstanceBlockDeviceMapping > & GetBlockDeviceMappings() const
Definition Instance.h:62
Instance & WithBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
Definition Instance.h:67
Instance & WithPrivateIpAddress(Aws::String &&value)
Definition Instance.h:148
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition Instance.h:212
void SetImageId(Aws::String &&value)
Definition Instance.h:103
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition Instance.h:211
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Instance.h:90
Instance & WithInstanceType(const char *value)
Definition Instance.h:135
const Aws::Vector< SecurityGroupIdentifier > & GetSecurityGroups() const
Definition Instance.h:185
Instance & WithBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
Definition Instance.h:66
void SetPrivateIpAddress(const Aws::String &value)
Definition Instance.h:144
void SetPublicIpAddress(const char *value)
Definition Instance.h:160
Instance & WithAmiLaunchIndex(int value)
Definition Instance.h:55
void SetBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
Definition Instance.h:64
Instance & WithSecurityGroups(Aws::Vector< SecurityGroupIdentifier > &&value)
Definition Instance.h:190
Instance & WithRootDeviceName(const Aws::String &value)
Definition Instance.h:176
void SetSecurityGroups(const Aws::Vector< SecurityGroupIdentifier > &value)
Definition Instance.h:187
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Instance.h:88
const Aws::String & GetRootDeviceName() const
Definition Instance.h:171
Instance & WithImageId(const char *value)
Definition Instance.h:107
void SetCpuOptions(const CpuOptions &value)
Definition Instance.h:78
Instance & WithCpuOptions(const CpuOptions &value)
Definition Instance.h:80
Instance & AddBlockDeviceMappings(InstanceBlockDeviceMapping &&value)
Definition Instance.h:69
Instance & WithPublicIpAddress(Aws::String &&value)
Definition Instance.h:162
void SetInstanceId(const char *value)
Definition Instance.h:118
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
Instance & WithState(InstanceState &&value)
Definition Instance.h:202
void SetCpuOptions(CpuOptions &&value)
Definition Instance.h:79
Instance & AddSecurityGroups(const SecurityGroupIdentifier &value)
Definition Instance.h:191
Instance & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition Instance.h:213
const Aws::String & GetInstanceId() const
Definition Instance.h:114
Instance & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Instance.h:93
Instance & WithPublicIpAddress(const Aws::String &value)
Definition Instance.h:161
const Aws::String & GetPublicIpAddress() const
Definition Instance.h:156
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue