AWS SDK for C++

AWS SDK for C++ Version 1.11.550

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
ListNodesRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/NodeFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSM_API ListNodesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListNodes"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
47 inline const Aws::String& GetSyncName() const { return m_syncName; }
48 inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
49 template<typename SyncNameT = Aws::String>
50 void SetSyncName(SyncNameT&& value) { m_syncNameHasBeenSet = true; m_syncName = std::forward<SyncNameT>(value); }
51 template<typename SyncNameT = Aws::String>
52 ListNodesRequest& WithSyncName(SyncNameT&& value) { SetSyncName(std::forward<SyncNameT>(value)); return *this;}
54
56
60 inline const Aws::Vector<NodeFilter>& GetFilters() const { return m_filters; }
61 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
62 template<typename FiltersT = Aws::Vector<NodeFilter>>
63 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
64 template<typename FiltersT = Aws::Vector<NodeFilter>>
65 ListNodesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
66 template<typename FiltersT = NodeFilter>
67 ListNodesRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
69
71
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template<typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
79 template<typename NextTokenT = Aws::String>
80 ListNodesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
82
84
89 inline int GetMaxResults() const { return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
92 inline ListNodesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
94 private:
95
96 Aws::String m_syncName;
97 bool m_syncNameHasBeenSet = false;
98
100 bool m_filtersHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104
105 int m_maxResults{0};
106 bool m_maxResultsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SSM
111} // 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