AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDocumentFilterList(const Aws::Vector<DocumentFilter>& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList = value; }
47 inline void SetDocumentFilterList(Aws::Vector<DocumentFilter>&& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList = std::move(value); }
50 inline ListDocumentsRequest& AddDocumentFilterList(const DocumentFilter& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList.push_back(value); return *this; }
51 inline ListDocumentsRequest& AddDocumentFilterList(DocumentFilter&& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList.push_back(std::move(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 inline void SetFilters(const Aws::Vector<DocumentKeyValuesFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
71 inline void SetFilters(Aws::Vector<DocumentKeyValuesFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
73 inline ListDocumentsRequest& WithFilters(Aws::Vector<DocumentKeyValuesFilter>&& value) { SetFilters(std::move(value)); return *this;}
74 inline ListDocumentsRequest& AddFilters(const DocumentKeyValuesFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
75 inline ListDocumentsRequest& AddFilters(DocumentKeyValuesFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
98 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
99 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
100 inline ListDocumentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
101 inline ListDocumentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 inline ListDocumentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
104 private:
105
106 Aws::Vector<DocumentFilter> m_documentFilterList;
107 bool m_documentFilterListHasBeenSet = false;
108
110 bool m_filtersHasBeenSet = false;
111
112 int m_maxResults;
113 bool m_maxResultsHasBeenSet = false;
114
115 Aws::String m_nextToken;
116 bool m_nextTokenHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace SSM
121} // namespace Aws
void SetFilters(const Aws::Vector< DocumentKeyValuesFilter > &value)
const Aws::String & GetNextToken() const
ListDocumentsRequest & WithDocumentFilterList(const Aws::Vector< DocumentFilter > &value)
ListDocumentsRequest & WithFilters(Aws::Vector< DocumentKeyValuesFilter > &&value)
const Aws::Vector< DocumentFilter > & GetDocumentFilterList() const
ListDocumentsRequest & AddFilters(const DocumentKeyValuesFilter &value)
ListDocumentsRequest & AddFilters(DocumentKeyValuesFilter &&value)
void SetDocumentFilterList(Aws::Vector< DocumentFilter > &&value)
void SetDocumentFilterList(const Aws::Vector< DocumentFilter > &value)
virtual const char * GetServiceRequestName() const override
ListDocumentsRequest & WithNextToken(Aws::String &&value)
ListDocumentsRequest & AddDocumentFilterList(DocumentFilter &&value)
ListDocumentsRequest & WithNextToken(const Aws::String &value)
ListDocumentsRequest & AddDocumentFilterList(const DocumentFilter &value)
const Aws::Vector< DocumentKeyValuesFilter > & GetFilters() const
ListDocumentsRequest & WithFilters(const Aws::Vector< DocumentKeyValuesFilter > &value)
void SetNextToken(const Aws::String &value)
ListDocumentsRequest & WithMaxResults(int value)
void SetFilters(Aws::Vector< DocumentKeyValuesFilter > &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSM_API Aws::String SerializePayload() const override
ListDocumentsRequest & WithDocumentFilterList(Aws::Vector< DocumentFilter > &&value)
ListDocumentsRequest & WithNextToken(const char *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