AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListNodesRequest.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/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/NodeFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSM {
17namespace Model {
18
22 public:
23 AWS_SSM_API ListNodesRequest() = 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 "ListNodes"; }
30
31 AWS_SSM_API Aws::String SerializePayload() const override;
32
34
36
43 inline const Aws::String& GetSyncName() const { return m_syncName; }
44 inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
45 template <typename SyncNameT = Aws::String>
46 void SetSyncName(SyncNameT&& value) {
47 m_syncNameHasBeenSet = true;
48 m_syncName = std::forward<SyncNameT>(value);
49 }
50 template <typename SyncNameT = Aws::String>
51 ListNodesRequest& WithSyncName(SyncNameT&& value) {
52 SetSyncName(std::forward<SyncNameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<NodeFilter>& GetFilters() const { return m_filters; }
63 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
64 template <typename FiltersT = Aws::Vector<NodeFilter>>
65 void SetFilters(FiltersT&& value) {
66 m_filtersHasBeenSet = true;
67 m_filters = std::forward<FiltersT>(value);
68 }
69 template <typename FiltersT = Aws::Vector<NodeFilter>>
70 ListNodesRequest& WithFilters(FiltersT&& value) {
71 SetFilters(std::forward<FiltersT>(value));
72 return *this;
73 }
74 template <typename FiltersT = NodeFilter>
75 ListNodesRequest& AddFilters(FiltersT&& value) {
76 m_filtersHasBeenSet = true;
77 m_filters.emplace_back(std::forward<FiltersT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetNextToken() const { return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 template <typename NextTokenT = Aws::String>
90 void SetNextToken(NextTokenT&& value) {
91 m_nextTokenHasBeenSet = true;
92 m_nextToken = std::forward<NextTokenT>(value);
93 }
94 template <typename NextTokenT = Aws::String>
95 ListNodesRequest& WithNextToken(NextTokenT&& value) {
96 SetNextToken(std::forward<NextTokenT>(value));
97 return *this;
98 }
100
102
107 inline int GetMaxResults() const { return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) {
110 m_maxResultsHasBeenSet = true;
111 m_maxResults = value;
112 }
113 inline ListNodesRequest& WithMaxResults(int value) {
114 SetMaxResults(value);
115 return *this;
116 }
118 private:
119 Aws::String m_syncName;
120
121 Aws::Vector<NodeFilter> m_filters;
122
123 Aws::String m_nextToken;
124
125 int m_maxResults{0};
126 bool m_syncNameHasBeenSet = false;
127 bool m_filtersHasBeenSet = false;
128 bool m_nextTokenHasBeenSet = false;
129 bool m_maxResultsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace SSM
134} // namespace Aws
AWS_SSM_API ListNodesRequest()=default
void SetFilters(FiltersT &&value)
const Aws::String & GetSyncName() const
const Aws::Vector< NodeFilter > & GetFilters() const
ListNodesRequest & WithFilters(FiltersT &&value)
void SetSyncName(SyncNameT &&value)
ListNodesRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
virtual const char * GetServiceRequestName() const override
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetNextToken(NextTokenT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
ListNodesRequest & AddFilters(FiltersT &&value)
ListNodesRequest & WithMaxResults(int value)
ListNodesRequest & WithSyncName(SyncNameT &&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