AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReleaseAddressRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API ReleaseAddressRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ReleaseAddress"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
40 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
41 template <typename AllocationIdT = Aws::String>
42 void SetAllocationId(AllocationIdT&& value) {
43 m_allocationIdHasBeenSet = true;
44 m_allocationId = std::forward<AllocationIdT>(value);
45 }
46 template <typename AllocationIdT = Aws::String>
47 ReleaseAddressRequest& WithAllocationId(AllocationIdT&& value) {
48 SetAllocationId(std::forward<AllocationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
58 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
59 template <typename PublicIpT = Aws::String>
60 void SetPublicIp(PublicIpT&& value) {
61 m_publicIpHasBeenSet = true;
62 m_publicIp = std::forward<PublicIpT>(value);
63 }
64 template <typename PublicIpT = Aws::String>
65 ReleaseAddressRequest& WithPublicIp(PublicIpT&& value) {
66 SetPublicIp(std::forward<PublicIpT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
79 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
80 template <typename NetworkBorderGroupT = Aws::String>
81 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) {
82 m_networkBorderGroupHasBeenSet = true;
83 m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value);
84 }
85 template <typename NetworkBorderGroupT = Aws::String>
86 ReleaseAddressRequest& WithNetworkBorderGroup(NetworkBorderGroupT&& value) {
87 SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value));
88 return *this;
89 }
91
93
99 inline bool GetDryRun() const { return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) {
102 m_dryRunHasBeenSet = true;
103 m_dryRun = value;
104 }
105 inline ReleaseAddressRequest& WithDryRun(bool value) {
106 SetDryRun(value);
107 return *this;
108 }
110 private:
111 Aws::String m_allocationId;
112
113 Aws::String m_publicIp;
114
115 Aws::String m_networkBorderGroup;
116
117 bool m_dryRun{false};
118 bool m_allocationIdHasBeenSet = false;
119 bool m_publicIpHasBeenSet = false;
120 bool m_networkBorderGroupHasBeenSet = false;
121 bool m_dryRunHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
const Aws::String & GetAllocationId() const
ReleaseAddressRequest & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
ReleaseAddressRequest & WithPublicIp(PublicIpT &&value)
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
const Aws::String & GetNetworkBorderGroup() const
void SetAllocationId(AllocationIdT &&value)
AWS_EC2_API ReleaseAddressRequest()=default
virtual const char * GetServiceRequestName() const override
ReleaseAddressRequest & WithAllocationId(AllocationIdT &&value)
ReleaseAddressRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String