AWS SDK for C++  1.9.71
AWS SDK for C++
ReleaseAddressRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace 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 "ReleaseAddress"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
43 
47  inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
48 
52  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
53 
57  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
58 
62  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
63 
67  inline ReleaseAddressRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
68 
72  inline ReleaseAddressRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
73 
77  inline ReleaseAddressRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
78 
79 
83  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
84 
88  inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
89 
93  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
94 
98  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
99 
103  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
104 
108  inline ReleaseAddressRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
109 
113  inline ReleaseAddressRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
114 
118  inline ReleaseAddressRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
119 
120 
133  inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; }
134 
147  inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
148 
161  inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; }
162 
175  inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); }
176 
189  inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); }
190 
203  inline ReleaseAddressRequest& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;}
204 
217  inline ReleaseAddressRequest& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;}
218 
231  inline ReleaseAddressRequest& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;}
232 
233 
240  inline bool GetDryRun() const{ return m_dryRun; }
241 
248  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
249 
256  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
257 
264  inline ReleaseAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
265 
266  private:
267 
268  Aws::String m_allocationId;
269  bool m_allocationIdHasBeenSet;
270 
271  Aws::String m_publicIp;
272  bool m_publicIpHasBeenSet;
273 
274  Aws::String m_networkBorderGroup;
275  bool m_networkBorderGroupHasBeenSet;
276 
277  bool m_dryRun;
278  bool m_dryRunHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace EC2
283 } // namespace Aws
Aws::EC2::Model::ReleaseAddressRequest::SetNetworkBorderGroup
void SetNetworkBorderGroup(const char *value)
Definition: ReleaseAddressRequest.h:189
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ReleaseAddressRequest::SetPublicIp
void SetPublicIp(const Aws::String &value)
Definition: ReleaseAddressRequest.h:93
Aws::EC2::Model::ReleaseAddressRequest::WithPublicIp
ReleaseAddressRequest & WithPublicIp(const Aws::String &value)
Definition: ReleaseAddressRequest.h:108
Aws::EC2::Model::ReleaseAddressRequest::WithAllocationId
ReleaseAddressRequest & WithAllocationId(Aws::String &&value)
Definition: ReleaseAddressRequest.h:72
Aws::EC2::Model::ReleaseAddressRequest::NetworkBorderGroupHasBeenSet
bool NetworkBorderGroupHasBeenSet() const
Definition: ReleaseAddressRequest.h:147
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReleaseAddressRequest::SetDryRun
void SetDryRun(bool value)
Definition: ReleaseAddressRequest.h:256
Aws::EC2::Model::ReleaseAddressRequest::GetAllocationId
const Aws::String & GetAllocationId() const
Definition: ReleaseAddressRequest.h:42
Aws::EC2::Model::ReleaseAddressRequest::GetNetworkBorderGroup
const Aws::String & GetNetworkBorderGroup() const
Definition: ReleaseAddressRequest.h:133
Aws::EC2::Model::ReleaseAddressRequest::WithPublicIp
ReleaseAddressRequest & WithPublicIp(const char *value)
Definition: ReleaseAddressRequest.h:118
Aws::EC2::Model::ReleaseAddressRequest::SetAllocationId
void SetAllocationId(const Aws::String &value)
Definition: ReleaseAddressRequest.h:52
Aws::EC2::Model::ReleaseAddressRequest::SetPublicIp
void SetPublicIp(const char *value)
Definition: ReleaseAddressRequest.h:103
Aws::EC2::Model::ReleaseAddressRequest::WithAllocationId
ReleaseAddressRequest & WithAllocationId(const char *value)
Definition: ReleaseAddressRequest.h:77
Aws::EC2::Model::ReleaseAddressRequest::GetDryRun
bool GetDryRun() const
Definition: ReleaseAddressRequest.h:240
Aws::EC2::Model::ReleaseAddressRequest::GetPublicIp
const Aws::String & GetPublicIp() const
Definition: ReleaseAddressRequest.h:83
EC2Request.h
Aws::EC2::Model::ReleaseAddressRequest::PublicIpHasBeenSet
bool PublicIpHasBeenSet() const
Definition: ReleaseAddressRequest.h:88
AWSString.h
Aws::EC2::Model::ReleaseAddressRequest::WithAllocationId
ReleaseAddressRequest & WithAllocationId(const Aws::String &value)
Definition: ReleaseAddressRequest.h:67
Aws::EC2::Model::ReleaseAddressRequest::WithNetworkBorderGroup
ReleaseAddressRequest & WithNetworkBorderGroup(const Aws::String &value)
Definition: ReleaseAddressRequest.h:203
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ReleaseAddressRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ReleaseAddressRequest.h:248
Aws::EC2::Model::ReleaseAddressRequest::ReleaseAddressRequest
ReleaseAddressRequest()
Aws::EC2::Model::ReleaseAddressRequest
Definition: ReleaseAddressRequest.h:22
Aws::EC2::Model::ReleaseAddressRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ReleaseAddressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ReleaseAddressRequest.h:30
Aws::EC2::Model::ReleaseAddressRequest::SetNetworkBorderGroup
void SetNetworkBorderGroup(const Aws::String &value)
Definition: ReleaseAddressRequest.h:161
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ReleaseAddressRequest::WithNetworkBorderGroup
ReleaseAddressRequest & WithNetworkBorderGroup(Aws::String &&value)
Definition: ReleaseAddressRequest.h:217
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ReleaseAddressRequest::SetPublicIp
void SetPublicIp(Aws::String &&value)
Definition: ReleaseAddressRequest.h:98
Aws::EC2::Model::ReleaseAddressRequest::SerializePayload
Aws::String SerializePayload() const override
EC2_EXPORTS.h
Aws::EC2::Model::ReleaseAddressRequest::AllocationIdHasBeenSet
bool AllocationIdHasBeenSet() const
Definition: ReleaseAddressRequest.h:47
Aws::EC2::Model::ReleaseAddressRequest::WithPublicIp
ReleaseAddressRequest & WithPublicIp(Aws::String &&value)
Definition: ReleaseAddressRequest.h:113
Aws::EC2::Model::ReleaseAddressRequest::SetAllocationId
void SetAllocationId(Aws::String &&value)
Definition: ReleaseAddressRequest.h:57
Aws::EC2::Model::ReleaseAddressRequest::SetNetworkBorderGroup
void SetNetworkBorderGroup(Aws::String &&value)
Definition: ReleaseAddressRequest.h:175
Aws::EC2::Model::ReleaseAddressRequest::WithDryRun
ReleaseAddressRequest & WithDryRun(bool value)
Definition: ReleaseAddressRequest.h:264
Aws::EC2::Model::ReleaseAddressRequest::WithNetworkBorderGroup
ReleaseAddressRequest & WithNetworkBorderGroup(const char *value)
Definition: ReleaseAddressRequest.h:231
Aws::EC2::Model::ReleaseAddressRequest::SetAllocationId
void SetAllocationId(const char *value)
Definition: ReleaseAddressRequest.h:62