AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListDocumentsRequest.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/DocumentFilter.h>
12#include <aws/ssm/model/DocumentKeyValuesFilter.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SSM {
18namespace Model {
19
23 public:
24 AWS_SSM_API ListDocumentsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListDocuments"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::Vector<DocumentFilter>& GetDocumentFilterList() const { return m_documentFilterList; }
41 inline bool DocumentFilterListHasBeenSet() const { return m_documentFilterListHasBeenSet; }
42 template <typename DocumentFilterListT = Aws::Vector<DocumentFilter>>
43 void SetDocumentFilterList(DocumentFilterListT&& value) {
44 m_documentFilterListHasBeenSet = true;
45 m_documentFilterList = std::forward<DocumentFilterListT>(value);
46 }
47 template <typename DocumentFilterListT = Aws::Vector<DocumentFilter>>
48 ListDocumentsRequest& WithDocumentFilterList(DocumentFilterListT&& value) {
49 SetDocumentFilterList(std::forward<DocumentFilterListT>(value));
50 return *this;
51 }
52 template <typename DocumentFilterListT = DocumentFilter>
53 ListDocumentsRequest& AddDocumentFilterList(DocumentFilterListT&& value) {
54 m_documentFilterListHasBeenSet = true;
55 m_documentFilterList.emplace_back(std::forward<DocumentFilterListT>(value));
56 return *this;
57 }
59
61
74 inline const Aws::Vector<DocumentKeyValuesFilter>& GetFilters() const { return m_filters; }
75 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
76 template <typename FiltersT = Aws::Vector<DocumentKeyValuesFilter>>
77 void SetFilters(FiltersT&& value) {
78 m_filtersHasBeenSet = true;
79 m_filters = std::forward<FiltersT>(value);
80 }
81 template <typename FiltersT = Aws::Vector<DocumentKeyValuesFilter>>
82 ListDocumentsRequest& WithFilters(FiltersT&& value) {
83 SetFilters(std::forward<FiltersT>(value));
84 return *this;
85 }
86 template <typename FiltersT = DocumentKeyValuesFilter>
87 ListDocumentsRequest& AddFilters(FiltersT&& value) {
88 m_filtersHasBeenSet = true;
89 m_filters.emplace_back(std::forward<FiltersT>(value));
90 return *this;
91 }
93
95
100 inline int GetMaxResults() const { return m_maxResults; }
101 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
102 inline void SetMaxResults(int value) {
103 m_maxResultsHasBeenSet = true;
104 m_maxResults = value;
105 }
107 SetMaxResults(value);
108 return *this;
109 }
111
113
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 template <typename NextTokenT = Aws::String>
120 void SetNextToken(NextTokenT&& value) {
121 m_nextTokenHasBeenSet = true;
122 m_nextToken = std::forward<NextTokenT>(value);
123 }
124 template <typename NextTokenT = Aws::String>
125 ListDocumentsRequest& WithNextToken(NextTokenT&& value) {
126 SetNextToken(std::forward<NextTokenT>(value));
127 return *this;
128 }
130 private:
131 Aws::Vector<DocumentFilter> m_documentFilterList;
132
134
135 int m_maxResults{0};
136
137 Aws::String m_nextToken;
138 bool m_documentFilterListHasBeenSet = false;
139 bool m_filtersHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141 bool m_nextTokenHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace SSM
146} // namespace Aws
ListDocumentsRequest & WithNextToken(NextTokenT &&value)
ListDocumentsRequest & AddFilters(FiltersT &&value)
void SetDocumentFilterList(DocumentFilterListT &&value)
const Aws::Vector< DocumentFilter > & GetDocumentFilterList() const
ListDocumentsRequest & WithFilters(FiltersT &&value)
AWS_SSM_API ListDocumentsRequest()=default
ListDocumentsRequest & AddDocumentFilterList(DocumentFilterListT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< DocumentKeyValuesFilter > & GetFilters() const
ListDocumentsRequest & WithDocumentFilterList(DocumentFilterListT &&value)
ListDocumentsRequest & WithMaxResults(int value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSM_API Aws::String SerializePayload() const override
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