AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateDatasetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateDatasetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateDatasetRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
58 inline const Aws::String& GetSchemaArn() const{ return m_schemaArn; }
59 inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
60 inline void SetSchemaArn(const Aws::String& value) { m_schemaArnHasBeenSet = true; m_schemaArn = value; }
61 inline void SetSchemaArn(Aws::String&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::move(value); }
62 inline void SetSchemaArn(const char* value) { m_schemaArnHasBeenSet = true; m_schemaArn.assign(value); }
63 inline CreateDatasetRequest& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;}
64 inline CreateDatasetRequest& WithSchemaArn(Aws::String&& value) { SetSchemaArn(std::move(value)); return *this;}
65 inline CreateDatasetRequest& WithSchemaArn(const char* value) { SetSchemaArn(value); return *this;}
67
69
73 inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
74 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
75 inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
76 inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
77 inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
78 inline CreateDatasetRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
79 inline CreateDatasetRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
80 inline CreateDatasetRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
82
84
90 inline const Aws::String& GetDatasetType() const{ return m_datasetType; }
91 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
92 inline void SetDatasetType(const Aws::String& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
93 inline void SetDatasetType(Aws::String&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); }
94 inline void SetDatasetType(const char* value) { m_datasetTypeHasBeenSet = true; m_datasetType.assign(value); }
95 inline CreateDatasetRequest& WithDatasetType(const Aws::String& value) { SetDatasetType(value); return *this;}
96 inline CreateDatasetRequest& WithDatasetType(Aws::String&& value) { SetDatasetType(std::move(value)); return *this;}
97 inline CreateDatasetRequest& WithDatasetType(const char* value) { SetDatasetType(value); return *this;}
99
101
106 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
109 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
110 inline CreateDatasetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
111 inline CreateDatasetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
112 inline CreateDatasetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
113 inline CreateDatasetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_schemaArn;
121 bool m_schemaArnHasBeenSet = false;
122
123 Aws::String m_datasetGroupArn;
124 bool m_datasetGroupArnHasBeenSet = false;
125
126 Aws::String m_datasetType;
127 bool m_datasetTypeHasBeenSet = false;
128
129 Aws::Vector<Tag> m_tags;
130 bool m_tagsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Personalize
135} // namespace Aws
CreateDatasetRequest & WithDatasetGroupArn(Aws::String &&value)
CreateDatasetRequest & WithDatasetGroupArn(const Aws::String &value)
CreateDatasetRequest & WithSchemaArn(const char *value)
CreateDatasetRequest & AddTags(const Tag &value)
CreateDatasetRequest & WithDatasetGroupArn(const char *value)
void SetDatasetGroupArn(const Aws::String &value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateDatasetRequest & WithDatasetType(const Aws::String &value)
CreateDatasetRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDatasetRequest & WithName(const char *value)
CreateDatasetRequest & WithSchemaArn(Aws::String &&value)
CreateDatasetRequest & WithName(Aws::String &&value)
CreateDatasetRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDatasetRequest & WithDatasetType(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
CreateDatasetRequest & WithDatasetType(Aws::String &&value)
CreateDatasetRequest & WithSchemaArn(const Aws::String &value)
CreateDatasetRequest & WithName(const Aws::String &value)
CreateDatasetRequest & AddTags(Tag &&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