AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyIpamPoolRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/RequestIpamResourceTag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API ModifyIpamPoolRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyIpamPool"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const { return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline ModifyIpamPoolRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
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) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::forward<IpamPoolIdT>(value); }
62 template<typename IpamPoolIdT = Aws::String>
63 ModifyIpamPoolRequest& WithIpamPoolId(IpamPoolIdT&& value) { SetIpamPoolId(std::forward<IpamPoolIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 ModifyIpamPoolRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
91 inline bool GetAutoImport() const { return m_autoImport; }
92 inline bool AutoImportHasBeenSet() const { return m_autoImportHasBeenSet; }
93 inline void SetAutoImport(bool value) { m_autoImportHasBeenSet = true; m_autoImport = value; }
94 inline ModifyIpamPoolRequest& WithAutoImport(bool value) { SetAutoImport(value); return *this;}
96
98
104 inline int GetAllocationMinNetmaskLength() const { return m_allocationMinNetmaskLength; }
105 inline bool AllocationMinNetmaskLengthHasBeenSet() const { return m_allocationMinNetmaskLengthHasBeenSet; }
106 inline void SetAllocationMinNetmaskLength(int value) { m_allocationMinNetmaskLengthHasBeenSet = true; m_allocationMinNetmaskLength = value; }
109
111
117 inline int GetAllocationMaxNetmaskLength() const { return m_allocationMaxNetmaskLength; }
118 inline bool AllocationMaxNetmaskLengthHasBeenSet() const { return m_allocationMaxNetmaskLengthHasBeenSet; }
119 inline void SetAllocationMaxNetmaskLength(int value) { m_allocationMaxNetmaskLengthHasBeenSet = true; m_allocationMaxNetmaskLength = value; }
122
124
129 inline int GetAllocationDefaultNetmaskLength() const { return m_allocationDefaultNetmaskLength; }
130 inline bool AllocationDefaultNetmaskLengthHasBeenSet() const { return m_allocationDefaultNetmaskLengthHasBeenSet; }
131 inline void SetAllocationDefaultNetmaskLength(int value) { m_allocationDefaultNetmaskLengthHasBeenSet = true; m_allocationDefaultNetmaskLength = value; }
134
136
139 inline bool GetClearAllocationDefaultNetmaskLength() const { return m_clearAllocationDefaultNetmaskLength; }
140 inline bool ClearAllocationDefaultNetmaskLengthHasBeenSet() const { return m_clearAllocationDefaultNetmaskLengthHasBeenSet; }
141 inline void SetClearAllocationDefaultNetmaskLength(bool value) { m_clearAllocationDefaultNetmaskLengthHasBeenSet = true; m_clearAllocationDefaultNetmaskLength = value; }
144
146
152 inline const Aws::Vector<RequestIpamResourceTag>& GetAddAllocationResourceTags() const { return m_addAllocationResourceTags; }
153 inline bool AddAllocationResourceTagsHasBeenSet() const { return m_addAllocationResourceTagsHasBeenSet; }
154 template<typename AddAllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
155 void SetAddAllocationResourceTags(AddAllocationResourceTagsT&& value) { m_addAllocationResourceTagsHasBeenSet = true; m_addAllocationResourceTags = std::forward<AddAllocationResourceTagsT>(value); }
156 template<typename AddAllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
157 ModifyIpamPoolRequest& WithAddAllocationResourceTags(AddAllocationResourceTagsT&& value) { SetAddAllocationResourceTags(std::forward<AddAllocationResourceTagsT>(value)); return *this;}
158 template<typename AddAllocationResourceTagsT = RequestIpamResourceTag>
159 ModifyIpamPoolRequest& AddAddAllocationResourceTags(AddAllocationResourceTagsT&& value) { m_addAllocationResourceTagsHasBeenSet = true; m_addAllocationResourceTags.emplace_back(std::forward<AddAllocationResourceTagsT>(value)); return *this; }
161
163
166 inline const Aws::Vector<RequestIpamResourceTag>& GetRemoveAllocationResourceTags() const { return m_removeAllocationResourceTags; }
167 inline bool RemoveAllocationResourceTagsHasBeenSet() const { return m_removeAllocationResourceTagsHasBeenSet; }
168 template<typename RemoveAllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
169 void SetRemoveAllocationResourceTags(RemoveAllocationResourceTagsT&& value) { m_removeAllocationResourceTagsHasBeenSet = true; m_removeAllocationResourceTags = std::forward<RemoveAllocationResourceTagsT>(value); }
170 template<typename RemoveAllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
171 ModifyIpamPoolRequest& WithRemoveAllocationResourceTags(RemoveAllocationResourceTagsT&& value) { SetRemoveAllocationResourceTags(std::forward<RemoveAllocationResourceTagsT>(value)); return *this;}
172 template<typename RemoveAllocationResourceTagsT = RequestIpamResourceTag>
173 ModifyIpamPoolRequest& AddRemoveAllocationResourceTags(RemoveAllocationResourceTagsT&& value) { m_removeAllocationResourceTagsHasBeenSet = true; m_removeAllocationResourceTags.emplace_back(std::forward<RemoveAllocationResourceTagsT>(value)); return *this; }
175 private:
176
177 bool m_dryRun{false};
178 bool m_dryRunHasBeenSet = false;
179
180 Aws::String m_ipamPoolId;
181 bool m_ipamPoolIdHasBeenSet = false;
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
186 bool m_autoImport{false};
187 bool m_autoImportHasBeenSet = false;
188
189 int m_allocationMinNetmaskLength{0};
190 bool m_allocationMinNetmaskLengthHasBeenSet = false;
191
192 int m_allocationMaxNetmaskLength{0};
193 bool m_allocationMaxNetmaskLengthHasBeenSet = false;
194
195 int m_allocationDefaultNetmaskLength{0};
196 bool m_allocationDefaultNetmaskLengthHasBeenSet = false;
197
198 bool m_clearAllocationDefaultNetmaskLength{false};
199 bool m_clearAllocationDefaultNetmaskLengthHasBeenSet = false;
200
201 Aws::Vector<RequestIpamResourceTag> m_addAllocationResourceTags;
202 bool m_addAllocationResourceTagsHasBeenSet = false;
203
204 Aws::Vector<RequestIpamResourceTag> m_removeAllocationResourceTags;
205 bool m_removeAllocationResourceTagsHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace EC2
210} // namespace Aws
ModifyIpamPoolRequest & AddAddAllocationResourceTags(AddAllocationResourceTagsT &&value)
void SetAddAllocationResourceTags(AddAllocationResourceTagsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyIpamPoolRequest & WithAllocationMinNetmaskLength(int value)
const Aws::Vector< RequestIpamResourceTag > & GetAddAllocationResourceTags() const
virtual const char * GetServiceRequestName() const override
ModifyIpamPoolRequest & WithClearAllocationDefaultNetmaskLength(bool value)
ModifyIpamPoolRequest & WithIpamPoolId(IpamPoolIdT &&value)
AWS_EC2_API ModifyIpamPoolRequest()=default
ModifyIpamPoolRequest & WithRemoveAllocationResourceTags(RemoveAllocationResourceTagsT &&value)
const Aws::Vector< RequestIpamResourceTag > & GetRemoveAllocationResourceTags() const
ModifyIpamPoolRequest & WithDescription(DescriptionT &&value)
ModifyIpamPoolRequest & WithAutoImport(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyIpamPoolRequest & WithAddAllocationResourceTags(AddAllocationResourceTagsT &&value)
void SetRemoveAllocationResourceTags(RemoveAllocationResourceTagsT &&value)
ModifyIpamPoolRequest & WithAllocationMaxNetmaskLength(int value)
ModifyIpamPoolRequest & AddRemoveAllocationResourceTags(RemoveAllocationResourceTagsT &&value)
ModifyIpamPoolRequest & WithAllocationDefaultNetmaskLength(int value)
ModifyIpamPoolRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector