/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

The source of the trial.

See Also:

AWS * API Reference

*/ class TrialSource { public: AWS_SAGEMAKER_API TrialSource(); AWS_SAGEMAKER_API TrialSource(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API TrialSource& 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 TrialSource& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the source.

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

The Amazon Resource Name (ARN) of the source.

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

The source job type.

*/ inline const Aws::String& GetSourceType() const{ return m_sourceType; } /** *

The source job type.

*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *

The source job type.

*/ inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *

The source job type.

*/ inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *

The source job type.

*/ inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); } /** *

The source job type.

*/ inline TrialSource& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;} /** *

The source job type.

*/ inline TrialSource& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;} /** *

The source job type.

*/ inline TrialSource& WithSourceType(const char* value) { SetSourceType(value); return *this;} private: Aws::String m_sourceArn; bool m_sourceArnHasBeenSet = false; Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws