AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
InvestigationEc2Instance.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
29 public:
30 AWS_GUARDDUTY_API InvestigationEc2Instance() = default;
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
58 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
59 template <typename InstanceTypeT = Aws::String>
60 void SetInstanceType(InstanceTypeT&& value) {
61 m_instanceTypeHasBeenSet = true;
62 m_instanceType = std::forward<InstanceTypeT>(value);
63 }
64 template <typename InstanceTypeT = Aws::String>
66 SetInstanceType(std::forward<InstanceTypeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetInstanceState() const { return m_instanceState; }
76 inline bool InstanceStateHasBeenSet() const { return m_instanceStateHasBeenSet; }
77 template <typename InstanceStateT = Aws::String>
78 void SetInstanceState(InstanceStateT&& value) {
79 m_instanceStateHasBeenSet = true;
80 m_instanceState = std::forward<InstanceStateT>(value);
81 }
82 template <typename InstanceStateT = Aws::String>
84 SetInstanceState(std::forward<InstanceStateT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
94 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
95 template <typename AvailabilityZoneT = Aws::String>
96 void SetAvailabilityZone(AvailabilityZoneT&& value) {
97 m_availabilityZoneHasBeenSet = true;
98 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
99 }
100 template <typename AvailabilityZoneT = Aws::String>
101 InvestigationEc2Instance& WithAvailabilityZone(AvailabilityZoneT&& value) {
102 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
112 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
113 template <typename PrivateIpAddressT = Aws::String>
114 void SetPrivateIpAddress(PrivateIpAddressT&& value) {
115 m_privateIpAddressHasBeenSet = true;
116 m_privateIpAddress = std::forward<PrivateIpAddressT>(value);
117 }
118 template <typename PrivateIpAddressT = Aws::String>
119 InvestigationEc2Instance& WithPrivateIpAddress(PrivateIpAddressT&& value) {
120 SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
130 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
131 template <typename PublicIpT = Aws::String>
132 void SetPublicIp(PublicIpT&& value) {
133 m_publicIpHasBeenSet = true;
134 m_publicIp = std::forward<PublicIpT>(value);
135 }
136 template <typename PublicIpT = Aws::String>
138 SetPublicIp(std::forward<PublicIpT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetVpcId() const { return m_vpcId; }
148 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
149 template <typename VpcIdT = Aws::String>
150 void SetVpcId(VpcIdT&& value) {
151 m_vpcIdHasBeenSet = true;
152 m_vpcId = std::forward<VpcIdT>(value);
153 }
154 template <typename VpcIdT = Aws::String>
156 SetVpcId(std::forward<VpcIdT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
166 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
167 template <typename SubnetIdT = Aws::String>
168 void SetSubnetId(SubnetIdT&& value) {
169 m_subnetIdHasBeenSet = true;
170 m_subnetId = std::forward<SubnetIdT>(value);
171 }
172 template <typename SubnetIdT = Aws::String>
174 SetSubnetId(std::forward<SubnetIdT>(value));
175 return *this;
176 }
178
180
184 inline const Aws::String& GetImageId() const { return m_imageId; }
185 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
186 template <typename ImageIdT = Aws::String>
187 void SetImageId(ImageIdT&& value) {
188 m_imageIdHasBeenSet = true;
189 m_imageId = std::forward<ImageIdT>(value);
190 }
191 template <typename ImageIdT = Aws::String>
193 SetImageId(std::forward<ImageIdT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Utils::DateTime& GetLaunchedAt() const { return m_launchedAt; }
203 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
204 template <typename LaunchedAtT = Aws::Utils::DateTime>
205 void SetLaunchedAt(LaunchedAtT&& value) {
206 m_launchedAtHasBeenSet = true;
207 m_launchedAt = std::forward<LaunchedAtT>(value);
208 }
209 template <typename LaunchedAtT = Aws::Utils::DateTime>
211 SetLaunchedAt(std::forward<LaunchedAtT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_instanceId;
217
218 Aws::String m_instanceType;
219
220 Aws::String m_instanceState;
221
222 Aws::String m_availabilityZone;
223
224 Aws::String m_privateIpAddress;
225
226 Aws::String m_publicIp;
227
228 Aws::String m_vpcId;
229
230 Aws::String m_subnetId;
231
232 Aws::String m_imageId;
233
234 Aws::Utils::DateTime m_launchedAt{};
235 bool m_instanceIdHasBeenSet = false;
236 bool m_instanceTypeHasBeenSet = false;
237 bool m_instanceStateHasBeenSet = false;
238 bool m_availabilityZoneHasBeenSet = false;
239 bool m_privateIpAddressHasBeenSet = false;
240 bool m_publicIpHasBeenSet = false;
241 bool m_vpcIdHasBeenSet = false;
242 bool m_subnetIdHasBeenSet = false;
243 bool m_imageIdHasBeenSet = false;
244 bool m_launchedAtHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace GuardDuty
249} // namespace Aws
InvestigationEc2Instance & WithSubnetId(SubnetIdT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
InvestigationEc2Instance & WithInstanceId(InstanceIdT &&value)
InvestigationEc2Instance & WithLaunchedAt(LaunchedAtT &&value)
InvestigationEc2Instance & WithInstanceType(InstanceTypeT &&value)
InvestigationEc2Instance & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_GUARDDUTY_API InvestigationEc2Instance(Aws::Utils::Json::JsonView jsonValue)
InvestigationEc2Instance & WithVpcId(VpcIdT &&value)
InvestigationEc2Instance & WithImageId(ImageIdT &&value)
AWS_GUARDDUTY_API InvestigationEc2Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
InvestigationEc2Instance & WithInstanceState(InstanceStateT &&value)
AWS_GUARDDUTY_API InvestigationEc2Instance()=default
InvestigationEc2Instance & WithPrivateIpAddress(PrivateIpAddressT &&value)
InvestigationEc2Instance & WithPublicIp(PublicIpT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue