AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateProjectRequest.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#include <aws/rekognition/model/CustomizationFeature.h>
12#include <aws/rekognition/model/ProjectAutoUpdate.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Rekognition {
18namespace Model {
19
23 public:
24 AWS_REKOGNITION_API CreateProjectRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateProject"; }
31
32 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
33
34 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetProjectName() const { return m_projectName; }
41 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
42 template <typename ProjectNameT = Aws::String>
43 void SetProjectName(ProjectNameT&& value) {
44 m_projectNameHasBeenSet = true;
45 m_projectName = std::forward<ProjectNameT>(value);
46 }
47 template <typename ProjectNameT = Aws::String>
48 CreateProjectRequest& WithProjectName(ProjectNameT&& value) {
49 SetProjectName(std::forward<ProjectNameT>(value));
50 return *this;
51 }
53
55
59 inline CustomizationFeature GetFeature() const { return m_feature; }
60 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
61 inline void SetFeature(CustomizationFeature value) {
62 m_featureHasBeenSet = true;
63 m_feature = value;
64 }
66 SetFeature(value);
67 return *this;
68 }
70
72
77 inline ProjectAutoUpdate GetAutoUpdate() const { return m_autoUpdate; }
78 inline bool AutoUpdateHasBeenSet() const { return m_autoUpdateHasBeenSet; }
79 inline void SetAutoUpdate(ProjectAutoUpdate value) {
80 m_autoUpdateHasBeenSet = true;
81 m_autoUpdate = value;
82 }
84 SetAutoUpdate(value);
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateProjectRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_projectName;
114
116
118
120 bool m_projectNameHasBeenSet = false;
121 bool m_featureHasBeenSet = false;
122 bool m_autoUpdateHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Rekognition
128} // 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