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/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/personalize/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Personalize
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZE_API CreateDatasetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; }
33
34 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
35
36 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateDatasetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
56 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
57 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
58 template<typename SchemaArnT = Aws::String>
59 void SetSchemaArn(SchemaArnT&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::forward<SchemaArnT>(value); }
60 template<typename SchemaArnT = Aws::String>
61 CreateDatasetRequest& WithSchemaArn(SchemaArnT&& value) { SetSchemaArn(std::forward<SchemaArnT>(value)); return *this;}
63
65
69 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
70 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
71 template<typename DatasetGroupArnT = Aws::String>
72 void SetDatasetGroupArn(DatasetGroupArnT&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::forward<DatasetGroupArnT>(value); }
73 template<typename DatasetGroupArnT = Aws::String>
74 CreateDatasetRequest& WithDatasetGroupArn(DatasetGroupArnT&& value) { SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value)); return *this;}
76
78
84 inline const Aws::String& GetDatasetType() const { return m_datasetType; }
85 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
86 template<typename DatasetTypeT = Aws::String>
87 void SetDatasetType(DatasetTypeT&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::forward<DatasetTypeT>(value); }
88 template<typename DatasetTypeT = Aws::String>
89 CreateDatasetRequest& WithDatasetType(DatasetTypeT&& value) { SetDatasetType(std::forward<DatasetTypeT>(value)); return *this;}
91
93
98 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template<typename TagsT = Aws::Vector<Tag>>
101 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
102 template<typename TagsT = Aws::Vector<Tag>>
103 CreateDatasetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
104 template<typename TagsT = Tag>
105 CreateDatasetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_schemaArn;
113 bool m_schemaArnHasBeenSet = false;
114
115 Aws::String m_datasetGroupArn;
116 bool m_datasetGroupArnHasBeenSet = false;
117
118 Aws::String m_datasetType;
119 bool m_datasetTypeHasBeenSet = false;
120
121 Aws::Vector<Tag> m_tags;
122 bool m_tagsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Personalize
127} // namespace Aws
void SetDatasetGroupArn(DatasetGroupArnT &&value)
const Aws::Vector< Tag > & GetTags() const
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