7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/IamInstanceProfile.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/model/ProductCode.h>
53 template<
typename AvailabilityZoneT = Aws::String>
54 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
55 template<
typename AvailabilityZoneT = Aws::String>
65 template<
typename ImageDescriptionT = Aws::String>
66 void SetImageDescription(ImageDescriptionT&& value) { m_imageDescriptionHasBeenSet =
true; m_imageDescription = std::forward<ImageDescriptionT>(value); }
67 template<
typename ImageDescriptionT = Aws::String>
79 template<
typename InstanceStateT = Aws::String>
80 void SetInstanceState(InstanceStateT&& value) { m_instanceStateHasBeenSet =
true; m_instanceState = std::forward<InstanceStateT>(value); }
81 template<
typename InstanceStateT = Aws::String>
89 template<
typename IamInstanceProfileT = IamInstanceProfile>
90 void SetIamInstanceProfile(IamInstanceProfileT&& value) { m_iamInstanceProfileHasBeenSet =
true; m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value); }
91 template<
typename IamInstanceProfileT = IamInstanceProfile>
101 template<
typename InstanceTypeT = Aws::String>
102 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet =
true; m_instanceType = std::forward<InstanceTypeT>(value); }
103 template<
typename InstanceTypeT = Aws::String>
114 template<
typename OutpostArnT = Aws::String>
115 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet =
true; m_outpostArn = std::forward<OutpostArnT>(value); }
116 template<
typename OutpostArnT = Aws::String>
126 template<
typename PlatformT = Aws::String>
127 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet =
true; m_platform = std::forward<PlatformT>(value); }
128 template<
typename PlatformT = Aws::String>
138 template<
typename ProductCodesT = Aws::Vector<ProductCode>>
139 void SetProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet =
true; m_productCodes = std::forward<ProductCodesT>(value); }
140 template<
typename ProductCodesT = Aws::Vector<ProductCode>>
142 template<
typename ProductCodesT = ProductCode>
143 Ec2Instance&
AddProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet =
true; m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
return *
this; }
152 template<
typename Ec2NetworkInterfaceU
idsT = Aws::Vector<Aws::String>>
153 void SetEc2NetworkInterfaceUids(Ec2NetworkInterfaceUidsT&& value) { m_ec2NetworkInterfaceUidsHasBeenSet =
true; m_ec2NetworkInterfaceUids = std::forward<Ec2NetworkInterfaceUidsT>(value); }
154 template<
typename Ec2NetworkInterfaceU
idsT = Aws::Vector<Aws::String>>
156 template<
typename Ec2NetworkInterfaceU
idsT = Aws::String>
157 Ec2Instance&
AddEc2NetworkInterfaceUids(Ec2NetworkInterfaceUidsT&& value) { m_ec2NetworkInterfaceUidsHasBeenSet =
true; m_ec2NetworkInterfaceUids.emplace_back(std::forward<Ec2NetworkInterfaceUidsT>(value));
return *
this; }
162 bool m_availabilityZoneHasBeenSet =
false;
165 bool m_imageDescriptionHasBeenSet =
false;
168 bool m_instanceStateHasBeenSet =
false;
171 bool m_iamInstanceProfileHasBeenSet =
false;
174 bool m_instanceTypeHasBeenSet =
false;
177 bool m_outpostArnHasBeenSet =
false;
180 bool m_platformHasBeenSet =
false;
183 bool m_productCodesHasBeenSet =
false;
186 bool m_ec2NetworkInterfaceUidsHasBeenSet =
false;
const Aws::String & GetPlatform() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API Ec2Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIamInstanceProfile(IamInstanceProfileT &&value)
bool OutpostArnHasBeenSet() const
bool InstanceTypeHasBeenSet() const
const Aws::Vector< ProductCode > & GetProductCodes() const
bool ProductCodesHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
Ec2Instance & WithAvailabilityZone(AvailabilityZoneT &&value)
Ec2Instance & WithEc2NetworkInterfaceUids(Ec2NetworkInterfaceUidsT &&value)
const IamInstanceProfile & GetIamInstanceProfile() const
void SetProductCodes(ProductCodesT &&value)
bool Ec2NetworkInterfaceUidsHasBeenSet() const
const Aws::String & GetInstanceType() const
Ec2Instance & AddProductCodes(ProductCodesT &&value)
AWS_GUARDDUTY_API Ec2Instance()=default
Ec2Instance & WithInstanceType(InstanceTypeT &&value)
const Aws::String & GetInstanceState() const
bool PlatformHasBeenSet() const
void SetEc2NetworkInterfaceUids(Ec2NetworkInterfaceUidsT &&value)
void SetPlatform(PlatformT &&value)
bool IamInstanceProfileHasBeenSet() const
const Aws::Vector< Aws::String > & GetEc2NetworkInterfaceUids() const
Ec2Instance & WithOutpostArn(OutpostArnT &&value)
AWS_GUARDDUTY_API Ec2Instance(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAvailabilityZone() const
Ec2Instance & WithImageDescription(ImageDescriptionT &&value)
const Aws::String & GetImageDescription() const
Ec2Instance & WithIamInstanceProfile(IamInstanceProfileT &&value)
void SetImageDescription(ImageDescriptionT &&value)
void SetInstanceType(InstanceTypeT &&value)
Ec2Instance & WithPlatform(PlatformT &&value)
bool ImageDescriptionHasBeenSet() const
Ec2Instance & WithProductCodes(ProductCodesT &&value)
Ec2Instance & AddEc2NetworkInterfaceUids(Ec2NetworkInterfaceUidsT &&value)
void SetInstanceState(InstanceStateT &&value)
const Aws::String & GetOutpostArn() const
bool InstanceStateHasBeenSet() const
void SetOutpostArn(OutpostArnT &&value)
Ec2Instance & WithInstanceState(InstanceStateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue