AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
ListAssetsRequest.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/outposts/OutpostsRequest.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/AssetState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace Outposts {
20namespace Model {
21
25 public:
26 AWS_OUTPOSTS_API ListAssetsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListAssets"; }
33
34 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
35
36 AWS_OUTPOSTS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetOutpostIdentifier() const { return m_outpostIdentifier; }
43 inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
44 template <typename OutpostIdentifierT = Aws::String>
45 void SetOutpostIdentifier(OutpostIdentifierT&& value) {
46 m_outpostIdentifierHasBeenSet = true;
47 m_outpostIdentifier = std::forward<OutpostIdentifierT>(value);
48 }
49 template <typename OutpostIdentifierT = Aws::String>
50 ListAssetsRequest& WithOutpostIdentifier(OutpostIdentifierT&& value) {
51 SetOutpostIdentifier(std::forward<OutpostIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetHostIdFilter() const { return m_hostIdFilter; }
61 inline bool HostIdFilterHasBeenSet() const { return m_hostIdFilterHasBeenSet; }
62 template <typename HostIdFilterT = Aws::Vector<Aws::String>>
63 void SetHostIdFilter(HostIdFilterT&& value) {
64 m_hostIdFilterHasBeenSet = true;
65 m_hostIdFilter = std::forward<HostIdFilterT>(value);
66 }
67 template <typename HostIdFilterT = Aws::Vector<Aws::String>>
68 ListAssetsRequest& WithHostIdFilter(HostIdFilterT&& value) {
69 SetHostIdFilter(std::forward<HostIdFilterT>(value));
70 return *this;
71 }
72 template <typename HostIdFilterT = Aws::String>
73 ListAssetsRequest& AddHostIdFilter(HostIdFilterT&& value) {
74 m_hostIdFilterHasBeenSet = true;
75 m_hostIdFilter.emplace_back(std::forward<HostIdFilterT>(value));
76 return *this;
77 }
79
81
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) {
85 m_maxResultsHasBeenSet = true;
86 m_maxResults = value;
87 }
88 inline ListAssetsRequest& WithMaxResults(int value) {
89 SetMaxResults(value);
90 return *this;
91 }
93
95
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template <typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) {
100 m_nextTokenHasBeenSet = true;
101 m_nextToken = std::forward<NextTokenT>(value);
102 }
103 template <typename NextTokenT = Aws::String>
104 ListAssetsRequest& WithNextToken(NextTokenT&& value) {
105 SetNextToken(std::forward<NextTokenT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<AssetState>& GetStatusFilter() const { return m_statusFilter; }
115 inline bool StatusFilterHasBeenSet() const { return m_statusFilterHasBeenSet; }
116 template <typename StatusFilterT = Aws::Vector<AssetState>>
117 void SetStatusFilter(StatusFilterT&& value) {
118 m_statusFilterHasBeenSet = true;
119 m_statusFilter = std::forward<StatusFilterT>(value);
120 }
121 template <typename StatusFilterT = Aws::Vector<AssetState>>
122 ListAssetsRequest& WithStatusFilter(StatusFilterT&& value) {
123 SetStatusFilter(std::forward<StatusFilterT>(value));
124 return *this;
125 }
127 m_statusFilterHasBeenSet = true;
128 m_statusFilter.push_back(value);
129 return *this;
130 }
132 private:
133 Aws::String m_outpostIdentifier;
134
135 Aws::Vector<Aws::String> m_hostIdFilter;
136
137 int m_maxResults{0};
138
139 Aws::String m_nextToken;
140
141 Aws::Vector<AssetState> m_statusFilter;
142 bool m_outpostIdentifierHasBeenSet = false;
143 bool m_hostIdFilterHasBeenSet = false;
144 bool m_maxResultsHasBeenSet = false;
145 bool m_nextTokenHasBeenSet = false;
146 bool m_statusFilterHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace Outposts
151} // namespace Aws
const Aws::String & GetNextToken() const
ListAssetsRequest & WithHostIdFilter(HostIdFilterT &&value)
ListAssetsRequest & WithOutpostIdentifier(OutpostIdentifierT &&value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
const Aws::Vector< AssetState > & GetStatusFilter() const
void SetHostIdFilter(HostIdFilterT &&value)
ListAssetsRequest & WithStatusFilter(StatusFilterT &&value)
ListAssetsRequest & AddHostIdFilter(HostIdFilterT &&value)
const Aws::Vector< Aws::String > & GetHostIdFilter() const
ListAssetsRequest & WithMaxResults(int value)
AWS_OUTPOSTS_API ListAssetsRequest()=default
const Aws::String & GetOutpostIdentifier() const
ListAssetsRequest & AddStatusFilter(AssetState value)
virtual const char * GetServiceRequestName() const override
ListAssetsRequest & WithNextToken(NextTokenT &&value)
AWS_OUTPOSTS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetOutpostIdentifier(OutpostIdentifierT &&value)
void SetStatusFilter(StatusFilterT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector