com.amazonaws.services.sagemaker.model.DescribeExperimentResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker Show documentation
/*
* 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeExperimentResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The name of the experiment.
*
*/
private String experimentName;
/**
*
* The Amazon Resource Name (ARN) of the experiment.
*
*/
private String experimentArn;
/**
*
* The name of the experiment as displayed. If DisplayName
isn't specified, ExperimentName
* is displayed.
*
*/
private String displayName;
/**
*
* The Amazon Resource Name (ARN) of the source and, optionally, the type.
*
*/
private ExperimentSource source;
/**
*
* The description of the experiment.
*
*/
private String description;
/**
*
* When the experiment was created.
*
*/
private java.util.Date creationTime;
/**
*
* Who created the experiment.
*
*/
private UserContext createdBy;
/**
*
* When the experiment was last modified.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* Who last modified the experiment.
*
*/
private UserContext lastModifiedBy;
/**
*
* The name of the experiment.
*
*
* @param experimentName
* The name of the experiment.
*/
public void setExperimentName(String experimentName) {
this.experimentName = experimentName;
}
/**
*
* The name of the experiment.
*
*
* @return The name of the experiment.
*/
public String getExperimentName() {
return this.experimentName;
}
/**
*
* The name of the experiment.
*
*
* @param experimentName
* The name of the experiment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withExperimentName(String experimentName) {
setExperimentName(experimentName);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the experiment.
*
*
* @param experimentArn
* The Amazon Resource Name (ARN) of the experiment.
*/
public void setExperimentArn(String experimentArn) {
this.experimentArn = experimentArn;
}
/**
*
* The Amazon Resource Name (ARN) of the experiment.
*
*
* @return The Amazon Resource Name (ARN) of the experiment.
*/
public String getExperimentArn() {
return this.experimentArn;
}
/**
*
* The Amazon Resource Name (ARN) of the experiment.
*
*
* @param experimentArn
* The Amazon Resource Name (ARN) of the experiment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withExperimentArn(String experimentArn) {
setExperimentArn(experimentArn);
return this;
}
/**
*
* The name of the experiment as displayed. If DisplayName
isn't specified, ExperimentName
* is displayed.
*
*
* @param displayName
* The name of the experiment as displayed. If DisplayName
isn't specified,
* ExperimentName
is displayed.
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
*
* The name of the experiment as displayed. If DisplayName
isn't specified, ExperimentName
* is displayed.
*
*
* @return The name of the experiment as displayed. If DisplayName
isn't specified,
* ExperimentName
is displayed.
*/
public String getDisplayName() {
return this.displayName;
}
/**
*
* The name of the experiment as displayed. If DisplayName
isn't specified, ExperimentName
* is displayed.
*
*
* @param displayName
* The name of the experiment as displayed. If DisplayName
isn't specified,
* ExperimentName
is displayed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withDisplayName(String displayName) {
setDisplayName(displayName);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the source and, optionally, the type.
*
*
* @param source
* The Amazon Resource Name (ARN) of the source and, optionally, the type.
*/
public void setSource(ExperimentSource source) {
this.source = source;
}
/**
*
* The Amazon Resource Name (ARN) of the source and, optionally, the type.
*
*
* @return The Amazon Resource Name (ARN) of the source and, optionally, the type.
*/
public ExperimentSource getSource() {
return this.source;
}
/**
*
* The Amazon Resource Name (ARN) of the source and, optionally, the type.
*
*
* @param source
* The Amazon Resource Name (ARN) of the source and, optionally, the type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withSource(ExperimentSource source) {
setSource(source);
return this;
}
/**
*
* The description of the experiment.
*
*
* @param description
* The description of the experiment.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the experiment.
*
*
* @return The description of the experiment.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the experiment.
*
*
* @param description
* The description of the experiment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* When the experiment was created.
*
*
* @param creationTime
* When the experiment was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* When the experiment was created.
*
*
* @return When the experiment was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* When the experiment was created.
*
*
* @param creationTime
* When the experiment was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* Who created the experiment.
*
*
* @param createdBy
* Who created the experiment.
*/
public void setCreatedBy(UserContext createdBy) {
this.createdBy = createdBy;
}
/**
*
* Who created the experiment.
*
*
* @return Who created the experiment.
*/
public UserContext getCreatedBy() {
return this.createdBy;
}
/**
*
* Who created the experiment.
*
*
* @param createdBy
* Who created the experiment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withCreatedBy(UserContext createdBy) {
setCreatedBy(createdBy);
return this;
}
/**
*
* When the experiment was last modified.
*
*
* @param lastModifiedTime
* When the experiment was last modified.
*/
public void setLastModifiedTime(java.util.Date lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
/**
*
* When the experiment was last modified.
*
*
* @return When the experiment was last modified.
*/
public java.util.Date getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
*
* When the experiment was last modified.
*
*
* @param lastModifiedTime
* When the experiment was last modified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
return this;
}
/**
*
* Who last modified the experiment.
*
*
* @param lastModifiedBy
* Who last modified the experiment.
*/
public void setLastModifiedBy(UserContext lastModifiedBy) {
this.lastModifiedBy = lastModifiedBy;
}
/**
*
* Who last modified the experiment.
*
*
* @return Who last modified the experiment.
*/
public UserContext getLastModifiedBy() {
return this.lastModifiedBy;
}
/**
*
* Who last modified the experiment.
*
*
* @param lastModifiedBy
* Who last modified the experiment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExperimentResult withLastModifiedBy(UserContext lastModifiedBy) {
setLastModifiedBy(lastModifiedBy);
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 (getExperimentName() != null)
sb.append("ExperimentName: ").append(getExperimentName()).append(",");
if (getExperimentArn() != null)
sb.append("ExperimentArn: ").append(getExperimentArn()).append(",");
if (getDisplayName() != null)
sb.append("DisplayName: ").append(getDisplayName()).append(",");
if (getSource() != null)
sb.append("Source: ").append(getSource()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getCreatedBy() != null)
sb.append("CreatedBy: ").append(getCreatedBy()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
if (getLastModifiedBy() != null)
sb.append("LastModifiedBy: ").append(getLastModifiedBy());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeExperimentResult == false)
return false;
DescribeExperimentResult other = (DescribeExperimentResult) obj;
if (other.getExperimentName() == null ^ this.getExperimentName() == null)
return false;
if (other.getExperimentName() != null && other.getExperimentName().equals(this.getExperimentName()) == false)
return false;
if (other.getExperimentArn() == null ^ this.getExperimentArn() == null)
return false;
if (other.getExperimentArn() != null && other.getExperimentArn().equals(this.getExperimentArn()) == false)
return false;
if (other.getDisplayName() == null ^ this.getDisplayName() == null)
return false;
if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false)
return false;
if (other.getSource() == null ^ this.getSource() == null)
return false;
if (other.getSource() != null && other.getSource().equals(this.getSource()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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;
if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false)
return false;
if (other.getLastModifiedBy() == null ^ this.getLastModifiedBy() == null)
return false;
if (other.getLastModifiedBy() != null && other.getLastModifiedBy().equals(this.getLastModifiedBy()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getExperimentName() == null) ? 0 : getExperimentName().hashCode());
hashCode = prime * hashCode + ((getExperimentArn() == null) ? 0 : getExperimentArn().hashCode());
hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode());
hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
hashCode = prime * hashCode + ((getLastModifiedBy() == null) ? 0 : getLastModifiedBy().hashCode());
return hashCode;
}
@Override
public DescribeExperimentResult clone() {
try {
return (DescribeExperimentResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}