7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
41 template <
typename AllocationIdT = Aws::String>
43 m_allocationIdHasBeenSet =
true;
44 m_allocationId = std::forward<AllocationIdT>(value);
46 template <
typename AllocationIdT = Aws::String>
61 template <
typename InstanceIdT = Aws::String>
63 m_instanceIdHasBeenSet =
true;
64 m_instanceId = std::forward<InstanceIdT>(value);
66 template <
typename InstanceIdT = Aws::String>
79 template <
typename PublicIpT = Aws::String>
81 m_publicIpHasBeenSet =
true;
82 m_publicIp = std::forward<PublicIpT>(value);
84 template <
typename PublicIpT = Aws::String>
101 m_dryRunHasBeenSet =
true;
118 template <
typename NetworkInterfaceIdT = Aws::String>
120 m_networkInterfaceIdHasBeenSet =
true;
121 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
123 template <
typename NetworkInterfaceIdT = Aws::String>
138 template <
typename PrivateIpAddressT = Aws::String>
140 m_privateIpAddressHasBeenSet =
true;
141 m_privateIpAddress = std::forward<PrivateIpAddressT>(value);
143 template <
typename PrivateIpAddressT = Aws::String>
158 m_allowReassociationHasBeenSet =
true;
159 m_allowReassociation = value;
173 bool m_dryRun{
false};
179 bool m_allowReassociation{
false};
180 bool m_allocationIdHasBeenSet =
false;
181 bool m_instanceIdHasBeenSet =
false;
182 bool m_publicIpHasBeenSet =
false;
183 bool m_dryRunHasBeenSet =
false;
184 bool m_networkInterfaceIdHasBeenSet =
false;
185 bool m_privateIpAddressHasBeenSet =
false;
186 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