AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetIpamResourceCidrsRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/IpamResourceType.h>
12#include <aws/ec2/model/RequestIpamResourceTag.h>
13#include <aws/ec2/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetIpamResourceCidrs"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const{ return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline GetIpamResourceCidrsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
63 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
64 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
65 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
66 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
67 inline GetIpamResourceCidrsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
68 inline GetIpamResourceCidrsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
69 inline GetIpamResourceCidrsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
70 inline GetIpamResourceCidrsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
72
74
77 inline int GetMaxResults() const{ return m_maxResults; }
78 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
79 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
80 inline GetIpamResourceCidrsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
82
84
87 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
90 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
91 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
92 inline GetIpamResourceCidrsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
93 inline GetIpamResourceCidrsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
94 inline GetIpamResourceCidrsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
96
98
101 inline const Aws::String& GetIpamScopeId() const{ return m_ipamScopeId; }
102 inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; }
103 inline void SetIpamScopeId(const Aws::String& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = value; }
104 inline void SetIpamScopeId(Aws::String&& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = std::move(value); }
105 inline void SetIpamScopeId(const char* value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId.assign(value); }
106 inline GetIpamResourceCidrsRequest& WithIpamScopeId(const Aws::String& value) { SetIpamScopeId(value); return *this;}
107 inline GetIpamResourceCidrsRequest& WithIpamScopeId(Aws::String&& value) { SetIpamScopeId(std::move(value)); return *this;}
108 inline GetIpamResourceCidrsRequest& WithIpamScopeId(const char* value) { SetIpamScopeId(value); return *this;}
110
112
115 inline const Aws::String& GetIpamPoolId() const{ return m_ipamPoolId; }
116 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
117 inline void SetIpamPoolId(const Aws::String& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = value; }
118 inline void SetIpamPoolId(Aws::String&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::move(value); }
119 inline void SetIpamPoolId(const char* value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId.assign(value); }
120 inline GetIpamResourceCidrsRequest& WithIpamPoolId(const Aws::String& value) { SetIpamPoolId(value); return *this;}
121 inline GetIpamResourceCidrsRequest& WithIpamPoolId(Aws::String&& value) { SetIpamPoolId(std::move(value)); return *this;}
122 inline GetIpamResourceCidrsRequest& WithIpamPoolId(const char* value) { SetIpamPoolId(value); return *this;}
124
126
129 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
130 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
131 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
132 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
133 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
134 inline GetIpamResourceCidrsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
135 inline GetIpamResourceCidrsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
136 inline GetIpamResourceCidrsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
138
140
143 inline const IpamResourceType& GetResourceType() const{ return m_resourceType; }
144 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
145 inline void SetResourceType(const IpamResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
146 inline void SetResourceType(IpamResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
148 inline GetIpamResourceCidrsRequest& WithResourceType(IpamResourceType&& value) { SetResourceType(std::move(value)); return *this;}
150
152
155 inline const RequestIpamResourceTag& GetResourceTag() const{ return m_resourceTag; }
156 inline bool ResourceTagHasBeenSet() const { return m_resourceTagHasBeenSet; }
157 inline void SetResourceTag(const RequestIpamResourceTag& value) { m_resourceTagHasBeenSet = true; m_resourceTag = value; }
158 inline void SetResourceTag(RequestIpamResourceTag&& value) { m_resourceTagHasBeenSet = true; m_resourceTag = std::move(value); }
160 inline GetIpamResourceCidrsRequest& WithResourceTag(RequestIpamResourceTag&& value) { SetResourceTag(std::move(value)); return *this;}
162
164
167 inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
168 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
169 inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
170 inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
171 inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
172 inline GetIpamResourceCidrsRequest& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
173 inline GetIpamResourceCidrsRequest& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
174 inline GetIpamResourceCidrsRequest& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
176 private:
177
178 bool m_dryRun;
179 bool m_dryRunHasBeenSet = false;
180
181 Aws::Vector<Filter> m_filters;
182 bool m_filtersHasBeenSet = false;
183
184 int m_maxResults;
185 bool m_maxResultsHasBeenSet = false;
186
187 Aws::String m_nextToken;
188 bool m_nextTokenHasBeenSet = false;
189
190 Aws::String m_ipamScopeId;
191 bool m_ipamScopeIdHasBeenSet = false;
192
193 Aws::String m_ipamPoolId;
194 bool m_ipamPoolIdHasBeenSet = false;
195
196 Aws::String m_resourceId;
197 bool m_resourceIdHasBeenSet = false;
198
199 IpamResourceType m_resourceType;
200 bool m_resourceTypeHasBeenSet = false;
201
202 RequestIpamResourceTag m_resourceTag;
203 bool m_resourceTagHasBeenSet = false;
204
205 Aws::String m_resourceOwner;
206 bool m_resourceOwnerHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace EC2
211} // namespace Aws
const Aws::Vector< Filter > & GetFilters() const
GetIpamResourceCidrsRequest & WithResourceOwner(const char *value)
GetIpamResourceCidrsRequest & WithFilters(const Aws::Vector< Filter > &value)
GetIpamResourceCidrsRequest & WithResourceType(IpamResourceType &&value)
GetIpamResourceCidrsRequest & WithNextToken(Aws::String &&value)
GetIpamResourceCidrsRequest & WithIpamPoolId(const char *value)
const RequestIpamResourceTag & GetResourceTag() const
void SetResourceTag(const RequestIpamResourceTag &value)
GetIpamResourceCidrsRequest & WithIpamPoolId(const Aws::String &value)
GetIpamResourceCidrsRequest & WithNextToken(const char *value)
GetIpamResourceCidrsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
GetIpamResourceCidrsRequest & AddFilters(const Filter &value)
GetIpamResourceCidrsRequest & WithIpamScopeId(Aws::String &&value)
GetIpamResourceCidrsRequest & WithResourceTag(RequestIpamResourceTag &&value)
GetIpamResourceCidrsRequest & WithResourceOwner(const Aws::String &value)
GetIpamResourceCidrsRequest & WithIpamPoolId(Aws::String &&value)
GetIpamResourceCidrsRequest & WithResourceId(const char *value)
GetIpamResourceCidrsRequest & WithResourceId(const Aws::String &value)
GetIpamResourceCidrsRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetIpamResourceCidrsRequest & WithResourceTag(const RequestIpamResourceTag &value)
GetIpamResourceCidrsRequest & WithNextToken(const Aws::String &value)
void SetFilters(const Aws::Vector< Filter > &value)
GetIpamResourceCidrsRequest & WithIpamScopeId(const char *value)
GetIpamResourceCidrsRequest & WithFilters(Aws::Vector< Filter > &&value)
GetIpamResourceCidrsRequest & AddFilters(Filter &&value)
GetIpamResourceCidrsRequest & WithResourceId(Aws::String &&value)
GetIpamResourceCidrsRequest & WithResourceType(const IpamResourceType &value)
GetIpamResourceCidrsRequest & WithResourceOwner(Aws::String &&value)
GetIpamResourceCidrsRequest & WithIpamScopeId(const Aws::String &value)
void SetResourceTag(RequestIpamResourceTag &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector