AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateDatasetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/personalize/PersonalizeRequest.h>
10#include <aws/personalize/Personalize_EXPORTS.h>
11#include <aws/personalize/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Personalize {
17namespace Model {
18
22 public:
23 AWS_PERSONALIZE_API CreateDatasetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; }
30
31 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
32
33 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
59 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
60 template <typename SchemaArnT = Aws::String>
61 void SetSchemaArn(SchemaArnT&& value) {
62 m_schemaArnHasBeenSet = true;
63 m_schemaArn = std::forward<SchemaArnT>(value);
64 }
65 template <typename SchemaArnT = Aws::String>
66 CreateDatasetRequest& WithSchemaArn(SchemaArnT&& value) {
67 SetSchemaArn(std::forward<SchemaArnT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
78 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
79 template <typename DatasetGroupArnT = Aws::String>
80 void SetDatasetGroupArn(DatasetGroupArnT&& value) {
81 m_datasetGroupArnHasBeenSet = true;
82 m_datasetGroupArn = std::forward<DatasetGroupArnT>(value);
83 }
84 template <typename DatasetGroupArnT = Aws::String>
85 CreateDatasetRequest& WithDatasetGroupArn(DatasetGroupArnT&& value) {
86 SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetDatasetType() const { return m_datasetType; }
99 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
100 template <typename DatasetTypeT = Aws::String>
101 void SetDatasetType(DatasetTypeT&& value) {
102 m_datasetTypeHasBeenSet = true;
103 m_datasetType = std::forward<DatasetTypeT>(value);
104 }
105 template <typename DatasetTypeT = Aws::String>
106 CreateDatasetRequest& WithDatasetType(DatasetTypeT&& value) {
107 SetDatasetType(std::forward<DatasetTypeT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template <typename TagsT = Aws::Vector<Tag>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Vector<Tag>>
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsT = Tag>
132 m_tagsHasBeenSet = true;
133 m_tags.emplace_back(std::forward<TagsT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_name;
139
140 Aws::String m_schemaArn;
141
142 Aws::String m_datasetGroupArn;
143
144 Aws::String m_datasetType;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_nameHasBeenSet = false;
148 bool m_schemaArnHasBeenSet = false;
149 bool m_datasetGroupArnHasBeenSet = false;
150 bool m_datasetTypeHasBeenSet = false;
151 bool m_tagsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace Personalize
156} // namespace Aws
void SetDatasetGroupArn(DatasetGroupArnT &&value)
CreateDatasetRequest & WithSchemaArn(SchemaArnT &&value)
CreateDatasetRequest & WithDatasetGroupArn(DatasetGroupArnT &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateDatasetRequest & WithName(NameT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDatasetRequest & AddTags(TagsT &&value)
AWS_PERSONALIZE_API CreateDatasetRequest()=default
virtual const char * GetServiceRequestName() const override
CreateDatasetRequest & WithDatasetType(DatasetTypeT &&value)
CreateDatasetRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector