AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
CreateDatasetRequest.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/DatasetSource.h>
12#include <aws/rekognition/model/DatasetType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Rekognition {
18namespace Model {
19
23 public:
24 AWS_REKOGNITION_API CreateDatasetRequest() = 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 "CreateDataset"; }
31
32 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
33
34 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
44 inline const DatasetSource& GetDatasetSource() const { return m_datasetSource; }
45 inline bool DatasetSourceHasBeenSet() const { return m_datasetSourceHasBeenSet; }
46 template <typename DatasetSourceT = DatasetSource>
47 void SetDatasetSource(DatasetSourceT&& value) {
48 m_datasetSourceHasBeenSet = true;
49 m_datasetSource = std::forward<DatasetSourceT>(value);
50 }
51 template <typename DatasetSourceT = DatasetSource>
52 CreateDatasetRequest& WithDatasetSource(DatasetSourceT&& value) {
53 SetDatasetSource(std::forward<DatasetSourceT>(value));
54 return *this;
55 }
57
59
63 inline DatasetType GetDatasetType() const { return m_datasetType; }
64 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
65 inline void SetDatasetType(DatasetType value) {
66 m_datasetTypeHasBeenSet = true;
67 m_datasetType = value;
68 }
70 SetDatasetType(value);
71 return *this;
72 }
74
76
80 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
81 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
82 template <typename ProjectArnT = Aws::String>
83 void SetProjectArn(ProjectArnT&& value) {
84 m_projectArnHasBeenSet = true;
85 m_projectArn = std::forward<ProjectArnT>(value);
86 }
87 template <typename ProjectArnT = Aws::String>
88 CreateDatasetRequest& WithProjectArn(ProjectArnT&& value) {
89 SetProjectArn(std::forward<ProjectArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags = std::forward<TagsT>(value);
104 }
105 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 SetTags(std::forward<TagsT>(value));
108 return *this;
109 }
110 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
111 CreateDatasetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
114 return *this;
115 }
117 private:
118 DatasetSource m_datasetSource;
119 bool m_datasetSourceHasBeenSet = false;
120
121 DatasetType m_datasetType{DatasetType::NOT_SET};
122 bool m_datasetTypeHasBeenSet = false;
123
124 Aws::String m_projectArn;
125 bool m_projectArnHasBeenSet = false;
126
128 bool m_tagsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Rekognition
133} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateDatasetRequest & WithProjectArn(ProjectArnT &&value)
AWS_REKOGNITION_API CreateDatasetRequest()=default
CreateDatasetRequest & WithTags(TagsT &&value)
CreateDatasetRequest & WithDatasetType(DatasetType value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
CreateDatasetRequest & WithDatasetSource(DatasetSourceT &&value)
CreateDatasetRequest & AddTags(TagsKeyT &&key, TagsValueT &&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