7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/InstanceStatus.h>
10#include <aws/elasticmapreduce/model/MarketType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticmapreduce/model/EbsVolume.h>
51 template<
typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
53 template<
typename IdT = Aws::String>
63 template<
typename Ec2InstanceIdT = Aws::String>
64 void SetEc2InstanceId(Ec2InstanceIdT&& value) { m_ec2InstanceIdHasBeenSet =
true; m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value); }
65 template<
typename Ec2InstanceIdT = Aws::String>
75 template<
typename PublicDnsNameT = Aws::String>
76 void SetPublicDnsName(PublicDnsNameT&& value) { m_publicDnsNameHasBeenSet =
true; m_publicDnsName = std::forward<PublicDnsNameT>(value); }
77 template<
typename PublicDnsNameT = Aws::String>
87 template<
typename PublicIpAddressT = Aws::String>
88 void SetPublicIpAddress(PublicIpAddressT&& value) { m_publicIpAddressHasBeenSet =
true; m_publicIpAddress = std::forward<PublicIpAddressT>(value); }
89 template<
typename PublicIpAddressT = Aws::String>
99 template<
typename PrivateDnsNameT = Aws::String>
100 void SetPrivateDnsName(PrivateDnsNameT&& value) { m_privateDnsNameHasBeenSet =
true; m_privateDnsName = std::forward<PrivateDnsNameT>(value); }
101 template<
typename PrivateDnsNameT = Aws::String>
111 template<
typename PrivateIpAddressT = Aws::String>
112 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet =
true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
113 template<
typename PrivateIpAddressT = Aws::String>
123 template<
typename StatusT = InstanceStatus>
124 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
125 template<
typename StatusT = InstanceStatus>
135 template<
typename InstanceGroupIdT = Aws::String>
136 void SetInstanceGroupId(InstanceGroupIdT&& value) { m_instanceGroupIdHasBeenSet =
true; m_instanceGroupId = std::forward<InstanceGroupIdT>(value); }
137 template<
typename InstanceGroupIdT = Aws::String>
148 template<
typename InstanceFleetIdT = Aws::String>
149 void SetInstanceFleetId(InstanceFleetIdT&& value) { m_instanceFleetIdHasBeenSet =
true; m_instanceFleetId = std::forward<InstanceFleetIdT>(value); }
150 template<
typename InstanceFleetIdT = Aws::String>
171 template<
typename InstanceTypeT = Aws::String>
172 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet =
true; m_instanceType = std::forward<InstanceTypeT>(value); }
173 template<
typename InstanceTypeT = Aws::String>
183 template<
typename EbsVolumesT = Aws::Vector<EbsVolume>>
184 void SetEbsVolumes(EbsVolumesT&& value) { m_ebsVolumesHasBeenSet =
true; m_ebsVolumes = std::forward<EbsVolumesT>(value); }
185 template<
typename EbsVolumesT = Aws::Vector<EbsVolume>>
187 template<
typename EbsVolumesT = EbsVolume>
188 Instance&
AddEbsVolumes(EbsVolumesT&& value) { m_ebsVolumesHasBeenSet =
true; m_ebsVolumes.emplace_back(std::forward<EbsVolumesT>(value));
return *
this; }
193 bool m_idHasBeenSet =
false;
196 bool m_ec2InstanceIdHasBeenSet =
false;
199 bool m_publicDnsNameHasBeenSet =
false;
202 bool m_publicIpAddressHasBeenSet =
false;
205 bool m_privateDnsNameHasBeenSet =
false;
208 bool m_privateIpAddressHasBeenSet =
false;
211 bool m_statusHasBeenSet =
false;
214 bool m_instanceGroupIdHasBeenSet =
false;
217 bool m_instanceFleetIdHasBeenSet =
false;
220 bool m_marketHasBeenSet =
false;
223 bool m_instanceTypeHasBeenSet =
false;
226 bool m_ebsVolumesHasBeenSet =
false;
Instance & WithEc2InstanceId(Ec2InstanceIdT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EbsVolume > & GetEbsVolumes() const
const Aws::String & GetEc2InstanceId() const
Instance & WithMarket(MarketType value)
void SetPublicIpAddress(PublicIpAddressT &&value)
AWS_EMR_API Instance(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceFleetId() const
bool PrivateIpAddressHasBeenSet() const
Instance & WithPublicDnsName(PublicDnsNameT &&value)
void SetPrivateIpAddress(PrivateIpAddressT &&value)
const Aws::String & GetPrivateIpAddress() const
const Aws::String & GetId() const
void SetEbsVolumes(EbsVolumesT &&value)
void SetPrivateDnsName(PrivateDnsNameT &&value)
Instance & WithInstanceGroupId(InstanceGroupIdT &&value)
bool PublicIpAddressHasBeenSet() const
bool StatusHasBeenSet() const
AWS_EMR_API Instance()=default
void SetStatus(StatusT &&value)
Instance & WithId(IdT &&value)
const Aws::String & GetInstanceGroupId() const
void SetMarket(MarketType value)
const Aws::String & GetPublicDnsName() const
bool MarketHasBeenSet() const
Instance & WithPrivateIpAddress(PrivateIpAddressT &&value)
void SetPublicDnsName(PublicDnsNameT &&value)
Instance & WithInstanceFleetId(InstanceFleetIdT &&value)
void SetInstanceType(InstanceTypeT &&value)
Instance & AddEbsVolumes(EbsVolumesT &&value)
bool PrivateDnsNameHasBeenSet() const
const Aws::String & GetInstanceType() const
Instance & WithPrivateDnsName(PrivateDnsNameT &&value)
bool EbsVolumesHasBeenSet() const
bool InstanceTypeHasBeenSet() const
bool Ec2InstanceIdHasBeenSet() const
Instance & WithPublicIpAddress(PublicIpAddressT &&value)
void SetInstanceGroupId(InstanceGroupIdT &&value)
bool IdHasBeenSet() const
bool InstanceGroupIdHasBeenSet() const
bool InstanceFleetIdHasBeenSet() const
void SetInstanceFleetId(InstanceFleetIdT &&value)
MarketType GetMarket() const
void SetEc2InstanceId(Ec2InstanceIdT &&value)
const Aws::String & GetPrivateDnsName() const
bool PublicDnsNameHasBeenSet() const
Instance & WithStatus(StatusT &&value)
const Aws::String & GetPublicIpAddress() const
Instance & WithInstanceType(InstanceTypeT &&value)
const InstanceStatus & GetStatus() const
Instance & WithEbsVolumes(EbsVolumesT &&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