/** * 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 { /** *

A structure describing the source of an action.

See Also:

AWS * API Reference

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

The URI of the source.

*/ inline const Aws::String& GetSourceUri() const{ return m_sourceUri; } /** *

The URI of the source.

*/ inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; } /** *

The URI of the source.

*/ inline void SetSourceUri(const Aws::String& value) { m_sourceUriHasBeenSet = true; m_sourceUri = value; } /** *

The URI of the source.

*/ inline void SetSourceUri(Aws::String&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::move(value); } /** *

The URI of the source.

*/ inline void SetSourceUri(const char* value) { m_sourceUriHasBeenSet = true; m_sourceUri.assign(value); } /** *

The URI of the source.

*/ inline ActionSource& WithSourceUri(const Aws::String& value) { SetSourceUri(value); return *this;} /** *

The URI of the source.

*/ inline ActionSource& WithSourceUri(Aws::String&& value) { SetSourceUri(std::move(value)); return *this;} /** *

The URI of the source.

*/ inline ActionSource& WithSourceUri(const char* value) { SetSourceUri(value); return *this;} /** *

The type of the source.

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

The type of the source.

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

The type of the source.

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

The type of the source.

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

The type of the source.

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

The type of the source.

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

The type of the source.

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

The type of the source.

*/ inline ActionSource& WithSourceType(const char* value) { SetSourceType(value); return *this;} /** *

The ID of the source.

*/ inline const Aws::String& GetSourceId() const{ return m_sourceId; } /** *

The ID of the source.

*/ inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; } /** *

The ID of the source.

*/ inline void SetSourceId(const Aws::String& value) { m_sourceIdHasBeenSet = true; m_sourceId = value; } /** *

The ID of the source.

*/ inline void SetSourceId(Aws::String&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::move(value); } /** *

The ID of the source.

*/ inline void SetSourceId(const char* value) { m_sourceIdHasBeenSet = true; m_sourceId.assign(value); } /** *

The ID of the source.

*/ inline ActionSource& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;} /** *

The ID of the source.

*/ inline ActionSource& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;} /** *

The ID of the source.

*/ inline ActionSource& WithSourceId(const char* value) { SetSourceId(value); return *this;} private: Aws::String m_sourceUri; bool m_sourceUriHasBeenSet = false; Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; Aws::String m_sourceId; bool m_sourceIdHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws