AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
47 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
48 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
49 inline CreateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
50 inline CreateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
51 inline CreateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
53
55
59 inline const CustomizationFeature& GetFeature() const{ return m_feature; }
60 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
61 inline void SetFeature(const CustomizationFeature& value) { m_featureHasBeenSet = true; m_feature = value; }
62 inline void SetFeature(CustomizationFeature&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); }
63 inline CreateProjectRequest& WithFeature(const CustomizationFeature& value) { SetFeature(value); return *this;}
64 inline CreateProjectRequest& WithFeature(CustomizationFeature&& value) { SetFeature(std::move(value)); return *this;}
66
68
73 inline const ProjectAutoUpdate& GetAutoUpdate() const{ return m_autoUpdate; }
74 inline bool AutoUpdateHasBeenSet() const { return m_autoUpdateHasBeenSet; }
75 inline void SetAutoUpdate(const ProjectAutoUpdate& value) { m_autoUpdateHasBeenSet = true; m_autoUpdate = value; }
76 inline void SetAutoUpdate(ProjectAutoUpdate&& value) { m_autoUpdateHasBeenSet = true; m_autoUpdate = std::move(value); }
77 inline CreateProjectRequest& WithAutoUpdate(const ProjectAutoUpdate& value) { SetAutoUpdate(value); return *this;}
78 inline CreateProjectRequest& WithAutoUpdate(ProjectAutoUpdate&& value) { SetAutoUpdate(std::move(value)); return *this;}
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline CreateProjectRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
90 inline CreateProjectRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
92 inline CreateProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
93 inline CreateProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
95 inline CreateProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
97 inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
99 private:
100
101 Aws::String m_projectName;
102 bool m_projectNameHasBeenSet = false;
103
104 CustomizationFeature m_feature;
105 bool m_featureHasBeenSet = false;
106
107 ProjectAutoUpdate m_autoUpdate;
108 bool m_autoUpdateHasBeenSet = false;
109
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Rekognition
116} // namespace Aws
AWS_REKOGNITION_API Aws::String SerializePayload() const override
const CustomizationFeature & GetFeature() const
CreateProjectRequest & AddTags(const char *key, Aws::String &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProjectRequest & AddTags(Aws::String &&key, const char *value)
CreateProjectRequest & WithFeature(CustomizationFeature &&value)
CreateProjectRequest & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateProjectRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetFeature(const CustomizationFeature &value)
CreateProjectRequest & AddTags(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateProjectRequest & WithProjectName(const Aws::String &value)
CreateProjectRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetAutoUpdate(const ProjectAutoUpdate &value)
const ProjectAutoUpdate & GetAutoUpdate() const
CreateProjectRequest & WithProjectName(Aws::String &&value)
CreateProjectRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateProjectRequest & WithProjectName(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProjectRequest & WithAutoUpdate(const ProjectAutoUpdate &value)
CreateProjectRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateProjectRequest & WithAutoUpdate(ProjectAutoUpdate &&value)
CreateProjectRequest & WithFeature(const CustomizationFeature &value)
CreateProjectRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetFeature(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