AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListAssetsRequest.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/outposts/OutpostsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/outposts/model/AssetState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace Outposts
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_OUTPOSTS_API ListAssetsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListAssets"; }
37
38 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
39
40 AWS_OUTPOSTS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetOutpostIdentifier() const { return m_outpostIdentifier; }
48 inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
49 template<typename OutpostIdentifierT = Aws::String>
50 void SetOutpostIdentifier(OutpostIdentifierT&& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = std::forward<OutpostIdentifierT>(value); }
51 template<typename OutpostIdentifierT = Aws::String>
52 ListAssetsRequest& WithOutpostIdentifier(OutpostIdentifierT&& value) { SetOutpostIdentifier(std::forward<OutpostIdentifierT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetHostIdFilter() const { return m_hostIdFilter; }
60 inline bool HostIdFilterHasBeenSet() const { return m_hostIdFilterHasBeenSet; }
61 template<typename HostIdFilterT = Aws::Vector<Aws::String>>
62 void SetHostIdFilter(HostIdFilterT&& value) { m_hostIdFilterHasBeenSet = true; m_hostIdFilter = std::forward<HostIdFilterT>(value); }
63 template<typename HostIdFilterT = Aws::Vector<Aws::String>>
64 ListAssetsRequest& WithHostIdFilter(HostIdFilterT&& value) { SetHostIdFilter(std::forward<HostIdFilterT>(value)); return *this;}
65 template<typename HostIdFilterT = Aws::String>
66 ListAssetsRequest& AddHostIdFilter(HostIdFilterT&& value) { m_hostIdFilterHasBeenSet = true; m_hostIdFilter.emplace_back(std::forward<HostIdFilterT>(value)); return *this; }
68
70
71 inline int GetMaxResults() const { return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline ListAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template<typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
83 template<typename NextTokenT = Aws::String>
84 ListAssetsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
86
88
91 inline const Aws::Vector<AssetState>& GetStatusFilter() const { return m_statusFilter; }
92 inline bool StatusFilterHasBeenSet() const { return m_statusFilterHasBeenSet; }
93 template<typename StatusFilterT = Aws::Vector<AssetState>>
94 void SetStatusFilter(StatusFilterT&& value) { m_statusFilterHasBeenSet = true; m_statusFilter = std::forward<StatusFilterT>(value); }
95 template<typename StatusFilterT = Aws::Vector<AssetState>>
96 ListAssetsRequest& WithStatusFilter(StatusFilterT&& value) { SetStatusFilter(std::forward<StatusFilterT>(value)); return *this;}
97 inline ListAssetsRequest& AddStatusFilter(AssetState value) { m_statusFilterHasBeenSet = true; m_statusFilter.push_back(value); return *this; }
99 private:
100
101 Aws::String m_outpostIdentifier;
102 bool m_outpostIdentifierHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_hostIdFilter;
105 bool m_hostIdFilterHasBeenSet = false;
106
107 int m_maxResults{0};
108 bool m_maxResultsHasBeenSet = false;
109
110 Aws::String m_nextToken;
111 bool m_nextTokenHasBeenSet = false;
112
113 Aws::Vector<AssetState> m_statusFilter;
114 bool m_statusFilterHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Outposts
119} // 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