AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeTransitGatewayAttachmentsRequest.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 "DescribeTransitGatewayAttachments"; }
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
85 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
86 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
87 template <typename FiltersT = Aws::Vector<Filter>>
88 void SetFilters(FiltersT&& value) {
89 m_filtersHasBeenSet = true;
90 m_filters = std::forward<FiltersT>(value);
91 }
92 template <typename FiltersT = Aws::Vector<Filter>>
94 SetFilters(std::forward<FiltersT>(value));
95 return *this;
96 }
97 template <typename FiltersT = Filter>
99 m_filtersHasBeenSet = true;
100 m_filters.emplace_back(std::forward<FiltersT>(value));
101 return *this;
102 }
104
106
111 inline int GetMaxResults() const { return m_maxResults; }
112 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
113 inline void SetMaxResults(int value) {
114 m_maxResultsHasBeenSet = true;
115 m_maxResults = value;
116 }
118 SetMaxResults(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetNextToken() const { return m_nextToken; }
128 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
129 template <typename NextTokenT = Aws::String>
130 void SetNextToken(NextTokenT&& value) {
131 m_nextTokenHasBeenSet = true;
132 m_nextToken = std::forward<NextTokenT>(value);
133 }
134 template <typename NextTokenT = Aws::String>
136 SetNextToken(std::forward<NextTokenT>(value));
137 return *this;
138 }
140
142
148 inline bool GetDryRun() const { return m_dryRun; }
149 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
150 inline void SetDryRun(bool value) {
151 m_dryRunHasBeenSet = true;
152 m_dryRun = value;
153 }
155 SetDryRun(value);
156 return *this;
157 }
159 private:
160 Aws::Vector<Aws::String> m_transitGatewayAttachmentIds;
161
162 Aws::Vector<Filter> m_filters;
163
164 int m_maxResults{0};
165
166 Aws::String m_nextToken;
167
168 bool m_dryRun{false};
169 bool m_transitGatewayAttachmentIdsHasBeenSet = false;
170 bool m_filtersHasBeenSet = false;
171 bool m_maxResultsHasBeenSet = false;
172 bool m_nextTokenHasBeenSet = false;
173 bool m_dryRunHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace EC2
178} // namespace Aws
DescribeTransitGatewayAttachmentsRequest & AddTransitGatewayAttachmentIds(TransitGatewayAttachmentIdsT &&value)
DescribeTransitGatewayAttachmentsRequest & WithNextToken(NextTokenT &&value)
DescribeTransitGatewayAttachmentsRequest & WithTransitGatewayAttachmentIds(TransitGatewayAttachmentIdsT &&value)
DescribeTransitGatewayAttachmentsRequest & AddFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeTransitGatewayAttachmentsRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector