AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeRouteServersRequest.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 DescribeRouteServersRequest() = 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 "DescribeRouteServers"; }
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>& GetRouteServerIds() const { return m_routeServerIds; }
42 inline bool RouteServerIdsHasBeenSet() const { return m_routeServerIdsHasBeenSet; }
43 template <typename RouteServerIdsT = Aws::Vector<Aws::String>>
44 void SetRouteServerIds(RouteServerIdsT&& value) {
45 m_routeServerIdsHasBeenSet = true;
46 m_routeServerIds = std::forward<RouteServerIdsT>(value);
47 }
48 template <typename RouteServerIdsT = Aws::Vector<Aws::String>>
50 SetRouteServerIds(std::forward<RouteServerIdsT>(value));
51 return *this;
52 }
53 template <typename RouteServerIdsT = Aws::String>
55 m_routeServerIdsHasBeenSet = true;
56 m_routeServerIds.emplace_back(std::forward<RouteServerIdsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78
80
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) {
86 m_maxResultsHasBeenSet = true;
87 m_maxResults = value;
88 }
90 SetMaxResults(value);
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
100 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
101 template <typename FiltersT = Aws::Vector<Filter>>
102 void SetFilters(FiltersT&& value) {
103 m_filtersHasBeenSet = true;
104 m_filters = std::forward<FiltersT>(value);
105 }
106 template <typename FiltersT = Aws::Vector<Filter>>
108 SetFilters(std::forward<FiltersT>(value));
109 return *this;
110 }
111 template <typename FiltersT = Filter>
113 m_filtersHasBeenSet = true;
114 m_filters.emplace_back(std::forward<FiltersT>(value));
115 return *this;
116 }
118
120
126 inline bool GetDryRun() const { return m_dryRun; }
127 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
128 inline void SetDryRun(bool value) {
129 m_dryRunHasBeenSet = true;
130 m_dryRun = value;
131 }
133 SetDryRun(value);
134 return *this;
135 }
137 private:
138 Aws::Vector<Aws::String> m_routeServerIds;
139
140 Aws::String m_nextToken;
141
142 int m_maxResults{0};
143
144 Aws::Vector<Filter> m_filters;
145
146 bool m_dryRun{false};
147 bool m_routeServerIdsHasBeenSet = false;
148 bool m_nextTokenHasBeenSet = false;
149 bool m_maxResultsHasBeenSet = false;
150 bool m_filtersHasBeenSet = false;
151 bool m_dryRunHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace EC2
156} // namespace Aws
virtual const char * GetServiceRequestName() const override
DescribeRouteServersRequest & WithRouteServerIds(RouteServerIdsT &&value)
AWS_EC2_API DescribeRouteServersRequest()=default
DescribeRouteServersRequest & AddFilters(FiltersT &&value)
DescribeRouteServersRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetRouteServerIds() const
DescribeRouteServersRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeRouteServersRequest & AddRouteServerIds(RouteServerIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeRouteServersRequest & WithNextToken(NextTokenT &&value)
DescribeRouteServersRequest & WithMaxResults(int 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