/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace GlueDataBrew { namespace Model { /** */ class CreateProjectRequest : public GlueDataBrewRequest { public: AWS_GLUEDATABREW_API CreateProjectRequest(); // 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 "CreateProject"; } AWS_GLUEDATABREW_API Aws::String SerializePayload() const override; /** *

The name of an existing dataset to associate this project with.

*/ inline const Aws::String& GetDatasetName() const{ return m_datasetName; } /** *

The name of an existing dataset to associate this project with.

*/ inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; } /** *

The name of an existing dataset to associate this project with.

*/ inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; } /** *

The name of an existing dataset to associate this project with.

*/ inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); } /** *

The name of an existing dataset to associate this project with.

*/ inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); } /** *

The name of an existing dataset to associate this project with.

*/ inline CreateProjectRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;} /** *

The name of an existing dataset to associate this project with.

*/ inline CreateProjectRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;} /** *

The name of an existing dataset to associate this project with.

*/ inline CreateProjectRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;} /** *

A unique name for the new project. Valid characters are alphanumeric (A-Z, * a-z, 0-9), hyphen (-), period (.), and space.

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

A unique name for the new project. Valid characters are alphanumeric (A-Z, * a-z, 0-9), hyphen (-), period (.), and space.

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

A unique name for the new project. 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; } /** *

A unique name for the new project. 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); } /** *

A unique name for the new project. 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); } /** *

A unique name for the new project. Valid characters are alphanumeric (A-Z, * a-z, 0-9), hyphen (-), period (.), and space.

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

A unique name for the new project. Valid characters are alphanumeric (A-Z, * a-z, 0-9), hyphen (-), period (.), and space.

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

A unique name for the new project. Valid characters are alphanumeric (A-Z, * a-z, 0-9), hyphen (-), period (.), and space.

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

The name of an existing recipe to associate with the project.

*/ inline const Aws::String& GetRecipeName() const{ return m_recipeName; } /** *

The name of an existing recipe to associate with the project.

*/ inline bool RecipeNameHasBeenSet() const { return m_recipeNameHasBeenSet; } /** *

The name of an existing recipe to associate with the project.

*/ inline void SetRecipeName(const Aws::String& value) { m_recipeNameHasBeenSet = true; m_recipeName = value; } /** *

The name of an existing recipe to associate with the project.

*/ inline void SetRecipeName(Aws::String&& value) { m_recipeNameHasBeenSet = true; m_recipeName = std::move(value); } /** *

The name of an existing recipe to associate with the project.

*/ inline void SetRecipeName(const char* value) { m_recipeNameHasBeenSet = true; m_recipeName.assign(value); } /** *

The name of an existing recipe to associate with the project.

*/ inline CreateProjectRequest& WithRecipeName(const Aws::String& value) { SetRecipeName(value); return *this;} /** *

The name of an existing recipe to associate with the project.

*/ inline CreateProjectRequest& WithRecipeName(Aws::String&& value) { SetRecipeName(std::move(value)); return *this;} /** *

The name of an existing recipe to associate with the project.

*/ inline CreateProjectRequest& WithRecipeName(const char* value) { SetRecipeName(value); return *this;} inline const Sample& GetSample() const{ return m_sample; } inline bool SampleHasBeenSet() const { return m_sampleHasBeenSet; } inline void SetSample(const Sample& value) { m_sampleHasBeenSet = true; m_sample = value; } inline void SetSample(Sample&& value) { m_sampleHasBeenSet = true; m_sample = std::move(value); } inline CreateProjectRequest& WithSample(const Sample& value) { SetSample(value); return *this;} inline CreateProjectRequest& WithSample(Sample&& value) { SetSample(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * role to be assumed for this request.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * role to be assumed for this request.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * role to be assumed for this request.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * role to be assumed for this request.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * role to be assumed for this request.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * role to be assumed for this request.

*/ inline CreateProjectRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * role to be assumed for this request.

*/ inline CreateProjectRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) * role to be assumed for this request.

*/ inline CreateProjectRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

Metadata tags to apply to this project.

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

Metadata tags to apply to this project.

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

Metadata tags to apply to this project.

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

Metadata tags to apply to this project.

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

Metadata tags to apply to this project.

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

Metadata tags to apply to this project.

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

Metadata tags to apply to this project.

*/ inline CreateProjectRequest& 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 project.

*/ inline CreateProjectRequest& 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 project.

*/ inline CreateProjectRequest& 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 project.

*/ inline CreateProjectRequest& 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 project.

*/ inline CreateProjectRequest& 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 project.

*/ inline CreateProjectRequest& 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 project.

*/ inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_datasetName; bool m_datasetNameHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_recipeName; bool m_recipeNameHasBeenSet = false; Sample m_sample; bool m_sampleHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws