AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
ListApplicationsRequest.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/ssm-sap/SsmSapRequest.h>
10#include <aws/ssm-sap/SsmSap_EXPORTS.h>
11#include <aws/ssm-sap/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SsmSap {
17namespace Model {
18
22 public:
23 AWS_SSMSAP_API ListApplicationsRequest() = 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 "ListApplications"; }
30
31 AWS_SSMSAP_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetNextToken() const { return m_nextToken; }
38 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
39 template <typename NextTokenT = Aws::String>
40 void SetNextToken(NextTokenT&& value) {
41 m_nextTokenHasBeenSet = true;
42 m_nextToken = std::forward<NextTokenT>(value);
43 }
44 template <typename NextTokenT = Aws::String>
46 SetNextToken(std::forward<NextTokenT>(value));
47 return *this;
48 }
50
52
56 inline int GetMaxResults() const { return m_maxResults; }
57 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
58 inline void SetMaxResults(int value) {
59 m_maxResultsHasBeenSet = true;
60 m_maxResults = value;
61 }
63 SetMaxResults(value);
64 return *this;
65 }
67
69
72 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
73 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
74 template <typename FiltersT = Aws::Vector<Filter>>
75 void SetFilters(FiltersT&& value) {
76 m_filtersHasBeenSet = true;
77 m_filters = std::forward<FiltersT>(value);
78 }
79 template <typename FiltersT = Aws::Vector<Filter>>
81 SetFilters(std::forward<FiltersT>(value));
82 return *this;
83 }
84 template <typename FiltersT = Filter>
86 m_filtersHasBeenSet = true;
87 m_filters.emplace_back(std::forward<FiltersT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_nextToken;
93 bool m_nextTokenHasBeenSet = false;
94
95 int m_maxResults{0};
96 bool m_maxResultsHasBeenSet = false;
97
98 Aws::Vector<Filter> m_filters;
99 bool m_filtersHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace SsmSap
104} // namespace Aws
ListApplicationsRequest & WithMaxResults(int value)
AWS_SSMSAP_API Aws::String SerializePayload() const override
ListApplicationsRequest & AddFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
ListApplicationsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Filter > & GetFilters() const
ListApplicationsRequest & WithFilters(FiltersT &&value)
AWS_SSMSAP_API ListApplicationsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector