AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
CreateCollectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Rekognition {
23namespace Model {
25 public:
26 AWS_REKOGNITION_API CreateCollectionResult() = default;
29
31
34 inline int GetStatusCode() const { return m_statusCode; }
35 inline void SetStatusCode(int value) {
36 m_statusCodeHasBeenSet = true;
37 m_statusCode = value;
38 }
40 SetStatusCode(value);
41 return *this;
42 }
44
46
50 inline const Aws::String& GetCollectionArn() const { return m_collectionArn; }
51 template <typename CollectionArnT = Aws::String>
52 void SetCollectionArn(CollectionArnT&& value) {
53 m_collectionArnHasBeenSet = true;
54 m_collectionArn = std::forward<CollectionArnT>(value);
55 }
56 template <typename CollectionArnT = Aws::String>
57 CreateCollectionResult& WithCollectionArn(CollectionArnT&& value) {
58 SetCollectionArn(std::forward<CollectionArnT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
69 template <typename FaceModelVersionT = Aws::String>
70 void SetFaceModelVersion(FaceModelVersionT&& value) {
71 m_faceModelVersionHasBeenSet = true;
72 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
73 }
74 template <typename FaceModelVersionT = Aws::String>
75 CreateCollectionResult& WithFaceModelVersion(FaceModelVersionT&& value) {
76 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 int m_statusCode{0};
99
100 Aws::String m_collectionArn;
101
102 Aws::String m_faceModelVersion;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_statusCodeHasBeenSet = false;
107 bool m_collectionArnHasBeenSet = false;
108 bool m_faceModelVersionHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Rekognition
114} // namespace Aws
CreateCollectionResult & WithRequestId(RequestIdT &&value)
CreateCollectionResult & WithStatusCode(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_REKOGNITION_API CreateCollectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateCollectionResult & WithFaceModelVersion(FaceModelVersionT &&value)
AWS_REKOGNITION_API CreateCollectionResult()=default
CreateCollectionResult & WithCollectionArn(CollectionArnT &&value)
AWS_REKOGNITION_API CreateCollectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue