AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListComponentsRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/imagebuilder/model/Ownership.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/imagebuilder/model/Filter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace imagebuilder
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IMAGEBUILDER_API ListComponentsRequest() = 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 "ListComponents"; }
34
35 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
36
37
39
45 inline Ownership GetOwner() const { return m_owner; }
46 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
47 inline void SetOwner(Ownership value) { m_ownerHasBeenSet = true; m_owner = value; }
48 inline ListComponentsRequest& WithOwner(Ownership value) { SetOwner(value); return *this;}
50
52
59 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 template<typename FiltersT = Aws::Vector<Filter>>
62 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
63 template<typename FiltersT = Aws::Vector<Filter>>
64 ListComponentsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
65 template<typename FiltersT = Filter>
66 ListComponentsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
68
70
73 inline bool GetByName() const { return m_byName; }
74 inline bool ByNameHasBeenSet() const { return m_byNameHasBeenSet; }
75 inline void SetByName(bool value) { m_byNameHasBeenSet = true; m_byName = value; }
76 inline ListComponentsRequest& WithByName(bool value) { SetByName(value); return *this;}
78
80
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
86 inline ListComponentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
88
90
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template<typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
98 template<typename NextTokenT = Aws::String>
99 ListComponentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
101 private:
102
104 bool m_ownerHasBeenSet = false;
105
106 Aws::Vector<Filter> m_filters;
107 bool m_filtersHasBeenSet = false;
108
109 bool m_byName{false};
110 bool m_byNameHasBeenSet = false;
111
112 int m_maxResults{0};
113 bool m_maxResultsHasBeenSet = false;
114
115 Aws::String m_nextToken;
116 bool m_nextTokenHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace imagebuilder
121} // 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