AWS SDK for C++  1.8.23
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
ReleaseAddressRequest & WithNetworkBorderGroup(const char *value)
ReleaseAddressRequest & WithAllocationId(Aws::String &&value)
const Aws::String & GetAllocationId() const
void SetPublicIp(const Aws::String &value)
ReleaseAddressRequest & WithPublicIp(const char *value)
ReleaseAddressRequest & WithDryRun(bool value)
ReleaseAddressRequest & WithNetworkBorderGroup(const Aws::String &value)
ReleaseAddressRequest & WithAllocationId(const char *value)
void SetNetworkBorderGroup(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetNetworkBorderGroup(const Aws::String &value)
void SetAllocationId(const Aws::String &value)
const Aws::String & GetNetworkBorderGroup() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ReleaseAddressRequest & WithPublicIp(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ReleaseAddressRequest & WithPublicIp(const Aws::String &value)
ReleaseAddressRequest & WithNetworkBorderGroup(Aws::String &&value)
ReleaseAddressRequest & WithAllocationId(const Aws::String &value)