AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateAddressRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EC2_API AssociateAddressRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AssociateAddress"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
44 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
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>
48 AssociateAddressRequest& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
50
52
57 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
58 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
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>
62 AssociateAddressRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
70 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
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>
74 AssociateAddressRequest& WithPublicIp(PublicIpT&& value) { SetPublicIp(std::forward<PublicIpT>(value)); return *this;}
76
78
84 inline bool GetDryRun() const { return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
87 inline AssociateAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
89
91
96 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
97 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
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>
101 AssociateAddressRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
103
105
110 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
111 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
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>
115 AssociateAddressRequest& WithPrivateIpAddress(PrivateIpAddressT&& value) { SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value)); return *this;}
117
119
123 inline bool GetAllowReassociation() const { return m_allowReassociation; }
124 inline bool AllowReassociationHasBeenSet() const { return m_allowReassociationHasBeenSet; }
125 inline void SetAllowReassociation(bool value) { m_allowReassociationHasBeenSet = true; m_allowReassociation = value; }
126 inline AssociateAddressRequest& WithAllowReassociation(bool value) { SetAllowReassociation(value); return *this;}
128 private:
129
130 Aws::String m_allocationId;
131 bool m_allocationIdHasBeenSet = false;
132
133 Aws::String m_instanceId;
134 bool m_instanceIdHasBeenSet = false;
135
136 Aws::String m_publicIp;
137 bool m_publicIpHasBeenSet = false;
138
139 bool m_dryRun{false};
140 bool m_dryRunHasBeenSet = false;
141
142 Aws::String m_networkInterfaceId;
143 bool m_networkInterfaceIdHasBeenSet = false;
144
145 Aws::String m_privateIpAddress;
146 bool m_privateIpAddressHasBeenSet = false;
147
148 bool m_allowReassociation{false};
149 bool m_allowReassociationHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace EC2
154} // namespace Aws
AssociateAddressRequest & WithAllowReassociation(bool value)
AWS_EC2_API AssociateAddressRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssociateAddressRequest & WithPrivateIpAddress(PrivateIpAddressT &&value)
AssociateAddressRequest & WithPublicIp(PublicIpT &&value)
virtual const char * GetServiceRequestName() const override
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AssociateAddressRequest & WithInstanceId(InstanceIdT &&value)
AssociateAddressRequest & WithAllocationId(AllocationIdT &&value)
AssociateAddressRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
void SetPrivateIpAddress(PrivateIpAddressT &&value)
AssociateAddressRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String