AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteIpamPoolRequest.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 DeleteIpamPoolRequest() = 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 "DeleteIpamPool"; }
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
42 inline bool GetDryRun() const { return m_dryRun; }
43 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
44 inline void SetDryRun(bool value) {
45 m_dryRunHasBeenSet = true;
46 m_dryRun = value;
47 }
48 inline DeleteIpamPoolRequest& WithDryRun(bool value) {
49 SetDryRun(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
59 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
60 template <typename IpamPoolIdT = Aws::String>
61 void SetIpamPoolId(IpamPoolIdT&& value) {
62 m_ipamPoolIdHasBeenSet = true;
63 m_ipamPoolId = std::forward<IpamPoolIdT>(value);
64 }
65 template <typename IpamPoolIdT = Aws::String>
66 DeleteIpamPoolRequest& WithIpamPoolId(IpamPoolIdT&& value) {
67 SetIpamPoolId(std::forward<IpamPoolIdT>(value));
68 return *this;
69 }
71
73
80 inline bool GetCascade() const { return m_cascade; }
81 inline bool CascadeHasBeenSet() const { return m_cascadeHasBeenSet; }
82 inline void SetCascade(bool value) {
83 m_cascadeHasBeenSet = true;
84 m_cascade = value;
85 }
86 inline DeleteIpamPoolRequest& WithCascade(bool value) {
87 SetCascade(value);
88 return *this;
89 }
91 private:
92 bool m_dryRun{false};
93
94 Aws::String m_ipamPoolId;
95
96 bool m_cascade{false};
97 bool m_dryRunHasBeenSet = false;
98 bool m_ipamPoolIdHasBeenSet = false;
99 bool m_cascadeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
DeleteIpamPoolRequest & WithIpamPoolId(IpamPoolIdT &&value)
DeleteIpamPoolRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API DeleteIpamPoolRequest()=default
DeleteIpamPoolRequest & WithCascade(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String