AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeTransitGatewayConnectsRequest.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:
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 "DescribeTransitGatewayConnects"; }
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
41 inline const Aws::Vector<Aws::String>& GetTransitGatewayAttachmentIds() const { return m_transitGatewayAttachmentIds; }
42 inline bool TransitGatewayAttachmentIdsHasBeenSet() const { return m_transitGatewayAttachmentIdsHasBeenSet; }
43 template <typename TransitGatewayAttachmentIdsT = Aws::Vector<Aws::String>>
44 void SetTransitGatewayAttachmentIds(TransitGatewayAttachmentIdsT&& value) {
45 m_transitGatewayAttachmentIdsHasBeenSet = true;
46 m_transitGatewayAttachmentIds = std::forward<TransitGatewayAttachmentIdsT>(value);
47 }
48 template <typename TransitGatewayAttachmentIdsT = Aws::Vector<Aws::String>>
50 SetTransitGatewayAttachmentIds(std::forward<TransitGatewayAttachmentIdsT>(value));
51 return *this;
52 }
53 template <typename TransitGatewayAttachmentIdsT = Aws::String>
55 m_transitGatewayAttachmentIdsHasBeenSet = true;
56 m_transitGatewayAttachmentIds.emplace_back(std::forward<TransitGatewayAttachmentIdsT>(value));
57 return *this;
58 }
60
62
78 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
79 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
80 template <typename FiltersT = Aws::Vector<Filter>>
81 void SetFilters(FiltersT&& value) {
82 m_filtersHasBeenSet = true;
83 m_filters = std::forward<FiltersT>(value);
84 }
85 template <typename FiltersT = Aws::Vector<Filter>>
87 SetFilters(std::forward<FiltersT>(value));
88 return *this;
89 }
90 template <typename FiltersT = Filter>
92 m_filtersHasBeenSet = true;
93 m_filters.emplace_back(std::forward<FiltersT>(value));
94 return *this;
95 }
97
99
104 inline int GetMaxResults() const { return m_maxResults; }
105 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
106 inline void SetMaxResults(int value) {
107 m_maxResultsHasBeenSet = true;
108 m_maxResults = value;
109 }
111 SetMaxResults(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetNextToken() const { return m_nextToken; }
121 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
122 template <typename NextTokenT = Aws::String>
123 void SetNextToken(NextTokenT&& value) {
124 m_nextTokenHasBeenSet = true;
125 m_nextToken = std::forward<NextTokenT>(value);
126 }
127 template <typename NextTokenT = Aws::String>
129 SetNextToken(std::forward<NextTokenT>(value));
130 return *this;
131 }
133
135
141 inline bool GetDryRun() const { return m_dryRun; }
142 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
143 inline void SetDryRun(bool value) {
144 m_dryRunHasBeenSet = true;
145 m_dryRun = value;
146 }
148 SetDryRun(value);
149 return *this;
150 }
152 private:
153 Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
154
155 Aws::Vector<Filter> m_filters;
156
157 int m_maxResults{0};
158
159 Aws::String m_nextToken;
160
161 bool m_dryRun{false};
162 bool m_transitGatewayAttachmentIdsHasBeenSet = false;
163 bool m_filtersHasBeenSet = false;
164 bool m_maxResultsHasBeenSet = false;
165 bool m_nextTokenHasBeenSet = false;
166 bool m_dryRunHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
DescribeTransitGatewayConnectsRequest & WithDryRun(bool value)
DescribeTransitGatewayConnectsRequest & WithMaxResults(int value)
DescribeTransitGatewayConnectsRequest & WithTransitGatewayAttachmentIds(TransitGatewayAttachmentIdsT &&value)
DescribeTransitGatewayConnectsRequest & WithFilters(FiltersT &&value)
DescribeTransitGatewayConnectsRequest & WithNextToken(NextTokenT &&value)
DescribeTransitGatewayConnectsRequest & AddTransitGatewayAttachmentIds(TransitGatewayAttachmentIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeTransitGatewayConnectsRequest & AddFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector