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

Lists a summary of the properties of an association. An association is an * entity that links other lineage or experiment entities. An example would be an * association between a training job and a model.

See Also:

AWS * API Reference

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

The ARN of the source.

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

The ARN of the source.

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

The ARN of the source.

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

The ARN of the source.

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

The ARN of the source.

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

The ARN of the source.

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

The ARN of the source.

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

The ARN of the source.

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

The Amazon Resource Name (ARN) of the destination.

*/ inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; } /** *

The Amazon Resource Name (ARN) of the destination.

*/ inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the destination.

*/ inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; } /** *

The Amazon Resource Name (ARN) of the destination.

*/ inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the destination.

*/ inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the destination.

*/ inline AssociationSummary& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the destination.

*/ inline AssociationSummary& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the destination.

*/ inline AssociationSummary& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;} /** *

The source type.

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

The source type.

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

The source type.

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

The source type.

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

The source type.

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

The source type.

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

The source type.

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

The source type.

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

The destination type.

*/ inline const Aws::String& GetDestinationType() const{ return m_destinationType; } /** *

The destination type.

*/ inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; } /** *

The destination type.

*/ inline void SetDestinationType(const Aws::String& value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; } /** *

The destination type.

*/ inline void SetDestinationType(Aws::String&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::move(value); } /** *

The destination type.

*/ inline void SetDestinationType(const char* value) { m_destinationTypeHasBeenSet = true; m_destinationType.assign(value); } /** *

The destination type.

*/ inline AssociationSummary& WithDestinationType(const Aws::String& value) { SetDestinationType(value); return *this;} /** *

The destination type.

*/ inline AssociationSummary& WithDestinationType(Aws::String&& value) { SetDestinationType(std::move(value)); return *this;} /** *

The destination type.

*/ inline AssociationSummary& WithDestinationType(const char* value) { SetDestinationType(value); return *this;} /** *

The type of the association.

*/ inline const AssociationEdgeType& GetAssociationType() const{ return m_associationType; } /** *

The type of the association.

*/ inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; } /** *

The type of the association.

*/ inline void SetAssociationType(const AssociationEdgeType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; } /** *

The type of the association.

*/ inline void SetAssociationType(AssociationEdgeType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); } /** *

The type of the association.

*/ inline AssociationSummary& WithAssociationType(const AssociationEdgeType& value) { SetAssociationType(value); return *this;} /** *

The type of the association.

*/ inline AssociationSummary& WithAssociationType(AssociationEdgeType&& value) { SetAssociationType(std::move(value)); return *this;} /** *

The name of the source.

*/ inline const Aws::String& GetSourceName() const{ return m_sourceName; } /** *

The name of the source.

*/ inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; } /** *

The name of the source.

*/ inline void SetSourceName(const Aws::String& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; } /** *

The name of the source.

*/ inline void SetSourceName(Aws::String&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); } /** *

The name of the source.

*/ inline void SetSourceName(const char* value) { m_sourceNameHasBeenSet = true; m_sourceName.assign(value); } /** *

The name of the source.

*/ inline AssociationSummary& WithSourceName(const Aws::String& value) { SetSourceName(value); return *this;} /** *

The name of the source.

*/ inline AssociationSummary& WithSourceName(Aws::String&& value) { SetSourceName(std::move(value)); return *this;} /** *

The name of the source.

*/ inline AssociationSummary& WithSourceName(const char* value) { SetSourceName(value); return *this;} /** *

The name of the destination.

*/ inline const Aws::String& GetDestinationName() const{ return m_destinationName; } /** *

The name of the destination.

*/ inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; } /** *

The name of the destination.

*/ inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; } /** *

The name of the destination.

*/ inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); } /** *

The name of the destination.

*/ inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); } /** *

The name of the destination.

*/ inline AssociationSummary& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;} /** *

The name of the destination.

*/ inline AssociationSummary& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;} /** *

The name of the destination.

*/ inline AssociationSummary& WithDestinationName(const char* value) { SetDestinationName(value); return *this;} /** *

When the association was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

When the association was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the association was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

When the association was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

When the association was created.

*/ inline AssociationSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

When the association was created.

*/ inline AssociationSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} inline const UserContext& GetCreatedBy() const{ return m_createdBy; } inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } inline void SetCreatedBy(const UserContext& value) { m_createdByHasBeenSet = true; m_createdBy = value; } inline void SetCreatedBy(UserContext&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } inline AssociationSummary& WithCreatedBy(const UserContext& value) { SetCreatedBy(value); return *this;} inline AssociationSummary& WithCreatedBy(UserContext&& value) { SetCreatedBy(std::move(value)); return *this;} private: Aws::String m_sourceArn; bool m_sourceArnHasBeenSet = false; Aws::String m_destinationArn; bool m_destinationArnHasBeenSet = false; Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; Aws::String m_destinationType; bool m_destinationTypeHasBeenSet = false; AssociationEdgeType m_associationType; bool m_associationTypeHasBeenSet = false; Aws::String m_sourceName; bool m_sourceNameHasBeenSet = false; Aws::String m_destinationName; bool m_destinationNameHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; UserContext m_createdBy; bool m_createdByHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws