AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
46 inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
47 inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
48 inline AssociateAddressRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
49 inline AssociateAddressRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
50 inline AssociateAddressRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
52
54
59 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
60 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
61 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
62 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
63 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
64 inline AssociateAddressRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
65 inline AssociateAddressRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
66 inline AssociateAddressRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
68
70
73 inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
74 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
75 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
76 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
77 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
78 inline AssociateAddressRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
79 inline AssociateAddressRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
80 inline AssociateAddressRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
82
84
90 inline bool GetDryRun() const{ return m_dryRun; }
91 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
92 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
93 inline AssociateAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
95
97
102 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
103 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
104 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
105 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
106 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
108 inline AssociateAddressRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
109 inline AssociateAddressRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
111
113
118 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
119 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
120 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
121 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
122 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
124 inline AssociateAddressRequest& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
125 inline AssociateAddressRequest& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
127
129
133 inline bool GetAllowReassociation() const{ return m_allowReassociation; }
134 inline bool AllowReassociationHasBeenSet() const { return m_allowReassociationHasBeenSet; }
135 inline void SetAllowReassociation(bool value) { m_allowReassociationHasBeenSet = true; m_allowReassociation = value; }
136 inline AssociateAddressRequest& WithAllowReassociation(bool value) { SetAllowReassociation(value); return *this;}
138 private:
139
140 Aws::String m_allocationId;
141 bool m_allocationIdHasBeenSet = false;
142
143 Aws::String m_instanceId;
144 bool m_instanceIdHasBeenSet = false;
145
146 Aws::String m_publicIp;
147 bool m_publicIpHasBeenSet = false;
148
149 bool m_dryRun;
150 bool m_dryRunHasBeenSet = false;
151
152 Aws::String m_networkInterfaceId;
153 bool m_networkInterfaceIdHasBeenSet = false;
154
155 Aws::String m_privateIpAddress;
156 bool m_privateIpAddressHasBeenSet = false;
157
158 bool m_allowReassociation;
159 bool m_allowReassociationHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
AssociateAddressRequest & WithPrivateIpAddress(const char *value)
AssociateAddressRequest & WithPrivateIpAddress(const Aws::String &value)
AssociateAddressRequest & WithAllowReassociation(bool value)
AssociateAddressRequest & WithAllocationId(Aws::String &&value)
AssociateAddressRequest & WithAllocationId(const Aws::String &value)
AssociateAddressRequest & WithPublicIp(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssociateAddressRequest & WithPublicIp(const Aws::String &value)
AssociateAddressRequest & WithNetworkInterfaceId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetNetworkInterfaceId(const Aws::String &value)
AssociateAddressRequest & WithInstanceId(const Aws::String &value)
AssociateAddressRequest & WithNetworkInterfaceId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetAllocationId(const Aws::String &value)
void SetPrivateIpAddress(const Aws::String &value)
AssociateAddressRequest & WithInstanceId(Aws::String &&value)
AssociateAddressRequest & WithInstanceId(const char *value)
AssociateAddressRequest & WithPrivateIpAddress(Aws::String &&value)
AssociateAddressRequest & WithAllocationId(const char *value)
AssociateAddressRequest & WithDryRun(bool value)
AssociateAddressRequest & WithNetworkInterfaceId(const char *value)
AssociateAddressRequest & WithPublicIp(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String