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/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/resource-explorer-2/model/ResourceCount.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resource-explorer-2/model/Resource.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ResourceExplorer2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_RESOURCEEXPLORER2_API SearchResult();
36
37
39
42 inline const ResourceCount& GetCount() const{ return m_count; }
43 inline void SetCount(const ResourceCount& value) { m_count = value; }
44 inline void SetCount(ResourceCount&& value) { m_count = std::move(value); }
45 inline SearchResult& WithCount(const ResourceCount& value) { SetCount(value); return *this;}
46 inline SearchResult& WithCount(ResourceCount&& value) { SetCount(std::move(value)); return *this;}
48
50
57 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
58 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
59 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
60 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
61 inline SearchResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
62 inline SearchResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
63 inline SearchResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
65
67
70 inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
71 inline void SetResources(const Aws::Vector<Resource>& value) { m_resources = value; }
72 inline void SetResources(Aws::Vector<Resource>&& value) { m_resources = std::move(value); }
73 inline SearchResult& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
74 inline SearchResult& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
75 inline SearchResult& AddResources(const Resource& value) { m_resources.push_back(value); return *this; }
76 inline SearchResult& AddResources(Resource&& value) { m_resources.push_back(std::move(value)); return *this; }
78
80
86 inline const Aws::String& GetViewArn() const{ return m_viewArn; }
87 inline void SetViewArn(const Aws::String& value) { m_viewArn = value; }
88 inline void SetViewArn(Aws::String&& value) { m_viewArn = std::move(value); }
89 inline void SetViewArn(const char* value) { m_viewArn.assign(value); }
90 inline SearchResult& WithViewArn(const Aws::String& value) { SetViewArn(value); return *this;}
91 inline SearchResult& WithViewArn(Aws::String&& value) { SetViewArn(std::move(value)); return *this;}
92 inline SearchResult& WithViewArn(const char* value) { SetViewArn(value); return *this;}
94
96
97 inline const Aws::String& GetRequestId() const{ return m_requestId; }
98 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
99 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
100 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
101 inline SearchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
102 inline SearchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
103 inline SearchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
105 private:
106
107 ResourceCount m_count;
108
109 Aws::String m_nextToken;
110
111 Aws::Vector<Resource> m_resources;
112
113 Aws::String m_viewArn;
114
115 Aws::String m_requestId;
116 };
117
118} // namespace Model
119} // namespace ResourceExplorer2
120} // namespace Aws
SearchResult & WithResources(Aws::Vector< Resource > &&value)
void SetViewArn(const Aws::String &value)
SearchResult & WithViewArn(const char *value)
const Aws::String & GetNextToken() const
void SetCount(const ResourceCount &value)
SearchResult & WithNextToken(Aws::String &&value)
SearchResult & WithRequestId(const Aws::String &value)
SearchResult & AddResources(const Resource &value)
AWS_RESOURCEEXPLORER2_API SearchResult()
SearchResult & WithNextToken(const char *value)
SearchResult & WithViewArn(const Aws::String &value)
void SetRequestId(const Aws::String &value)
SearchResult & WithRequestId(Aws::String &&value)
void SetResources(const Aws::Vector< Resource > &value)
AWS_RESOURCEEXPLORER2_API SearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchResult & WithCount(ResourceCount &&value)
AWS_RESOURCEEXPLORER2_API SearchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetViewArn() const
const ResourceCount & GetCount() const
SearchResult & WithCount(const ResourceCount &value)
SearchResult & WithRequestId(const char *value)
const Aws::String & GetRequestId() const
SearchResult & AddResources(Resource &&value)
SearchResult & WithViewArn(Aws::String &&value)
void SetCount(ResourceCount &&value)
const Aws::Vector< Resource > & GetResources() const
SearchResult & WithNextToken(const Aws::String &value)
void SetNextToken(const Aws::String &value)
void SetResources(Aws::Vector< Resource > &&value)
SearchResult & WithResources(const Aws::Vector< Resource > &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