All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.sagemaker.model.AssociationSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon SageMaker module holds the client classes that are used for communicating with Amazon SageMaker Service

There is a newer version: 1.12.782
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.sagemaker.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* 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 AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AssociationSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The ARN of the source. *

*/ private String sourceArn; /** *

* The Amazon Resource Name (ARN) of the destination. *

*/ private String destinationArn; /** *

* The source type. *

*/ private String sourceType; /** *

* The destination type. *

*/ private String destinationType; /** *

* The type of the association. *

*/ private String associationType; /** *

* The name of the source. *

*/ private String sourceName; /** *

* The name of the destination. *

*/ private String destinationName; /** *

* When the association was created. *

*/ private java.util.Date creationTime; private UserContext createdBy; /** *

* The ARN of the source. *

* * @param sourceArn * The ARN of the source. */ public void setSourceArn(String sourceArn) { this.sourceArn = sourceArn; } /** *

* The ARN of the source. *

* * @return The ARN of the source. */ public String getSourceArn() { return this.sourceArn; } /** *

* The ARN of the source. *

* * @param sourceArn * The ARN of the source. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationSummary withSourceArn(String sourceArn) { setSourceArn(sourceArn); return this; } /** *

* The Amazon Resource Name (ARN) of the destination. *

* * @param destinationArn * The Amazon Resource Name (ARN) of the destination. */ public void setDestinationArn(String destinationArn) { this.destinationArn = destinationArn; } /** *

* The Amazon Resource Name (ARN) of the destination. *

* * @return The Amazon Resource Name (ARN) of the destination. */ public String getDestinationArn() { return this.destinationArn; } /** *

* The Amazon Resource Name (ARN) of the destination. *

* * @param destinationArn * The Amazon Resource Name (ARN) of the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationSummary withDestinationArn(String destinationArn) { setDestinationArn(destinationArn); return this; } /** *

* The source type. *

* * @param sourceType * The source type. */ public void setSourceType(String sourceType) { this.sourceType = sourceType; } /** *

* The source type. *

* * @return The source type. */ public String getSourceType() { return this.sourceType; } /** *

* The source type. *

* * @param sourceType * The source type. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationSummary withSourceType(String sourceType) { setSourceType(sourceType); return this; } /** *

* The destination type. *

* * @param destinationType * The destination type. */ public void setDestinationType(String destinationType) { this.destinationType = destinationType; } /** *

* The destination type. *

* * @return The destination type. */ public String getDestinationType() { return this.destinationType; } /** *

* The destination type. *

* * @param destinationType * The destination type. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationSummary withDestinationType(String destinationType) { setDestinationType(destinationType); return this; } /** *

* The type of the association. *

* * @param associationType * The type of the association. * @see AssociationEdgeType */ public void setAssociationType(String associationType) { this.associationType = associationType; } /** *

* The type of the association. *

* * @return The type of the association. * @see AssociationEdgeType */ public String getAssociationType() { return this.associationType; } /** *

* The type of the association. *

* * @param associationType * The type of the association. * @return Returns a reference to this object so that method calls can be chained together. * @see AssociationEdgeType */ public AssociationSummary withAssociationType(String associationType) { setAssociationType(associationType); return this; } /** *

* The type of the association. *

* * @param associationType * The type of the association. * @return Returns a reference to this object so that method calls can be chained together. * @see AssociationEdgeType */ public AssociationSummary withAssociationType(AssociationEdgeType associationType) { this.associationType = associationType.toString(); return this; } /** *

* The name of the source. *

* * @param sourceName * The name of the source. */ public void setSourceName(String sourceName) { this.sourceName = sourceName; } /** *

* The name of the source. *

* * @return The name of the source. */ public String getSourceName() { return this.sourceName; } /** *

* The name of the source. *

* * @param sourceName * The name of the source. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationSummary withSourceName(String sourceName) { setSourceName(sourceName); return this; } /** *

* The name of the destination. *

* * @param destinationName * The name of the destination. */ public void setDestinationName(String destinationName) { this.destinationName = destinationName; } /** *

* The name of the destination. *

* * @return The name of the destination. */ public String getDestinationName() { return this.destinationName; } /** *

* The name of the destination. *

* * @param destinationName * The name of the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationSummary withDestinationName(String destinationName) { setDestinationName(destinationName); return this; } /** *

* When the association was created. *

* * @param creationTime * When the association was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* When the association was created. *

* * @return When the association was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* When the association was created. *

* * @param creationTime * When the association was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** * @param createdBy */ public void setCreatedBy(UserContext createdBy) { this.createdBy = createdBy; } /** * @return */ public UserContext getCreatedBy() { return this.createdBy; } /** * @param createdBy * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationSummary withCreatedBy(UserContext createdBy) { setCreatedBy(createdBy); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSourceArn() != null) sb.append("SourceArn: ").append(getSourceArn()).append(","); if (getDestinationArn() != null) sb.append("DestinationArn: ").append(getDestinationArn()).append(","); if (getSourceType() != null) sb.append("SourceType: ").append(getSourceType()).append(","); if (getDestinationType() != null) sb.append("DestinationType: ").append(getDestinationType()).append(","); if (getAssociationType() != null) sb.append("AssociationType: ").append(getAssociationType()).append(","); if (getSourceName() != null) sb.append("SourceName: ").append(getSourceName()).append(","); if (getDestinationName() != null) sb.append("DestinationName: ").append(getDestinationName()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociationSummary == false) return false; AssociationSummary other = (AssociationSummary) obj; if (other.getSourceArn() == null ^ this.getSourceArn() == null) return false; if (other.getSourceArn() != null && other.getSourceArn().equals(this.getSourceArn()) == false) return false; if (other.getDestinationArn() == null ^ this.getDestinationArn() == null) return false; if (other.getDestinationArn() != null && other.getDestinationArn().equals(this.getDestinationArn()) == false) return false; if (other.getSourceType() == null ^ this.getSourceType() == null) return false; if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false) return false; if (other.getDestinationType() == null ^ this.getDestinationType() == null) return false; if (other.getDestinationType() != null && other.getDestinationType().equals(this.getDestinationType()) == false) return false; if (other.getAssociationType() == null ^ this.getAssociationType() == null) return false; if (other.getAssociationType() != null && other.getAssociationType().equals(this.getAssociationType()) == false) return false; if (other.getSourceName() == null ^ this.getSourceName() == null) return false; if (other.getSourceName() != null && other.getSourceName().equals(this.getSourceName()) == false) return false; if (other.getDestinationName() == null ^ this.getDestinationName() == null) return false; if (other.getDestinationName() != null && other.getDestinationName().equals(this.getDestinationName()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceArn() == null) ? 0 : getSourceArn().hashCode()); hashCode = prime * hashCode + ((getDestinationArn() == null) ? 0 : getDestinationArn().hashCode()); hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode()); hashCode = prime * hashCode + ((getDestinationType() == null) ? 0 : getDestinationType().hashCode()); hashCode = prime * hashCode + ((getAssociationType() == null) ? 0 : getAssociationType().hashCode()); hashCode = prime * hashCode + ((getSourceName() == null) ? 0 : getSourceName().hashCode()); hashCode = prime * hashCode + ((getDestinationName() == null) ? 0 : getDestinationName().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); return hashCode; } @Override public AssociationSummary clone() { try { return (AssociationSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.AssociationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy