/** * 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 SageMaker { namespace Model { /** */ class CreatePipelineRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreatePipelineRequest(); // 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 "CreatePipeline"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the pipeline.

*/ inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } /** *

The name of the pipeline.

*/ inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } /** *

The name of the pipeline.

*/ inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } /** *

The name of the pipeline.

*/ inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } /** *

The name of the pipeline.

*/ inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } /** *

The name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} /** *

The name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} /** *

The name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} /** *

The display name of the pipeline.

*/ inline const Aws::String& GetPipelineDisplayName() const{ return m_pipelineDisplayName; } /** *

The display name of the pipeline.

*/ inline bool PipelineDisplayNameHasBeenSet() const { return m_pipelineDisplayNameHasBeenSet; } /** *

The display name of the pipeline.

*/ inline void SetPipelineDisplayName(const Aws::String& value) { m_pipelineDisplayNameHasBeenSet = true; m_pipelineDisplayName = value; } /** *

The display name of the pipeline.

*/ inline void SetPipelineDisplayName(Aws::String&& value) { m_pipelineDisplayNameHasBeenSet = true; m_pipelineDisplayName = std::move(value); } /** *

The display name of the pipeline.

*/ inline void SetPipelineDisplayName(const char* value) { m_pipelineDisplayNameHasBeenSet = true; m_pipelineDisplayName.assign(value); } /** *

The display name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDisplayName(const Aws::String& value) { SetPipelineDisplayName(value); return *this;} /** *

The display name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDisplayName(Aws::String&& value) { SetPipelineDisplayName(std::move(value)); return *this;} /** *

The display name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDisplayName(const char* value) { SetPipelineDisplayName(value); return *this;} /** *

The JSON * pipeline definition of the pipeline.

*/ inline const Aws::String& GetPipelineDefinition() const{ return m_pipelineDefinition; } /** *

The JSON * pipeline definition of the pipeline.

*/ inline bool PipelineDefinitionHasBeenSet() const { return m_pipelineDefinitionHasBeenSet; } /** *

The JSON * pipeline definition of the pipeline.

*/ inline void SetPipelineDefinition(const Aws::String& value) { m_pipelineDefinitionHasBeenSet = true; m_pipelineDefinition = value; } /** *

The JSON * pipeline definition of the pipeline.

*/ inline void SetPipelineDefinition(Aws::String&& value) { m_pipelineDefinitionHasBeenSet = true; m_pipelineDefinition = std::move(value); } /** *

The JSON * pipeline definition of the pipeline.

*/ inline void SetPipelineDefinition(const char* value) { m_pipelineDefinitionHasBeenSet = true; m_pipelineDefinition.assign(value); } /** *

The JSON * pipeline definition of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDefinition(const Aws::String& value) { SetPipelineDefinition(value); return *this;} /** *

The JSON * pipeline definition of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDefinition(Aws::String&& value) { SetPipelineDefinition(std::move(value)); return *this;} /** *

The JSON * pipeline definition of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDefinition(const char* value) { SetPipelineDefinition(value); return *this;} /** *

The location of the pipeline definition stored in Amazon S3. If specified, * SageMaker will retrieve the pipeline definition from this location.

*/ inline const PipelineDefinitionS3Location& GetPipelineDefinitionS3Location() const{ return m_pipelineDefinitionS3Location; } /** *

The location of the pipeline definition stored in Amazon S3. If specified, * SageMaker will retrieve the pipeline definition from this location.

*/ inline bool PipelineDefinitionS3LocationHasBeenSet() const { return m_pipelineDefinitionS3LocationHasBeenSet; } /** *

The location of the pipeline definition stored in Amazon S3. If specified, * SageMaker will retrieve the pipeline definition from this location.

*/ inline void SetPipelineDefinitionS3Location(const PipelineDefinitionS3Location& value) { m_pipelineDefinitionS3LocationHasBeenSet = true; m_pipelineDefinitionS3Location = value; } /** *

The location of the pipeline definition stored in Amazon S3. If specified, * SageMaker will retrieve the pipeline definition from this location.

*/ inline void SetPipelineDefinitionS3Location(PipelineDefinitionS3Location&& value) { m_pipelineDefinitionS3LocationHasBeenSet = true; m_pipelineDefinitionS3Location = std::move(value); } /** *

The location of the pipeline definition stored in Amazon S3. If specified, * SageMaker will retrieve the pipeline definition from this location.

*/ inline CreatePipelineRequest& WithPipelineDefinitionS3Location(const PipelineDefinitionS3Location& value) { SetPipelineDefinitionS3Location(value); return *this;} /** *

The location of the pipeline definition stored in Amazon S3. If specified, * SageMaker will retrieve the pipeline definition from this location.

*/ inline CreatePipelineRequest& WithPipelineDefinitionS3Location(PipelineDefinitionS3Location&& value) { SetPipelineDefinitionS3Location(std::move(value)); return *this;} /** *

A description of the pipeline.

*/ inline const Aws::String& GetPipelineDescription() const{ return m_pipelineDescription; } /** *

A description of the pipeline.

*/ inline bool PipelineDescriptionHasBeenSet() const { return m_pipelineDescriptionHasBeenSet; } /** *

A description of the pipeline.

*/ inline void SetPipelineDescription(const Aws::String& value) { m_pipelineDescriptionHasBeenSet = true; m_pipelineDescription = value; } /** *

A description of the pipeline.

*/ inline void SetPipelineDescription(Aws::String&& value) { m_pipelineDescriptionHasBeenSet = true; m_pipelineDescription = std::move(value); } /** *

A description of the pipeline.

*/ inline void SetPipelineDescription(const char* value) { m_pipelineDescriptionHasBeenSet = true; m_pipelineDescription.assign(value); } /** *

A description of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDescription(const Aws::String& value) { SetPipelineDescription(value); return *this;} /** *

A description of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDescription(Aws::String&& value) { SetPipelineDescription(std::move(value)); return *this;} /** *

A description of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineDescription(const char* value) { SetPipelineDescription(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time.

*/ inline CreatePipelineRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time.

*/ inline CreatePipelineRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time.

*/ inline CreatePipelineRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The Amazon Resource Name (ARN) of the role used by the pipeline to access and * create resources.

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

The Amazon Resource Name (ARN) of the role used by the pipeline to access and * create resources.

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

The Amazon Resource Name (ARN) of the role used by the pipeline to access and * create resources.

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

The Amazon Resource Name (ARN) of the role used by the pipeline to access and * create resources.

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

The Amazon Resource Name (ARN) of the role used by the pipeline to access and * create resources.

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

The Amazon Resource Name (ARN) of the role used by the pipeline to access and * create resources.

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

The Amazon Resource Name (ARN) of the role used by the pipeline to access and * create resources.

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

The Amazon Resource Name (ARN) of the role used by the pipeline to access and * create resources.

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

A list of tags to apply to the created pipeline.

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

A list of tags to apply to the created pipeline.

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

A list of tags to apply to the created pipeline.

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

A list of tags to apply to the created pipeline.

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

A list of tags to apply to the created pipeline.

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

A list of tags to apply to the created pipeline.

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

A list of tags to apply to the created pipeline.

*/ inline CreatePipelineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags to apply to the created pipeline.

*/ inline CreatePipelineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

This is the configuration that controls the parallelism of the pipeline. If * specified, it applies to all runs of this pipeline by default.

*/ inline const ParallelismConfiguration& GetParallelismConfiguration() const{ return m_parallelismConfiguration; } /** *

This is the configuration that controls the parallelism of the pipeline. If * specified, it applies to all runs of this pipeline by default.

*/ inline bool ParallelismConfigurationHasBeenSet() const { return m_parallelismConfigurationHasBeenSet; } /** *

This is the configuration that controls the parallelism of the pipeline. If * specified, it applies to all runs of this pipeline by default.

*/ inline void SetParallelismConfiguration(const ParallelismConfiguration& value) { m_parallelismConfigurationHasBeenSet = true; m_parallelismConfiguration = value; } /** *

This is the configuration that controls the parallelism of the pipeline. If * specified, it applies to all runs of this pipeline by default.

*/ inline void SetParallelismConfiguration(ParallelismConfiguration&& value) { m_parallelismConfigurationHasBeenSet = true; m_parallelismConfiguration = std::move(value); } /** *

This is the configuration that controls the parallelism of the pipeline. If * specified, it applies to all runs of this pipeline by default.

*/ inline CreatePipelineRequest& WithParallelismConfiguration(const ParallelismConfiguration& value) { SetParallelismConfiguration(value); return *this;} /** *

This is the configuration that controls the parallelism of the pipeline. If * specified, it applies to all runs of this pipeline by default.

*/ inline CreatePipelineRequest& WithParallelismConfiguration(ParallelismConfiguration&& value) { SetParallelismConfiguration(std::move(value)); return *this;} private: Aws::String m_pipelineName; bool m_pipelineNameHasBeenSet = false; Aws::String m_pipelineDisplayName; bool m_pipelineDisplayNameHasBeenSet = false; Aws::String m_pipelineDefinition; bool m_pipelineDefinitionHasBeenSet = false; PipelineDefinitionS3Location m_pipelineDefinitionS3Location; bool m_pipelineDefinitionS3LocationHasBeenSet = false; Aws::String m_pipelineDescription; bool m_pipelineDescriptionHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; ParallelismConfiguration m_parallelismConfiguration; bool m_parallelismConfigurationHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws