AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeVpcEncryptionControlsRequest.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 DescribeVpcEncryptionControlsRequest() = 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 "DescribeVpcEncryptionControls"; }
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
60 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
61 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
62 template <typename FiltersT = Aws::Vector<Filter>>
63 void SetFilters(FiltersT&& value) {
64 m_filtersHasBeenSet = true;
65 m_filters = std::forward<FiltersT>(value);
66 }
67 template <typename FiltersT = Aws::Vector<Filter>>
69 SetFilters(std::forward<FiltersT>(value));
70 return *this;
71 }
72 template <typename FiltersT = Filter>
74 m_filtersHasBeenSet = true;
75 m_filters.emplace_back(std::forward<FiltersT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<Aws::String>& GetVpcEncryptionControlIds() const { return m_vpcEncryptionControlIds; }
85 inline bool VpcEncryptionControlIdsHasBeenSet() const { return m_vpcEncryptionControlIdsHasBeenSet; }
86 template <typename VpcEncryptionControlIdsT = Aws::Vector<Aws::String>>
87 void SetVpcEncryptionControlIds(VpcEncryptionControlIdsT&& value) {
88 m_vpcEncryptionControlIdsHasBeenSet = true;
89 m_vpcEncryptionControlIds = std::forward<VpcEncryptionControlIdsT>(value);
90 }
91 template <typename VpcEncryptionControlIdsT = Aws::Vector<Aws::String>>
93 SetVpcEncryptionControlIds(std::forward<VpcEncryptionControlIdsT>(value));
94 return *this;
95 }
96 template <typename VpcEncryptionControlIdsT = Aws::String>
98 m_vpcEncryptionControlIdsHasBeenSet = true;
99 m_vpcEncryptionControlIds.emplace_back(std::forward<VpcEncryptionControlIdsT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Vector<Aws::String>& GetVpcIds() const { return m_vpcIds; }
109 inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; }
110 template <typename VpcIdsT = Aws::Vector<Aws::String>>
111 void SetVpcIds(VpcIdsT&& value) {
112 m_vpcIdsHasBeenSet = true;
113 m_vpcIds = std::forward<VpcIdsT>(value);
114 }
115 template <typename VpcIdsT = Aws::Vector<Aws::String>>
117 SetVpcIds(std::forward<VpcIdsT>(value));
118 return *this;
119 }
120 template <typename VpcIdsT = Aws::String>
122 m_vpcIdsHasBeenSet = true;
123 m_vpcIds.emplace_back(std::forward<VpcIdsT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetNextToken() const { return m_nextToken; }
134 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
135 template <typename NextTokenT = Aws::String>
136 void SetNextToken(NextTokenT&& value) {
137 m_nextTokenHasBeenSet = true;
138 m_nextToken = std::forward<NextTokenT>(value);
139 }
140 template <typename NextTokenT = Aws::String>
142 SetNextToken(std::forward<NextTokenT>(value));
143 return *this;
144 }
146
148
154 inline int GetMaxResults() const { return m_maxResults; }
155 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
156 inline void SetMaxResults(int value) {
157 m_maxResultsHasBeenSet = true;
158 m_maxResults = value;
159 }
161 SetMaxResults(value);
162 return *this;
163 }
165 private:
166 bool m_dryRun{false};
167
168 Aws::Vector<Filter> m_filters;
169
170 Aws::Vector<Aws::String> m_vpcEncryptionControlIds;
171
173
174 Aws::String m_nextToken;
175
176 int m_maxResults{0};
177 bool m_dryRunHasBeenSet = false;
178 bool m_filtersHasBeenSet = false;
179 bool m_vpcEncryptionControlIdsHasBeenSet = false;
180 bool m_vpcIdsHasBeenSet = false;
181 bool m_nextTokenHasBeenSet = false;
182 bool m_maxResultsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace EC2
187} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
DescribeVpcEncryptionControlsRequest & AddVpcEncryptionControlIds(VpcEncryptionControlIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeVpcEncryptionControlsRequest & WithNextToken(NextTokenT &&value)
DescribeVpcEncryptionControlsRequest & WithVpcIds(VpcIdsT &&value)
DescribeVpcEncryptionControlsRequest & WithDryRun(bool value)
DescribeVpcEncryptionControlsRequest & AddFilters(FiltersT &&value)
DescribeVpcEncryptionControlsRequest & WithFilters(FiltersT &&value)
DescribeVpcEncryptionControlsRequest & WithVpcEncryptionControlIds(VpcEncryptionControlIdsT &&value)
DescribeVpcEncryptionControlsRequest & AddVpcIds(VpcIdsT &&value)
DescribeVpcEncryptionControlsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector