AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchResult.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/SearchInventoryResultItem.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 SearchResult();
35
36
38
41 inline const Aws::Vector<SearchInventoryResultItem>& GetItems() const{ return m_items; }
42 inline void SetItems(const Aws::Vector<SearchInventoryResultItem>& value) { m_items = value; }
43 inline void SetItems(Aws::Vector<SearchInventoryResultItem>&& value) { m_items = std::move(value); }
44 inline SearchResult& WithItems(const Aws::Vector<SearchInventoryResultItem>& value) { SetItems(value); return *this;}
45 inline SearchResult& WithItems(Aws::Vector<SearchInventoryResultItem>&& value) { SetItems(std::move(value)); return *this;}
46 inline SearchResult& AddItems(const SearchInventoryResultItem& value) { m_items.push_back(value); return *this; }
47 inline SearchResult& AddItems(SearchInventoryResultItem&& 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 SearchResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
64 inline SearchResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
65 inline SearchResult& 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 SearchResult& 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 SearchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline SearchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline SearchResult& 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 char *value)
const Aws::String & GetNextToken() const
void SetRequestId(const Aws::String &value)
void SetRequestId(Aws::String &&value)
SearchResult & WithNextToken(Aws::String &&value)
SearchResult & WithNextToken(const char *value)
SearchResult & WithRequestId(const char *value)
SearchResult & WithItems(Aws::Vector< SearchInventoryResultItem > &&value)
SearchResult & WithRequestId(Aws::String &&value)
SearchResult & WithNextToken(const Aws::String &value)
AWS_DATAZONE_API SearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetItems(Aws::Vector< SearchInventoryResultItem > &&value)
void SetNextToken(const Aws::String &value)
void SetNextToken(Aws::String &&value)
const Aws::String & GetRequestId() const
SearchResult & AddItems(SearchInventoryResultItem &&value)
SearchResult & AddItems(const SearchInventoryResultItem &value)
AWS_DATAZONE_API SearchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchResult & WithRequestId(const Aws::String &value)
SearchResult & WithItems(const Aws::Vector< SearchInventoryResultItem > &value)
void SetItems(const Aws::Vector< SearchInventoryResultItem > &value)
SearchResult & WithTotalMatchCount(int value)
const Aws::Vector< SearchInventoryResultItem > & GetItems() const
void SetNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue