AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIpamPoolId(const Aws::String& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = value; }
61 inline void SetIpamPoolId(Aws::String&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::move(value); }
62 inline void SetIpamPoolId(const char* value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId.assign(value); }
63 inline ModifyIpamPoolRequest& WithIpamPoolId(const Aws::String& value) { SetIpamPoolId(value); return *this;}
64 inline ModifyIpamPoolRequest& WithIpamPoolId(Aws::String&& value) { SetIpamPoolId(std::move(value)); return *this;}
65 inline ModifyIpamPoolRequest& WithIpamPoolId(const char* value) { SetIpamPoolId(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline ModifyIpamPoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline ModifyIpamPoolRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline ModifyIpamPoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
95 inline bool GetAutoImport() const{ return m_autoImport; }
96 inline bool AutoImportHasBeenSet() const { return m_autoImportHasBeenSet; }
97 inline void SetAutoImport(bool value) { m_autoImportHasBeenSet = true; m_autoImport = value; }
98 inline ModifyIpamPoolRequest& WithAutoImport(bool value) { SetAutoImport(value); return *this;}
100
102
108 inline int GetAllocationMinNetmaskLength() const{ return m_allocationMinNetmaskLength; }
109 inline bool AllocationMinNetmaskLengthHasBeenSet() const { return m_allocationMinNetmaskLengthHasBeenSet; }
110 inline void SetAllocationMinNetmaskLength(int value) { m_allocationMinNetmaskLengthHasBeenSet = true; m_allocationMinNetmaskLength = value; }
113
115
121 inline int GetAllocationMaxNetmaskLength() const{ return m_allocationMaxNetmaskLength; }
122 inline bool AllocationMaxNetmaskLengthHasBeenSet() const { return m_allocationMaxNetmaskLengthHasBeenSet; }
123 inline void SetAllocationMaxNetmaskLength(int value) { m_allocationMaxNetmaskLengthHasBeenSet = true; m_allocationMaxNetmaskLength = value; }
126
128
133 inline int GetAllocationDefaultNetmaskLength() const{ return m_allocationDefaultNetmaskLength; }
134 inline bool AllocationDefaultNetmaskLengthHasBeenSet() const { return m_allocationDefaultNetmaskLengthHasBeenSet; }
135 inline void SetAllocationDefaultNetmaskLength(int value) { m_allocationDefaultNetmaskLengthHasBeenSet = true; m_allocationDefaultNetmaskLength = value; }
138
140
143 inline bool GetClearAllocationDefaultNetmaskLength() const{ return m_clearAllocationDefaultNetmaskLength; }
144 inline bool ClearAllocationDefaultNetmaskLengthHasBeenSet() const { return m_clearAllocationDefaultNetmaskLengthHasBeenSet; }
145 inline void SetClearAllocationDefaultNetmaskLength(bool value) { m_clearAllocationDefaultNetmaskLengthHasBeenSet = true; m_clearAllocationDefaultNetmaskLength = value; }
148
150
156 inline const Aws::Vector<RequestIpamResourceTag>& GetAddAllocationResourceTags() const{ return m_addAllocationResourceTags; }
157 inline bool AddAllocationResourceTagsHasBeenSet() const { return m_addAllocationResourceTagsHasBeenSet; }
158 inline void SetAddAllocationResourceTags(const Aws::Vector<RequestIpamResourceTag>& value) { m_addAllocationResourceTagsHasBeenSet = true; m_addAllocationResourceTags = value; }
159 inline void SetAddAllocationResourceTags(Aws::Vector<RequestIpamResourceTag>&& value) { m_addAllocationResourceTagsHasBeenSet = true; m_addAllocationResourceTags = std::move(value); }
162 inline ModifyIpamPoolRequest& AddAddAllocationResourceTags(const RequestIpamResourceTag& value) { m_addAllocationResourceTagsHasBeenSet = true; m_addAllocationResourceTags.push_back(value); return *this; }
163 inline ModifyIpamPoolRequest& AddAddAllocationResourceTags(RequestIpamResourceTag&& value) { m_addAllocationResourceTagsHasBeenSet = true; m_addAllocationResourceTags.push_back(std::move(value)); return *this; }
165
167
170 inline const Aws::Vector<RequestIpamResourceTag>& GetRemoveAllocationResourceTags() const{ return m_removeAllocationResourceTags; }
171 inline bool RemoveAllocationResourceTagsHasBeenSet() const { return m_removeAllocationResourceTagsHasBeenSet; }
172 inline void SetRemoveAllocationResourceTags(const Aws::Vector<RequestIpamResourceTag>& value) { m_removeAllocationResourceTagsHasBeenSet = true; m_removeAllocationResourceTags = value; }
173 inline void SetRemoveAllocationResourceTags(Aws::Vector<RequestIpamResourceTag>&& value) { m_removeAllocationResourceTagsHasBeenSet = true; m_removeAllocationResourceTags = std::move(value); }
176 inline ModifyIpamPoolRequest& AddRemoveAllocationResourceTags(const RequestIpamResourceTag& value) { m_removeAllocationResourceTagsHasBeenSet = true; m_removeAllocationResourceTags.push_back(value); return *this; }
177 inline ModifyIpamPoolRequest& AddRemoveAllocationResourceTags(RequestIpamResourceTag&& value) { m_removeAllocationResourceTagsHasBeenSet = true; m_removeAllocationResourceTags.push_back(std::move(value)); return *this; }
179 private:
180
181 bool m_dryRun;
182 bool m_dryRunHasBeenSet = false;
183
184 Aws::String m_ipamPoolId;
185 bool m_ipamPoolIdHasBeenSet = false;
186
187 Aws::String m_description;
188 bool m_descriptionHasBeenSet = false;
189
190 bool m_autoImport;
191 bool m_autoImportHasBeenSet = false;
192
193 int m_allocationMinNetmaskLength;
194 bool m_allocationMinNetmaskLengthHasBeenSet = false;
195
196 int m_allocationMaxNetmaskLength;
197 bool m_allocationMaxNetmaskLengthHasBeenSet = false;
198
199 int m_allocationDefaultNetmaskLength;
200 bool m_allocationDefaultNetmaskLengthHasBeenSet = false;
201
202 bool m_clearAllocationDefaultNetmaskLength;
203 bool m_clearAllocationDefaultNetmaskLengthHasBeenSet = false;
204
205 Aws::Vector<RequestIpamResourceTag> m_addAllocationResourceTags;
206 bool m_addAllocationResourceTagsHasBeenSet = false;
207
208 Aws::Vector<RequestIpamResourceTag> m_removeAllocationResourceTags;
209 bool m_removeAllocationResourceTagsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace EC2
214} // namespace Aws
ModifyIpamPoolRequest & WithDescription(Aws::String &&value)
ModifyIpamPoolRequest & WithDescription(const Aws::String &value)
ModifyIpamPoolRequest & WithAddAllocationResourceTags(Aws::Vector< RequestIpamResourceTag > &&value)
ModifyIpamPoolRequest & AddRemoveAllocationResourceTags(RequestIpamResourceTag &&value)
ModifyIpamPoolRequest & WithIpamPoolId(const Aws::String &value)
void SetDescription(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetRemoveAllocationResourceTags(const Aws::Vector< RequestIpamResourceTag > &value)
ModifyIpamPoolRequest & WithAllocationMinNetmaskLength(int value)
ModifyIpamPoolRequest & AddRemoveAllocationResourceTags(const RequestIpamResourceTag &value)
ModifyIpamPoolRequest & WithIpamPoolId(const char *value)
ModifyIpamPoolRequest & WithRemoveAllocationResourceTags(Aws::Vector< RequestIpamResourceTag > &&value)
void SetAddAllocationResourceTags(const Aws::Vector< RequestIpamResourceTag > &value)
ModifyIpamPoolRequest & AddAddAllocationResourceTags(const RequestIpamResourceTag &value)
const Aws::Vector< RequestIpamResourceTag > & GetAddAllocationResourceTags() const
virtual const char * GetServiceRequestName() const override
ModifyIpamPoolRequest & AddAddAllocationResourceTags(RequestIpamResourceTag &&value)
ModifyIpamPoolRequest & WithClearAllocationDefaultNetmaskLength(bool value)
ModifyIpamPoolRequest & WithRemoveAllocationResourceTags(const Aws::Vector< RequestIpamResourceTag > &value)
void SetAddAllocationResourceTags(Aws::Vector< RequestIpamResourceTag > &&value)
ModifyIpamPoolRequest & WithDescription(const char *value)
void SetIpamPoolId(const Aws::String &value)
const Aws::Vector< RequestIpamResourceTag > & GetRemoveAllocationResourceTags() const
ModifyIpamPoolRequest & WithAutoImport(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyIpamPoolRequest & WithAddAllocationResourceTags(const Aws::Vector< RequestIpamResourceTag > &value)
ModifyIpamPoolRequest & WithAllocationMaxNetmaskLength(int value)
ModifyIpamPoolRequest & WithIpamPoolId(Aws::String &&value)
ModifyIpamPoolRequest & WithAllocationDefaultNetmaskLength(int value)
void SetRemoveAllocationResourceTags(Aws::Vector< RequestIpamResourceTag > &&value)
ModifyIpamPoolRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector