AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
ListComponentsRequest.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/imagebuilder/ImagebuilderRequest.h>
10#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
11#include <aws/imagebuilder/model/Filter.h>
12#include <aws/imagebuilder/model/Ownership.h>
13
14#include <utility>
15
16namespace Aws {
17namespace imagebuilder {
18namespace Model {
19
23 public:
24 AWS_IMAGEBUILDER_API ListComponentsRequest() = 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 "ListComponents"; }
31
32 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
33
35
42 inline Ownership GetOwner() const { return m_owner; }
43 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
44 inline void SetOwner(Ownership value) {
45 m_ownerHasBeenSet = true;
46 m_owner = value;
47 }
49 SetOwner(value);
50 return *this;
51 }
53
55
63 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
64 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
65 template <typename FiltersT = Aws::Vector<Filter>>
66 void SetFilters(FiltersT&& value) {
67 m_filtersHasBeenSet = true;
68 m_filters = std::forward<FiltersT>(value);
69 }
70 template <typename FiltersT = Aws::Vector<Filter>>
72 SetFilters(std::forward<FiltersT>(value));
73 return *this;
74 }
75 template <typename FiltersT = Filter>
76 ListComponentsRequest& AddFilters(FiltersT&& value) {
77 m_filtersHasBeenSet = true;
78 m_filters.emplace_back(std::forward<FiltersT>(value));
79 return *this;
80 }
82
84
90 inline bool GetByName() const { return m_byName; }
91 inline bool ByNameHasBeenSet() const { return m_byNameHasBeenSet; }
92 inline void SetByName(bool value) {
93 m_byNameHasBeenSet = true;
94 m_byName = value;
95 }
96 inline ListComponentsRequest& WithByName(bool value) {
97 SetByName(value);
98 return *this;
99 }
101
103
106 inline int GetMaxResults() const { return m_maxResults; }
107 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
108 inline void SetMaxResults(int value) {
109 m_maxResultsHasBeenSet = true;
110 m_maxResults = value;
111 }
113 SetMaxResults(value);
114 return *this;
115 }
117
119
123 inline const Aws::String& GetNextToken() const { return m_nextToken; }
124 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
125 template <typename NextTokenT = Aws::String>
126 void SetNextToken(NextTokenT&& value) {
127 m_nextTokenHasBeenSet = true;
128 m_nextToken = std::forward<NextTokenT>(value);
129 }
130 template <typename NextTokenT = Aws::String>
132 SetNextToken(std::forward<NextTokenT>(value));
133 return *this;
134 }
136 private:
138
139 Aws::Vector<Filter> m_filters;
140
141 bool m_byName{false};
142
143 int m_maxResults{0};
144
145 Aws::String m_nextToken;
146 bool m_ownerHasBeenSet = false;
147 bool m_filtersHasBeenSet = false;
148 bool m_byNameHasBeenSet = false;
149 bool m_maxResultsHasBeenSet = false;
150 bool m_nextTokenHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace imagebuilder
155} // namespace Aws
ListComponentsRequest & AddFilters(FiltersT &&value)
ListComponentsRequest & WithNextToken(NextTokenT &&value)
AWS_IMAGEBUILDER_API ListComponentsRequest()=default
virtual const char * GetServiceRequestName() const override
ListComponentsRequest & WithByName(bool value)
ListComponentsRequest & WithOwner(Ownership value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
ListComponentsRequest & WithMaxResults(int value)
const Aws::Vector< Filter > & GetFilters() const
ListComponentsRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector