AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOutpostIdentifier(const Aws::String& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = value; }
50 inline void SetOutpostIdentifier(Aws::String&& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = std::move(value); }
51 inline void SetOutpostIdentifier(const char* value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier.assign(value); }
52 inline ListAssetsRequest& WithOutpostIdentifier(const Aws::String& value) { SetOutpostIdentifier(value); return *this;}
53 inline ListAssetsRequest& WithOutpostIdentifier(Aws::String&& value) { SetOutpostIdentifier(std::move(value)); return *this;}
54 inline ListAssetsRequest& WithOutpostIdentifier(const char* value) { SetOutpostIdentifier(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetHostIdFilter() const{ return m_hostIdFilter; }
62 inline bool HostIdFilterHasBeenSet() const { return m_hostIdFilterHasBeenSet; }
63 inline void SetHostIdFilter(const Aws::Vector<Aws::String>& value) { m_hostIdFilterHasBeenSet = true; m_hostIdFilter = value; }
64 inline void SetHostIdFilter(Aws::Vector<Aws::String>&& value) { m_hostIdFilterHasBeenSet = true; m_hostIdFilter = std::move(value); }
65 inline ListAssetsRequest& WithHostIdFilter(const Aws::Vector<Aws::String>& value) { SetHostIdFilter(value); return *this;}
66 inline ListAssetsRequest& WithHostIdFilter(Aws::Vector<Aws::String>&& value) { SetHostIdFilter(std::move(value)); return *this;}
67 inline ListAssetsRequest& AddHostIdFilter(const Aws::String& value) { m_hostIdFilterHasBeenSet = true; m_hostIdFilter.push_back(value); return *this; }
68 inline ListAssetsRequest& AddHostIdFilter(Aws::String&& value) { m_hostIdFilterHasBeenSet = true; m_hostIdFilter.push_back(std::move(value)); return *this; }
69 inline ListAssetsRequest& AddHostIdFilter(const char* value) { m_hostIdFilterHasBeenSet = true; m_hostIdFilter.push_back(value); return *this; }
71
73
74 inline int GetMaxResults() const{ return m_maxResults; }
75 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
77 inline ListAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
79
81
82 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 inline ListAssetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 inline ListAssetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 inline ListAssetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91
93
96 inline const Aws::Vector<AssetState>& GetStatusFilter() const{ return m_statusFilter; }
97 inline bool StatusFilterHasBeenSet() const { return m_statusFilterHasBeenSet; }
98 inline void SetStatusFilter(const Aws::Vector<AssetState>& value) { m_statusFilterHasBeenSet = true; m_statusFilter = value; }
99 inline void SetStatusFilter(Aws::Vector<AssetState>&& value) { m_statusFilterHasBeenSet = true; m_statusFilter = std::move(value); }
100 inline ListAssetsRequest& WithStatusFilter(const Aws::Vector<AssetState>& value) { SetStatusFilter(value); return *this;}
101 inline ListAssetsRequest& WithStatusFilter(Aws::Vector<AssetState>&& value) { SetStatusFilter(std::move(value)); return *this;}
102 inline ListAssetsRequest& AddStatusFilter(const AssetState& value) { m_statusFilterHasBeenSet = true; m_statusFilter.push_back(value); return *this; }
103 inline ListAssetsRequest& AddStatusFilter(AssetState&& value) { m_statusFilterHasBeenSet = true; m_statusFilter.push_back(std::move(value)); return *this; }
105 private:
106
107 Aws::String m_outpostIdentifier;
108 bool m_outpostIdentifierHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_hostIdFilter;
111 bool m_hostIdFilterHasBeenSet = false;
112
113 int m_maxResults;
114 bool m_maxResultsHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118
119 Aws::Vector<AssetState> m_statusFilter;
120 bool m_statusFilterHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Outposts
125} // namespace Aws
ListAssetsRequest & AddStatusFilter(AssetState &&value)
const Aws::String & GetNextToken() const
ListAssetsRequest & WithStatusFilter(Aws::Vector< AssetState > &&value)
void SetOutpostIdentifier(Aws::String &&value)
ListAssetsRequest & AddHostIdFilter(const Aws::String &value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
ListAssetsRequest & WithOutpostIdentifier(Aws::String &&value)
void SetHostIdFilter(const Aws::Vector< Aws::String > &value)
const Aws::Vector< AssetState > & GetStatusFilter() const
ListAssetsRequest & AddHostIdFilter(Aws::String &&value)
ListAssetsRequest & WithHostIdFilter(Aws::Vector< Aws::String > &&value)
ListAssetsRequest & WithOutpostIdentifier(const Aws::String &value)
ListAssetsRequest & WithOutpostIdentifier(const char *value)
const Aws::Vector< Aws::String > & GetHostIdFilter() const
ListAssetsRequest & WithMaxResults(int value)
void SetStatusFilter(Aws::Vector< AssetState > &&value)
ListAssetsRequest & WithStatusFilter(const Aws::Vector< AssetState > &value)
void SetNextToken(const Aws::String &value)
const Aws::String & GetOutpostIdentifier() const
virtual const char * GetServiceRequestName() const override
ListAssetsRequest & WithNextToken(Aws::String &&value)
ListAssetsRequest & WithNextToken(const char *value)
void SetStatusFilter(const Aws::Vector< AssetState > &value)
void SetHostIdFilter(Aws::Vector< Aws::String > &&value)
void SetOutpostIdentifier(const Aws::String &value)
ListAssetsRequest & AddHostIdFilter(const char *value)
AWS_OUTPOSTS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAssetsRequest & WithHostIdFilter(const Aws::Vector< Aws::String > &value)
ListAssetsRequest & WithNextToken(const Aws::String &value)
ListAssetsRequest & AddStatusFilter(const AssetState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector