AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ListDeploymentsRequest.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/launch-wizard/LaunchWizardRequest.h>
10#include <aws/launch-wizard/LaunchWizard_EXPORTS.h>
11#include <aws/launch-wizard/model/DeploymentFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LaunchWizard {
17namespace Model {
18
22 public:
23 AWS_LAUNCHWIZARD_API ListDeploymentsRequest() = 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 "ListDeployments"; }
30
31 AWS_LAUNCHWIZARD_API Aws::String SerializePayload() const override;
32
34
43 inline const Aws::Vector<DeploymentFilter>& GetFilters() const { return m_filters; }
44 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
45 template <typename FiltersT = Aws::Vector<DeploymentFilter>>
46 void SetFilters(FiltersT&& value) {
47 m_filtersHasBeenSet = true;
48 m_filters = std::forward<FiltersT>(value);
49 }
50 template <typename FiltersT = Aws::Vector<DeploymentFilter>>
52 SetFilters(std::forward<FiltersT>(value));
53 return *this;
54 }
55 template <typename FiltersT = DeploymentFilter>
57 m_filtersHasBeenSet = true;
58 m_filters.emplace_back(std::forward<FiltersT>(value));
59 return *this;
60 }
62
64
68 inline int GetMaxResults() const { return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) {
71 m_maxResultsHasBeenSet = true;
72 m_maxResults = value;
73 }
75 SetMaxResults(value);
76 return *this;
77 }
79
81
85 inline const Aws::String& GetNextToken() const { return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 template <typename NextTokenT = Aws::String>
88 void SetNextToken(NextTokenT&& value) {
89 m_nextTokenHasBeenSet = true;
90 m_nextToken = std::forward<NextTokenT>(value);
91 }
92 template <typename NextTokenT = Aws::String>
94 SetNextToken(std::forward<NextTokenT>(value));
95 return *this;
96 }
98 private:
100
101 int m_maxResults{0};
102
103 Aws::String m_nextToken;
104 bool m_filtersHasBeenSet = false;
105 bool m_maxResultsHasBeenSet = false;
106 bool m_nextTokenHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace LaunchWizard
111} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListDeploymentsRequest & WithFilters(FiltersT &&value)
const Aws::Vector< DeploymentFilter > & GetFilters() const
ListDeploymentsRequest & AddFilters(FiltersT &&value)
ListDeploymentsRequest & WithNextToken(NextTokenT &&value)
AWS_LAUNCHWIZARD_API Aws::String SerializePayload() const override
AWS_LAUNCHWIZARD_API ListDeploymentsRequest()=default
ListDeploymentsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector