AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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