AWS SDK for C++  1.8.71
AWS SDK for C++
ListConfigurationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace ApplicationDiscoveryService
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListConfigurations"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const ConfigurationItemType& GetConfigurationType() const{ return m_configurationType; }
45 
49  inline bool ConfigurationTypeHasBeenSet() const { return m_configurationTypeHasBeenSet; }
50 
54  inline void SetConfigurationType(const ConfigurationItemType& value) { m_configurationTypeHasBeenSet = true; m_configurationType = value; }
55 
59  inline void SetConfigurationType(ConfigurationItemType&& value) { m_configurationTypeHasBeenSet = true; m_configurationType = std::move(value); }
60 
64  inline ListConfigurationsRequest& WithConfigurationType(const ConfigurationItemType& value) { SetConfigurationType(value); return *this;}
65 
69  inline ListConfigurationsRequest& WithConfigurationType(ConfigurationItemType&& value) { SetConfigurationType(std::move(value)); return *this;}
70 
71 
81  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
82 
92  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
93 
103  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
104 
114  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
115 
125  inline ListConfigurationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
126 
136  inline ListConfigurationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
137 
147  inline ListConfigurationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
148 
158  inline ListConfigurationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
159 
160 
164  inline int GetMaxResults() const{ return m_maxResults; }
165 
169  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
170 
174  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
175 
179  inline ListConfigurationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
180 
181 
189  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
190 
198  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
199 
207  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
208 
216  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
217 
225  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
226 
234  inline ListConfigurationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
235 
243  inline ListConfigurationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
244 
252  inline ListConfigurationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
253 
254 
262  inline const Aws::Vector<OrderByElement>& GetOrderBy() const{ return m_orderBy; }
263 
271  inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
272 
280  inline void SetOrderBy(const Aws::Vector<OrderByElement>& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
281 
289  inline void SetOrderBy(Aws::Vector<OrderByElement>&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); }
290 
298  inline ListConfigurationsRequest& WithOrderBy(const Aws::Vector<OrderByElement>& value) { SetOrderBy(value); return *this;}
299 
307  inline ListConfigurationsRequest& WithOrderBy(Aws::Vector<OrderByElement>&& value) { SetOrderBy(std::move(value)); return *this;}
308 
316  inline ListConfigurationsRequest& AddOrderBy(const OrderByElement& value) { m_orderByHasBeenSet = true; m_orderBy.push_back(value); return *this; }
317 
325  inline ListConfigurationsRequest& AddOrderBy(OrderByElement&& value) { m_orderByHasBeenSet = true; m_orderBy.push_back(std::move(value)); return *this; }
326 
327  private:
328 
329  ConfigurationItemType m_configurationType;
330  bool m_configurationTypeHasBeenSet;
331 
332  Aws::Vector<Filter> m_filters;
333  bool m_filtersHasBeenSet;
334 
335  int m_maxResults;
336  bool m_maxResultsHasBeenSet;
337 
338  Aws::String m_nextToken;
339  bool m_nextTokenHasBeenSet;
340 
341  Aws::Vector<OrderByElement> m_orderBy;
342  bool m_orderByHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace ApplicationDiscoveryService
347 } // namespace Aws
#define AWS_APPLICATIONDISCOVERYSERVICE_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ListConfigurationsRequest & WithFilters(const Aws::Vector< Filter > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ListConfigurationsRequest & WithFilters(Aws::Vector< Filter > &&value)
ListConfigurationsRequest & WithConfigurationType(ConfigurationItemType &&value)
ListConfigurationsRequest & WithConfigurationType(const ConfigurationItemType &value)
ListConfigurationsRequest & AddOrderBy(OrderByElement &&value)
ListConfigurationsRequest & WithOrderBy(Aws::Vector< OrderByElement > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListConfigurationsRequest & WithOrderBy(const Aws::Vector< OrderByElement > &value)
ListConfigurationsRequest & WithNextToken(const Aws::String &value)
ListConfigurationsRequest & AddOrderBy(const OrderByElement &value)