AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListLocationsRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/LocationFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataSync
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_DATASYNC_API ListLocationsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListLocations"; }
36
37 AWS_DATASYNC_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline int GetMaxResults() const { return m_maxResults; }
47 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
48 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
49 inline ListLocationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
51
53
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template<typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
61 template<typename NextTokenT = Aws::String>
62 ListLocationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
64
66
72 inline const Aws::Vector<LocationFilter>& GetFilters() const { return m_filters; }
73 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
74 template<typename FiltersT = Aws::Vector<LocationFilter>>
75 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
76 template<typename FiltersT = Aws::Vector<LocationFilter>>
77 ListLocationsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
78 template<typename FiltersT = LocationFilter>
79 ListLocationsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
81 private:
82
83 int m_maxResults{0};
84 bool m_maxResultsHasBeenSet = false;
85
86 Aws::String m_nextToken;
87 bool m_nextTokenHasBeenSet = false;
88
90 bool m_filtersHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace DataSync
95} // namespace Aws
const Aws::Vector< LocationFilter > & GetFilters() const
ListLocationsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListLocationsRequest & WithFilters(FiltersT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
ListLocationsRequest & WithMaxResults(int value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListLocationsRequest & AddFilters(FiltersT &&value)
AWS_DATASYNC_API ListLocationsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector