AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
41 inline Ownership GetOwner() const { return m_owner; }
42 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
43 inline void SetOwner(Ownership value) {
44 m_ownerHasBeenSet = true;
45 m_owner = value;
46 }
48 SetOwner(value);
49 return *this;
50 }
52
54
61 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 template <typename FiltersT = Aws::Vector<Filter>>
64 void SetFilters(FiltersT&& value) {
65 m_filtersHasBeenSet = true;
66 m_filters = std::forward<FiltersT>(value);
67 }
68 template <typename FiltersT = Aws::Vector<Filter>>
70 SetFilters(std::forward<FiltersT>(value));
71 return *this;
72 }
73 template <typename FiltersT = Filter>
74 ListComponentsRequest& AddFilters(FiltersT&& value) {
75 m_filtersHasBeenSet = true;
76 m_filters.emplace_back(std::forward<FiltersT>(value));
77 return *this;
78 }
80
82
85 inline bool GetByName() const { return m_byName; }
86 inline bool ByNameHasBeenSet() const { return m_byNameHasBeenSet; }
87 inline void SetByName(bool value) {
88 m_byNameHasBeenSet = true;
89 m_byName = value;
90 }
91 inline ListComponentsRequest& WithByName(bool value) {
92 SetByName(value);
93 return *this;
94 }
96
98
101 inline int GetMaxResults() const { return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) {
104 m_maxResultsHasBeenSet = true;
105 m_maxResults = value;
106 }
108 SetMaxResults(value);
109 return *this;
110 }
112
114
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 template <typename NextTokenT = Aws::String>
121 void SetNextToken(NextTokenT&& value) {
122 m_nextTokenHasBeenSet = true;
123 m_nextToken = std::forward<NextTokenT>(value);
124 }
125 template <typename NextTokenT = Aws::String>
127 SetNextToken(std::forward<NextTokenT>(value));
128 return *this;
129 }
131 private:
133
134 Aws::Vector<Filter> m_filters;
135
136 bool m_byName{false};
137
138 int m_maxResults{0};
139
140 Aws::String m_nextToken;
141 bool m_ownerHasBeenSet = false;
142 bool m_filtersHasBeenSet = false;
143 bool m_byNameHasBeenSet = false;
144 bool m_maxResultsHasBeenSet = false;
145 bool m_nextTokenHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace imagebuilder
150} // 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