AWS SDK for C++

AWS SDK for C++ Version 1.11.811

Loading...
Searching...
No Matches
DescribeIpamScopesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeIpamScopesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeIpamScopes"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
63 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
64 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
65 template <typename FiltersT = Aws::Vector<Filter>>
66 void SetFilters(FiltersT&& value) {
67 m_filtersHasBeenSet = true;
68 m_filters = std::forward<FiltersT>(value);
69 }
70 template <typename FiltersT = Aws::Vector<Filter>>
72 SetFilters(std::forward<FiltersT>(value));
73 return *this;
74 }
75 template <typename FiltersT = Filter>
77 m_filtersHasBeenSet = true;
78 m_filters.emplace_back(std::forward<FiltersT>(value));
79 return *this;
80 }
82
84
90 inline int GetMaxResults() const { return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) {
93 m_maxResultsHasBeenSet = true;
94 m_maxResults = value;
95 }
97 SetMaxResults(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetNextToken() const { return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 template <typename NextTokenT = Aws::String>
109 void SetNextToken(NextTokenT&& value) {
110 m_nextTokenHasBeenSet = true;
111 m_nextToken = std::forward<NextTokenT>(value);
112 }
113 template <typename NextTokenT = Aws::String>
115 SetNextToken(std::forward<NextTokenT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Vector<Aws::String>& GetIpamScopeIds() const { return m_ipamScopeIds; }
125 inline bool IpamScopeIdsHasBeenSet() const { return m_ipamScopeIdsHasBeenSet; }
126 template <typename IpamScopeIdsT = Aws::Vector<Aws::String>>
127 void SetIpamScopeIds(IpamScopeIdsT&& value) {
128 m_ipamScopeIdsHasBeenSet = true;
129 m_ipamScopeIds = std::forward<IpamScopeIdsT>(value);
130 }
131 template <typename IpamScopeIdsT = Aws::Vector<Aws::String>>
133 SetIpamScopeIds(std::forward<IpamScopeIdsT>(value));
134 return *this;
135 }
136 template <typename IpamScopeIdsT = Aws::String>
138 m_ipamScopeIdsHasBeenSet = true;
139 m_ipamScopeIds.emplace_back(std::forward<IpamScopeIdsT>(value));
140 return *this;
141 }
143 private:
144 bool m_dryRun{false};
145
146 Aws::Vector<Filter> m_filters;
147
148 int m_maxResults{0};
149
150 Aws::String m_nextToken;
151
152 Aws::Vector<Aws::String> m_ipamScopeIds;
153 bool m_dryRunHasBeenSet = false;
154 bool m_filtersHasBeenSet = false;
155 bool m_maxResultsHasBeenSet = false;
156 bool m_nextTokenHasBeenSet = false;
157 bool m_ipamScopeIdsHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace EC2
162} // namespace Aws
DescribeIpamScopesRequest & AddFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetIpamScopeIds() const
DescribeIpamScopesRequest & WithNextToken(NextTokenT &&value)
DescribeIpamScopesRequest & WithMaxResults(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeIpamScopesRequest & WithIpamScopeIds(IpamScopeIdsT &&value)
AWS_EC2_API DescribeIpamScopesRequest()=default
DescribeIpamScopesRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeIpamScopesRequest & WithDryRun(bool value)
DescribeIpamScopesRequest & AddIpamScopeIds(IpamScopeIdsT &&value)
const Aws::Vector< Filter > & GetFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector