AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
60 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
61 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
62 inline ListLocationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
63 inline ListLocationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
64 inline ListLocationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
66
68
74 inline const Aws::Vector<LocationFilter>& GetFilters() const{ return m_filters; }
75 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
76 inline void SetFilters(const Aws::Vector<LocationFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
77 inline void SetFilters(Aws::Vector<LocationFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
78 inline ListLocationsRequest& WithFilters(const Aws::Vector<LocationFilter>& value) { SetFilters(value); return *this;}
79 inline ListLocationsRequest& WithFilters(Aws::Vector<LocationFilter>&& value) { SetFilters(std::move(value)); return *this;}
80 inline ListLocationsRequest& AddFilters(const LocationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
81 inline ListLocationsRequest& AddFilters(LocationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
83 private:
84
85 int m_maxResults;
86 bool m_maxResultsHasBeenSet = false;
87
88 Aws::String m_nextToken;
89 bool m_nextTokenHasBeenSet = false;
90
92 bool m_filtersHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace DataSync
97} // namespace Aws
const Aws::Vector< LocationFilter > & GetFilters() const
ListLocationsRequest & WithNextToken(const Aws::String &value)
ListLocationsRequest & AddFilters(LocationFilter &&value)
ListLocationsRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListLocationsRequest & WithFilters(const Aws::Vector< LocationFilter > &value)
void SetFilters(Aws::Vector< LocationFilter > &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
void SetFilters(const Aws::Vector< LocationFilter > &value)
ListLocationsRequest & WithMaxResults(int value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListLocationsRequest & WithNextToken(const char *value)
void SetNextToken(const Aws::String &value)
ListLocationsRequest & AddFilters(const LocationFilter &value)
ListLocationsRequest & WithFilters(Aws::Vector< LocationFilter > &&value)
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