7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
45 template<
typename AllocationIdT = Aws::String>
46 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet =
true; m_allocationId = std::forward<AllocationIdT>(value); }
47 template<
typename AllocationIdT = Aws::String>
59 template<
typename InstanceIdT = Aws::String>
60 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
61 template<
typename InstanceIdT = Aws::String>
71 template<
typename PublicIpT = Aws::String>
72 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet =
true; m_publicIp = std::forward<PublicIpT>(value); }
73 template<
typename PublicIpT = Aws::String>
86 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
98 template<
typename NetworkInterfaceIdT = Aws::String>
99 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet =
true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
100 template<
typename NetworkInterfaceIdT = Aws::String>
112 template<
typename PrivateIpAddressT = Aws::String>
113 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet =
true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
114 template<
typename PrivateIpAddressT = Aws::String>
125 inline void SetAllowReassociation(
bool value) { m_allowReassociationHasBeenSet =
true; m_allowReassociation = value; }
131 bool m_allocationIdHasBeenSet =
false;
134 bool m_instanceIdHasBeenSet =
false;
137 bool m_publicIpHasBeenSet =
false;
139 bool m_dryRun{
false};
140 bool m_dryRunHasBeenSet =
false;
143 bool m_networkInterfaceIdHasBeenSet =
false;
146 bool m_privateIpAddressHasBeenSet =
false;
148 bool m_allowReassociation{
false};
149 bool m_allowReassociationHasBeenSet =
false;
bool GetAllowReassociation() const
void SetAllowReassociation(bool value)
AssociateAddressRequest & WithAllowReassociation(bool value)
bool DryRunHasBeenSet() const
void SetPublicIp(PublicIpT &&value)
const Aws::String & GetPublicIp() const
AWS_EC2_API AssociateAddressRequest()=default
bool NetworkInterfaceIdHasBeenSet() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssociateAddressRequest & WithPrivateIpAddress(PrivateIpAddressT &&value)
const Aws::String & GetPrivateIpAddress() const
void SetAllocationId(AllocationIdT &&value)
void SetInstanceId(InstanceIdT &&value)
AssociateAddressRequest & WithPublicIp(PublicIpT &&value)
virtual const char * GetServiceRequestName() const override
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
bool AllowReassociationHasBeenSet() const
const Aws::String & GetInstanceId() const
AssociateAddressRequest & WithInstanceId(InstanceIdT &&value)
bool AllocationIdHasBeenSet() const
AssociateAddressRequest & WithAllocationId(AllocationIdT &&value)
AssociateAddressRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
const Aws::String & GetAllocationId() const
bool PrivateIpAddressHasBeenSet() const
void SetDryRun(bool value)
void SetPrivateIpAddress(PrivateIpAddressT &&value)
AssociateAddressRequest & WithDryRun(bool value)
const Aws::String & GetNetworkInterfaceId() const
bool PublicIpHasBeenSet() const
bool InstanceIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String