/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace GlueDataBrew { namespace Model { /** */ class CreateDatasetRequest : public GlueDataBrewRequest { public: AWS_GLUEDATABREW_API CreateDatasetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; } AWS_GLUEDATABREW_API Aws::String SerializePayload() const override; /** *

The name of the dataset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the dataset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the dataset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the dataset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the dataset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the dataset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline CreateDatasetRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the dataset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline CreateDatasetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the dataset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline CreateDatasetRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The file format of a dataset that is created from an Amazon S3 file or * folder.

*/ inline const InputFormat& GetFormat() const{ return m_format; } /** *

The file format of a dataset that is created from an Amazon S3 file or * folder.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

The file format of a dataset that is created from an Amazon S3 file or * folder.

*/ inline void SetFormat(const InputFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *

The file format of a dataset that is created from an Amazon S3 file or * folder.

*/ inline void SetFormat(InputFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

The file format of a dataset that is created from an Amazon S3 file or * folder.

*/ inline CreateDatasetRequest& WithFormat(const InputFormat& value) { SetFormat(value); return *this;} /** *

The file format of a dataset that is created from an Amazon S3 file or * folder.

*/ inline CreateDatasetRequest& WithFormat(InputFormat&& value) { SetFormat(std::move(value)); return *this;} inline const FormatOptions& GetFormatOptions() const{ return m_formatOptions; } inline bool FormatOptionsHasBeenSet() const { return m_formatOptionsHasBeenSet; } inline void SetFormatOptions(const FormatOptions& value) { m_formatOptionsHasBeenSet = true; m_formatOptions = value; } inline void SetFormatOptions(FormatOptions&& value) { m_formatOptionsHasBeenSet = true; m_formatOptions = std::move(value); } inline CreateDatasetRequest& WithFormatOptions(const FormatOptions& value) { SetFormatOptions(value); return *this;} inline CreateDatasetRequest& WithFormatOptions(FormatOptions&& value) { SetFormatOptions(std::move(value)); return *this;} inline const Input& GetInput() const{ return m_input; } inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } inline void SetInput(const Input& value) { m_inputHasBeenSet = true; m_input = value; } inline void SetInput(Input&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } inline CreateDatasetRequest& WithInput(const Input& value) { SetInput(value); return *this;} inline CreateDatasetRequest& WithInput(Input&& value) { SetInput(std::move(value)); return *this;} /** *

A set of options that defines how DataBrew interprets an Amazon S3 path of * the dataset.

*/ inline const PathOptions& GetPathOptions() const{ return m_pathOptions; } /** *

A set of options that defines how DataBrew interprets an Amazon S3 path of * the dataset.

*/ inline bool PathOptionsHasBeenSet() const { return m_pathOptionsHasBeenSet; } /** *

A set of options that defines how DataBrew interprets an Amazon S3 path of * the dataset.

*/ inline void SetPathOptions(const PathOptions& value) { m_pathOptionsHasBeenSet = true; m_pathOptions = value; } /** *

A set of options that defines how DataBrew interprets an Amazon S3 path of * the dataset.

*/ inline void SetPathOptions(PathOptions&& value) { m_pathOptionsHasBeenSet = true; m_pathOptions = std::move(value); } /** *

A set of options that defines how DataBrew interprets an Amazon S3 path of * the dataset.

*/ inline CreateDatasetRequest& WithPathOptions(const PathOptions& value) { SetPathOptions(value); return *this;} /** *

A set of options that defines how DataBrew interprets an Amazon S3 path of * the dataset.

*/ inline CreateDatasetRequest& WithPathOptions(PathOptions&& value) { SetPathOptions(std::move(value)); return *this;} /** *

Metadata tags to apply to this dataset.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Metadata tags to apply to this dataset.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata tags to apply to this dataset.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata tags to apply to this dataset.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Metadata tags to apply to this dataset.

*/ inline CreateDatasetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; InputFormat m_format; bool m_formatHasBeenSet = false; FormatOptions m_formatOptions; bool m_formatOptionsHasBeenSet = false; Input m_input; bool m_inputHasBeenSet = false; PathOptions m_pathOptions; bool m_pathOptionsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws