AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateCollectionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition {
22namespace Model {
24 public:
25 AWS_REKOGNITION_API CreateCollectionResult() = default;
28
30
33 inline int GetStatusCode() const { return m_statusCode; }
34 inline void SetStatusCode(int value) {
35 m_statusCodeHasBeenSet = true;
36 m_statusCode = value;
37 }
39 SetStatusCode(value);
40 return *this;
41 }
43
45
49 inline const Aws::String& GetCollectionArn() const { return m_collectionArn; }
50 template <typename CollectionArnT = Aws::String>
51 void SetCollectionArn(CollectionArnT&& value) {
52 m_collectionArnHasBeenSet = true;
53 m_collectionArn = std::forward<CollectionArnT>(value);
54 }
55 template <typename CollectionArnT = Aws::String>
56 CreateCollectionResult& WithCollectionArn(CollectionArnT&& value) {
57 SetCollectionArn(std::forward<CollectionArnT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
68 template <typename FaceModelVersionT = Aws::String>
69 void SetFaceModelVersion(FaceModelVersionT&& value) {
70 m_faceModelVersionHasBeenSet = true;
71 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
72 }
73 template <typename FaceModelVersionT = Aws::String>
74 CreateCollectionResult& WithFaceModelVersion(FaceModelVersionT&& value) {
75 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
95 int m_statusCode{0};
96
97 Aws::String m_collectionArn;
98
99 Aws::String m_faceModelVersion;
100
101 Aws::String m_requestId;
102 bool m_statusCodeHasBeenSet = false;
103 bool m_collectionArnHasBeenSet = false;
104 bool m_faceModelVersionHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Rekognition
110} // namespace Aws
CreateCollectionResult & WithRequestId(RequestIdT &&value)
CreateCollectionResult & WithStatusCode(int value)
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