AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateCollectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Rekognition {
16namespace Model {
17
21 public:
22 AWS_REKOGNITION_API CreateCollectionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateCollection"; }
29
30 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
31
32 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
39 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
40 template <typename CollectionIdT = Aws::String>
41 void SetCollectionId(CollectionIdT&& value) {
42 m_collectionIdHasBeenSet = true;
43 m_collectionId = std::forward<CollectionIdT>(value);
44 }
45 template <typename CollectionIdT = Aws::String>
46 CreateCollectionRequest& WithCollectionId(CollectionIdT&& value) {
47 SetCollectionId(std::forward<CollectionIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
58 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
59 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
60 void SetTags(TagsT&& value) {
61 m_tagsHasBeenSet = true;
62 m_tags = std::forward<TagsT>(value);
63 }
64 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
66 SetTags(std::forward<TagsT>(value));
67 return *this;
68 }
69 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
70 CreateCollectionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
71 m_tagsHasBeenSet = true;
72 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_collectionId;
78
80 bool m_collectionIdHasBeenSet = false;
81 bool m_tagsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Rekognition
86} // namespace Aws
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCollectionRequest & WithTags(TagsT &&value)
CreateCollectionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCollectionRequest & WithCollectionId(CollectionIdT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API CreateCollectionRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String