AWS SDK for C++  1.9.109
AWS SDK for C++
CreateCollectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Rekognition
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetCollectionId() const{ return m_collectionId; }
42 
46  inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
47 
51  inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; }
52 
56  inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); }
57 
61  inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); }
62 
66  inline CreateCollectionRequest& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;}
67 
71  inline CreateCollectionRequest& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;}
72 
76  inline CreateCollectionRequest& WithCollectionId(const char* value) { SetCollectionId(value); return *this;}
77 
78 
83  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
84 
89  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 
95  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
96 
101  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 
107  inline CreateCollectionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
108 
113  inline CreateCollectionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
114 
119  inline CreateCollectionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
120 
125  inline CreateCollectionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
126 
131  inline CreateCollectionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
132 
137  inline CreateCollectionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
138 
143  inline CreateCollectionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
144 
149  inline CreateCollectionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
150 
155  inline CreateCollectionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
156 
157  private:
158 
159  Aws::String m_collectionId;
160  bool m_collectionIdHasBeenSet;
161 
163  bool m_tagsHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace Rekognition
168 } // namespace Aws
Aws::Rekognition::Model::CreateCollectionRequest
Definition: CreateCollectionRequest.h:23
Aws::Rekognition::Model::CreateCollectionRequest::AddTags
CreateCollectionRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateCollectionRequest.h:137
Aws::Rekognition::Model::CreateCollectionRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateCollectionRequest.h:101
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Rekognition::Model::CreateCollectionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateCollectionRequest.h:89
Aws::Rekognition::Model::CreateCollectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Rekognition::Model::CreateCollectionRequest::CreateCollectionRequest
CreateCollectionRequest()
Aws::Rekognition::Model::CreateCollectionRequest::WithTags
CreateCollectionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateCollectionRequest.h:113
Aws::Rekognition::Model::CreateCollectionRequest::GetCollectionId
const Aws::String & GetCollectionId() const
Definition: CreateCollectionRequest.h:41
Aws::Rekognition::Model::CreateCollectionRequest::SetCollectionId
void SetCollectionId(const Aws::String &value)
Definition: CreateCollectionRequest.h:51
Aws::Rekognition::Model::CreateCollectionRequest::AddTags
CreateCollectionRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateCollectionRequest.h:131
Aws::Rekognition::Model::CreateCollectionRequest::WithCollectionId
CreateCollectionRequest & WithCollectionId(const char *value)
Definition: CreateCollectionRequest.h:76
Aws::Rekognition::Model::CreateCollectionRequest::AddTags
CreateCollectionRequest & AddTags(const char *key, const char *value)
Definition: CreateCollectionRequest.h:155
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::CreateCollectionRequest::WithCollectionId
CreateCollectionRequest & WithCollectionId(const Aws::String &value)
Definition: CreateCollectionRequest.h:66
Aws::Rekognition::Model::CreateCollectionRequest::SetCollectionId
void SetCollectionId(const char *value)
Definition: CreateCollectionRequest.h:61
AWSString.h
Aws::Rekognition::Model::CreateCollectionRequest::WithCollectionId
CreateCollectionRequest & WithCollectionId(Aws::String &&value)
Definition: CreateCollectionRequest.h:71
Aws::Rekognition::Model::CreateCollectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCollectionRequest.h:31
Aws::Rekognition::Model::CreateCollectionRequest::AddTags
CreateCollectionRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateCollectionRequest.h:143
Aws::Rekognition::Model::CreateCollectionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::Rekognition::Model::CreateCollectionRequest::SetCollectionId
void SetCollectionId(Aws::String &&value)
Definition: CreateCollectionRequest.h:56
Rekognition_EXPORTS.h
Aws::Rekognition::Model::CreateCollectionRequest::WithTags
CreateCollectionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateCollectionRequest.h:107
Aws::Rekognition::Model::CreateCollectionRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateCollectionRequest.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::CreateCollectionRequest::CollectionIdHasBeenSet
bool CollectionIdHasBeenSet() const
Definition: CreateCollectionRequest.h:46
Aws::Rekognition::Model::CreateCollectionRequest::AddTags
CreateCollectionRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateCollectionRequest.h:149
AWSMap.h
Aws::Rekognition::Model::CreateCollectionRequest::AddTags
CreateCollectionRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateCollectionRequest.h:119
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Rekognition::Model::CreateCollectionRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateCollectionRequest.h:83
Aws::Rekognition::Model::CreateCollectionRequest::AddTags
CreateCollectionRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateCollectionRequest.h:125
RekognitionRequest.h