AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDataLakeDatasetRequest.h
1
6#pragma once
7#include <aws/supplychain/SupplyChain_EXPORTS.h>
8#include <aws/supplychain/SupplyChainRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/supplychain/model/DataLakeDatasetSchema.h>
11#include <aws/supplychain/model/DataLakeDatasetPartitionSpec.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SupplyChain
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_SUPPLYCHAIN_API CreateDataLakeDatasetRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateDataLakeDataset"; }
38
39 AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 template<typename InstanceIdT = Aws::String>
49 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
50 template<typename InstanceIdT = Aws::String>
51 CreateDataLakeDatasetRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
53
55
64 inline const Aws::String& GetNamespace() const { return m_namespace; }
65 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
66 template<typename NamespaceT = Aws::String>
67 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
68 template<typename NamespaceT = Aws::String>
69 CreateDataLakeDatasetRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
71
73
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template<typename NameT = Aws::String>
81 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
82 template<typename NameT = Aws::String>
83 CreateDataLakeDatasetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
85
87
91 inline const DataLakeDatasetSchema& GetSchema() const { return m_schema; }
92 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
93 template<typename SchemaT = DataLakeDatasetSchema>
94 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
95 template<typename SchemaT = DataLakeDatasetSchema>
96 CreateDataLakeDatasetRequest& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
98
100
103 inline const Aws::String& GetDescription() const { return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 template<typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
107 template<typename DescriptionT = Aws::String>
108 CreateDataLakeDatasetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
110
112
120 inline const DataLakeDatasetPartitionSpec& GetPartitionSpec() const { return m_partitionSpec; }
121 inline bool PartitionSpecHasBeenSet() const { return m_partitionSpecHasBeenSet; }
122 template<typename PartitionSpecT = DataLakeDatasetPartitionSpec>
123 void SetPartitionSpec(PartitionSpecT&& value) { m_partitionSpecHasBeenSet = true; m_partitionSpec = std::forward<PartitionSpecT>(value); }
124 template<typename PartitionSpecT = DataLakeDatasetPartitionSpec>
125 CreateDataLakeDatasetRequest& WithPartitionSpec(PartitionSpecT&& value) { SetPartitionSpec(std::forward<PartitionSpecT>(value)); return *this;}
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
136 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 CreateDataLakeDatasetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
138 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 CreateDataLakeDatasetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
140 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
141 }
143 private:
144
145 Aws::String m_instanceId;
146 bool m_instanceIdHasBeenSet = false;
147
148 Aws::String m_namespace;
149 bool m_namespaceHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 DataLakeDatasetSchema m_schema;
155 bool m_schemaHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 DataLakeDatasetPartitionSpec m_partitionSpec;
161 bool m_partitionSpecHasBeenSet = false;
162
164 bool m_tagsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace SupplyChain
169} // 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