/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Detailed information about the source of a trial component. Either * ProcessingJob or TrainingJob is * returned.

See Also:

AWS * API Reference

*/ class TrialComponentSourceDetail { public: AWS_SAGEMAKER_API TrialComponentSourceDetail(); AWS_SAGEMAKER_API TrialComponentSourceDetail(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API TrialComponentSourceDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the source.

*/ inline const Aws::String& GetSourceArn() const{ return m_sourceArn; } /** *

The Amazon Resource Name (ARN) of the source.

*/ inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the source.

*/ inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; } /** *

The Amazon Resource Name (ARN) of the source.

*/ inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the source.

*/ inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the source.

*/ inline TrialComponentSourceDetail& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the source.

*/ inline TrialComponentSourceDetail& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the source.

*/ inline TrialComponentSourceDetail& WithSourceArn(const char* value) { SetSourceArn(value); return *this;} /** *

Information about a training job that's the source of a trial component.

*/ inline const TrainingJob& GetTrainingJob() const{ return m_trainingJob; } /** *

Information about a training job that's the source of a trial component.

*/ inline bool TrainingJobHasBeenSet() const { return m_trainingJobHasBeenSet; } /** *

Information about a training job that's the source of a trial component.

*/ inline void SetTrainingJob(const TrainingJob& value) { m_trainingJobHasBeenSet = true; m_trainingJob = value; } /** *

Information about a training job that's the source of a trial component.

*/ inline void SetTrainingJob(TrainingJob&& value) { m_trainingJobHasBeenSet = true; m_trainingJob = std::move(value); } /** *

Information about a training job that's the source of a trial component.

*/ inline TrialComponentSourceDetail& WithTrainingJob(const TrainingJob& value) { SetTrainingJob(value); return *this;} /** *

Information about a training job that's the source of a trial component.

*/ inline TrialComponentSourceDetail& WithTrainingJob(TrainingJob&& value) { SetTrainingJob(std::move(value)); return *this;} /** *

Information about a processing job that's the source of a trial * component.

*/ inline const ProcessingJob& GetProcessingJob() const{ return m_processingJob; } /** *

Information about a processing job that's the source of a trial * component.

*/ inline bool ProcessingJobHasBeenSet() const { return m_processingJobHasBeenSet; } /** *

Information about a processing job that's the source of a trial * component.

*/ inline void SetProcessingJob(const ProcessingJob& value) { m_processingJobHasBeenSet = true; m_processingJob = value; } /** *

Information about a processing job that's the source of a trial * component.

*/ inline void SetProcessingJob(ProcessingJob&& value) { m_processingJobHasBeenSet = true; m_processingJob = std::move(value); } /** *

Information about a processing job that's the source of a trial * component.

*/ inline TrialComponentSourceDetail& WithProcessingJob(const ProcessingJob& value) { SetProcessingJob(value); return *this;} /** *

Information about a processing job that's the source of a trial * component.

*/ inline TrialComponentSourceDetail& WithProcessingJob(ProcessingJob&& value) { SetProcessingJob(std::move(value)); return *this;} /** *

Information about a transform job that's the source of a trial component.

*/ inline const TransformJob& GetTransformJob() const{ return m_transformJob; } /** *

Information about a transform job that's the source of a trial component.

*/ inline bool TransformJobHasBeenSet() const { return m_transformJobHasBeenSet; } /** *

Information about a transform job that's the source of a trial component.

*/ inline void SetTransformJob(const TransformJob& value) { m_transformJobHasBeenSet = true; m_transformJob = value; } /** *

Information about a transform job that's the source of a trial component.

*/ inline void SetTransformJob(TransformJob&& value) { m_transformJobHasBeenSet = true; m_transformJob = std::move(value); } /** *

Information about a transform job that's the source of a trial component.

*/ inline TrialComponentSourceDetail& WithTransformJob(const TransformJob& value) { SetTransformJob(value); return *this;} /** *

Information about a transform job that's the source of a trial component.

*/ inline TrialComponentSourceDetail& WithTransformJob(TransformJob&& value) { SetTransformJob(std::move(value)); return *this;} private: Aws::String m_sourceArn; bool m_sourceArnHasBeenSet = false; TrainingJob m_trainingJob; bool m_trainingJobHasBeenSet = false; ProcessingJob m_processingJob; bool m_processingJobHasBeenSet = false; TransformJob m_transformJob; bool m_transformJobHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws