AWS SDK for C++

AWS SDK for C++ Version 1.11.551

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
ListDocumentsRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ssm/model/DocumentFilter.h>
12#include <aws/ssm/model/DocumentKeyValuesFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SSM
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SSM_API ListDocumentsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListDocuments"; }
34
35 AWS_SSM_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::Vector<DocumentFilter>& GetDocumentFilterList() const { return m_documentFilterList; }
45 inline bool DocumentFilterListHasBeenSet() const { return m_documentFilterListHasBeenSet; }
46 template<typename DocumentFilterListT = Aws::Vector<DocumentFilter>>
47 void SetDocumentFilterList(DocumentFilterListT&& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList = std::forward<DocumentFilterListT>(value); }
48 template<typename DocumentFilterListT = Aws::Vector<DocumentFilter>>
49 ListDocumentsRequest& WithDocumentFilterList(DocumentFilterListT&& value) { SetDocumentFilterList(std::forward<DocumentFilterListT>(value)); return *this;}
50 template<typename DocumentFilterListT = DocumentFilter>
51 ListDocumentsRequest& AddDocumentFilterList(DocumentFilterListT&& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList.emplace_back(std::forward<DocumentFilterListT>(value)); return *this; }
53
55
68 inline const Aws::Vector<DocumentKeyValuesFilter>& GetFilters() const { return m_filters; }
69 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
70 template<typename FiltersT = Aws::Vector<DocumentKeyValuesFilter>>
71 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
72 template<typename FiltersT = Aws::Vector<DocumentKeyValuesFilter>>
73 ListDocumentsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
74 template<typename FiltersT = DocumentKeyValuesFilter>
75 ListDocumentsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
77
79
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
87 inline ListDocumentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89
91
95 inline const Aws::String& GetNextToken() const { return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 template<typename NextTokenT = Aws::String>
98 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
99 template<typename NextTokenT = Aws::String>
100 ListDocumentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
102 private:
103
104 Aws::Vector<DocumentFilter> m_documentFilterList;
105 bool m_documentFilterListHasBeenSet = false;
106
108 bool m_filtersHasBeenSet = false;
109
110 int m_maxResults{0};
111 bool m_maxResultsHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace SSM
119} // namespace Aws
ListDocumentsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
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