AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchListingsResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/SearchResultItem.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DataZone
26{
27namespace Model
28{
30 {
31 public:
32 AWS_DATAZONE_API SearchListingsResult();
35
36
38
41 inline const Aws::Vector<SearchResultItem>& GetItems() const{ return m_items; }
42 inline void SetItems(const Aws::Vector<SearchResultItem>& value) { m_items = value; }
43 inline void SetItems(Aws::Vector<SearchResultItem>&& value) { m_items = std::move(value); }
44 inline SearchListingsResult& WithItems(const Aws::Vector<SearchResultItem>& value) { SetItems(value); return *this;}
45 inline SearchListingsResult& WithItems(Aws::Vector<SearchResultItem>&& value) { SetItems(std::move(value)); return *this;}
46 inline SearchListingsResult& AddItems(const SearchResultItem& value) { m_items.push_back(value); return *this; }
47 inline SearchListingsResult& AddItems(SearchResultItem&& value) { m_items.push_back(std::move(value)); return *this; }
49
51
59 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
60 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
61 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
62 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
63 inline SearchListingsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
64 inline SearchListingsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
65 inline SearchListingsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
67
69
72 inline int GetTotalMatchCount() const{ return m_totalMatchCount; }
73 inline void SetTotalMatchCount(int value) { m_totalMatchCount = value; }
74 inline SearchListingsResult& WithTotalMatchCount(int value) { SetTotalMatchCount(value); return *this;}
76
78
79 inline const Aws::String& GetRequestId() const{ return m_requestId; }
80 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
81 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
82 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
83 inline SearchListingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline SearchListingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline SearchListingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
90
91 Aws::String m_nextToken;
92
93 int m_totalMatchCount;
94
95 Aws::String m_requestId;
96 };
97
98} // namespace Model
99} // namespace DataZone
100} // namespace Aws
void SetRequestId(const Aws::String &value)
void SetItems(const Aws::Vector< SearchResultItem > &value)
SearchListingsResult & WithNextToken(const char *value)
SearchListingsResult & AddItems(SearchResultItem &&value)
SearchListingsResult & WithItems(const Aws::Vector< SearchResultItem > &value)
SearchListingsResult & WithTotalMatchCount(int value)
void SetNextToken(const Aws::String &value)
AWS_DATAZONE_API SearchListingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchListingsResult & WithNextToken(const Aws::String &value)
const Aws::Vector< SearchResultItem > & GetItems() const
SearchListingsResult & WithItems(Aws::Vector< SearchResultItem > &&value)
void SetItems(Aws::Vector< SearchResultItem > &&value)
SearchListingsResult & WithRequestId(Aws::String &&value)
SearchListingsResult & WithRequestId(const Aws::String &value)
SearchListingsResult & WithNextToken(Aws::String &&value)
SearchListingsResult & AddItems(const SearchResultItem &value)
SearchListingsResult & WithRequestId(const char *value)
AWS_DATAZONE_API SearchListingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue