AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDatasetRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/model/DatasetSource.h>
10#include <aws/rekognition/model/DatasetType.h>
11#include <aws/core/utils/memory/stl/AWSString.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 CreateDatasetRequest() = 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 "CreateDataset"; }
34
35 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
36
37 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
48 inline const DatasetSource& GetDatasetSource() const { return m_datasetSource; }
49 inline bool DatasetSourceHasBeenSet() const { return m_datasetSourceHasBeenSet; }
50 template<typename DatasetSourceT = DatasetSource>
51 void SetDatasetSource(DatasetSourceT&& value) { m_datasetSourceHasBeenSet = true; m_datasetSource = std::forward<DatasetSourceT>(value); }
52 template<typename DatasetSourceT = DatasetSource>
53 CreateDatasetRequest& WithDatasetSource(DatasetSourceT&& value) { SetDatasetSource(std::forward<DatasetSourceT>(value)); return *this;}
55
57
61 inline DatasetType GetDatasetType() const { return m_datasetType; }
62 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
63 inline void SetDatasetType(DatasetType value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
64 inline CreateDatasetRequest& WithDatasetType(DatasetType value) { SetDatasetType(value); return *this;}
66
68
72 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
73 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
74 template<typename ProjectArnT = Aws::String>
75 void SetProjectArn(ProjectArnT&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::forward<ProjectArnT>(value); }
76 template<typename ProjectArnT = Aws::String>
77 CreateDatasetRequest& WithProjectArn(ProjectArnT&& value) { SetProjectArn(std::forward<ProjectArnT>(value)); return *this;}
79
81
84 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
89 CreateDatasetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
91 CreateDatasetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
92 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
93 }
95 private:
96
97 DatasetSource m_datasetSource;
98 bool m_datasetSourceHasBeenSet = false;
99
100 DatasetType m_datasetType{DatasetType::NOT_SET};
101 bool m_datasetTypeHasBeenSet = false;
102
103 Aws::String m_projectArn;
104 bool m_projectArnHasBeenSet = false;
105
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Rekognition
112} // 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