AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateProjectRequest.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/rekognition/model/CustomizationFeature.h>
11#include <aws/rekognition/model/ProjectAutoUpdate.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Rekognition
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_REKOGNITION_API CreateProjectRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateProject"; }
34
35 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
36
37 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetProjectName() const { return m_projectName; }
45 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
46 template<typename ProjectNameT = Aws::String>
47 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
48 template<typename ProjectNameT = Aws::String>
49 CreateProjectRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
51
53
57 inline CustomizationFeature GetFeature() const { return m_feature; }
58 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
59 inline void SetFeature(CustomizationFeature value) { m_featureHasBeenSet = true; m_feature = value; }
60 inline CreateProjectRequest& WithFeature(CustomizationFeature value) { SetFeature(value); return *this;}
62
64
69 inline ProjectAutoUpdate GetAutoUpdate() const { return m_autoUpdate; }
70 inline bool AutoUpdateHasBeenSet() const { return m_autoUpdateHasBeenSet; }
71 inline void SetAutoUpdate(ProjectAutoUpdate value) { m_autoUpdateHasBeenSet = true; m_autoUpdate = value; }
74
76
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 CreateProjectRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 CreateProjectRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
88 }
90 private:
91
92 Aws::String m_projectName;
93 bool m_projectNameHasBeenSet = false;
94
96 bool m_featureHasBeenSet = false;
97
99 bool m_autoUpdateHasBeenSet = false;
100
102 bool m_tagsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Rekognition
107} // namespace Aws
AWS_REKOGNITION_API Aws::String SerializePayload() const override
CreateProjectRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateProjectRequest & WithProjectName(ProjectNameT &&value)
CreateProjectRequest & WithTags(TagsT &&value)
AWS_REKOGNITION_API CreateProjectRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProjectRequest & WithAutoUpdate(ProjectAutoUpdate value)
CreateProjectRequest & WithFeature(CustomizationFeature value)
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