AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ListCollectionsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition {
24namespace Model {
26 public:
27 AWS_REKOGNITION_API ListCollectionsResult() = default;
30
32
35 inline const Aws::Vector<Aws::String>& GetCollectionIds() const { return m_collectionIds; }
36 template <typename CollectionIdsT = Aws::Vector<Aws::String>>
37 void SetCollectionIds(CollectionIdsT&& value) {
38 m_collectionIdsHasBeenSet = true;
39 m_collectionIds = std::forward<CollectionIdsT>(value);
40 }
41 template <typename CollectionIdsT = Aws::Vector<Aws::String>>
42 ListCollectionsResult& WithCollectionIds(CollectionIdsT&& value) {
43 SetCollectionIds(std::forward<CollectionIdsT>(value));
44 return *this;
45 }
46 template <typename CollectionIdsT = Aws::String>
47 ListCollectionsResult& AddCollectionIds(CollectionIdsT&& value) {
48 m_collectionIdsHasBeenSet = true;
49 m_collectionIds.emplace_back(std::forward<CollectionIdsT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
67 ListCollectionsResult& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::Vector<Aws::String>& GetFaceModelVersions() const { return m_faceModelVersions; }
81 template <typename FaceModelVersionsT = Aws::Vector<Aws::String>>
82 void SetFaceModelVersions(FaceModelVersionsT&& value) {
83 m_faceModelVersionsHasBeenSet = true;
84 m_faceModelVersions = std::forward<FaceModelVersionsT>(value);
85 }
86 template <typename FaceModelVersionsT = Aws::Vector<Aws::String>>
87 ListCollectionsResult& WithFaceModelVersions(FaceModelVersionsT&& value) {
88 SetFaceModelVersions(std::forward<FaceModelVersionsT>(value));
89 return *this;
90 }
91 template <typename FaceModelVersionsT = Aws::String>
92 ListCollectionsResult& AddFaceModelVersions(FaceModelVersionsT&& value) {
93 m_faceModelVersionsHasBeenSet = true;
94 m_faceModelVersions.emplace_back(std::forward<FaceModelVersionsT>(value));
95 return *this;
96 }
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template <typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) {
104 m_requestIdHasBeenSet = true;
105 m_requestId = std::forward<RequestIdT>(value);
106 }
107 template <typename RequestIdT = Aws::String>
109 SetRequestId(std::forward<RequestIdT>(value));
110 return *this;
111 }
113 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
114
115 private:
116 Aws::Vector<Aws::String> m_collectionIds;
117
118 Aws::String m_nextToken;
119
120 Aws::Vector<Aws::String> m_faceModelVersions;
121
122 Aws::String m_requestId;
123 Aws::Http::HttpResponseCode m_HttpResponseCode;
124 bool m_collectionIdsHasBeenSet = false;
125 bool m_nextTokenHasBeenSet = false;
126 bool m_faceModelVersionsHasBeenSet = false;
127 bool m_requestIdHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Rekognition
132} // namespace Aws
AWS_REKOGNITION_API ListCollectionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListCollectionsResult & AddCollectionIds(CollectionIdsT &&value)
ListCollectionsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetFaceModelVersions() const
ListCollectionsResult & WithCollectionIds(CollectionIdsT &&value)
AWS_REKOGNITION_API ListCollectionsResult()=default
AWS_REKOGNITION_API ListCollectionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetCollectionIds() const
ListCollectionsResult & WithFaceModelVersions(FaceModelVersionsT &&value)
void SetFaceModelVersions(FaceModelVersionsT &&value)
ListCollectionsResult & WithNextToken(NextTokenT &&value)
ListCollectionsResult & AddFaceModelVersions(FaceModelVersionsT &&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