AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateDataLakeDatasetRequest.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/supplychain/SupplyChainRequest.h>
10#include <aws/supplychain/SupplyChain_EXPORTS.h>
11#include <aws/supplychain/model/DataLakeDatasetPartitionSpec.h>
12#include <aws/supplychain/model/DataLakeDatasetSchema.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SupplyChain {
18namespace Model {
19
27 public:
28 AWS_SUPPLYCHAIN_API CreateDataLakeDatasetRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDataLakeDataset"; }
35
36 AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template <typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) {
46 m_instanceIdHasBeenSet = true;
47 m_instanceId = std::forward<InstanceIdT>(value);
48 }
49 template <typename InstanceIdT = Aws::String>
51 SetInstanceId(std::forward<InstanceIdT>(value));
52 return *this;
53 }
55
57
66 inline const Aws::String& GetNamespace() const { return m_namespace; }
67 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
68 template <typename NamespaceT = Aws::String>
69 void SetNamespace(NamespaceT&& value) {
70 m_namespaceHasBeenSet = true;
71 m_namespace = std::forward<NamespaceT>(value);
72 }
73 template <typename NamespaceT = Aws::String>
75 SetNamespace(std::forward<NamespaceT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template <typename NameT = Aws::String>
89 void SetName(NameT&& value) {
90 m_nameHasBeenSet = true;
91 m_name = std::forward<NameT>(value);
92 }
93 template <typename NameT = Aws::String>
95 SetName(std::forward<NameT>(value));
96 return *this;
97 }
99
101
105 inline const DataLakeDatasetSchema& GetSchema() const { return m_schema; }
106 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
107 template <typename SchemaT = DataLakeDatasetSchema>
108 void SetSchema(SchemaT&& value) {
109 m_schemaHasBeenSet = true;
110 m_schema = std::forward<SchemaT>(value);
111 }
112 template <typename SchemaT = DataLakeDatasetSchema>
114 SetSchema(std::forward<SchemaT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetDescription() const { return m_description; }
124 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
125 template <typename DescriptionT = Aws::String>
126 void SetDescription(DescriptionT&& value) {
127 m_descriptionHasBeenSet = true;
128 m_description = std::forward<DescriptionT>(value);
129 }
130 template <typename DescriptionT = Aws::String>
132 SetDescription(std::forward<DescriptionT>(value));
133 return *this;
134 }
136
138
146 inline const DataLakeDatasetPartitionSpec& GetPartitionSpec() const { return m_partitionSpec; }
147 inline bool PartitionSpecHasBeenSet() const { return m_partitionSpecHasBeenSet; }
148 template <typename PartitionSpecT = DataLakeDatasetPartitionSpec>
149 void SetPartitionSpec(PartitionSpecT&& value) {
150 m_partitionSpecHasBeenSet = true;
151 m_partitionSpec = std::forward<PartitionSpecT>(value);
152 }
153 template <typename PartitionSpecT = DataLakeDatasetPartitionSpec>
155 SetPartitionSpec(std::forward<PartitionSpecT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 void SetTags(TagsT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags = std::forward<TagsT>(value);
170 }
171 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
173 SetTags(std::forward<TagsT>(value));
174 return *this;
175 }
176 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
177 CreateDataLakeDatasetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_instanceId;
185
186 Aws::String m_namespace;
187
188 Aws::String m_name;
189
190 DataLakeDatasetSchema m_schema;
191
192 Aws::String m_description;
193
194 DataLakeDatasetPartitionSpec m_partitionSpec;
195
197 bool m_instanceIdHasBeenSet = false;
198 bool m_namespaceHasBeenSet = false;
199 bool m_nameHasBeenSet = false;
200 bool m_schemaHasBeenSet = false;
201 bool m_descriptionHasBeenSet = false;
202 bool m_partitionSpecHasBeenSet = false;
203 bool m_tagsHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace SupplyChain
208} // namespace Aws
CreateDataLakeDatasetRequest & WithNamespace(NamespaceT &&value)
CreateDataLakeDatasetRequest & WithInstanceId(InstanceIdT &&value)
CreateDataLakeDatasetRequest & WithTags(TagsT &&value)
CreateDataLakeDatasetRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const DataLakeDatasetPartitionSpec & GetPartitionSpec() const
CreateDataLakeDatasetRequest & WithName(NameT &&value)
CreateDataLakeDatasetRequest & WithPartitionSpec(PartitionSpecT &&value)
CreateDataLakeDatasetRequest & WithSchema(SchemaT &&value)
AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override
CreateDataLakeDatasetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_SUPPLYCHAIN_API CreateDataLakeDatasetRequest()=default
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