/* * Copyright 2018-2023 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; /** *
* The properties of an experiment as returned by the Search API. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Experiment implements Serializable, Cloneable, StructuredPojo { /** ** 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.
*
* 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; private UserContext lastModifiedBy; /** ** The list of tags that are associated with the experiment. You can use Search API to search on the * tags. *
*/ private java.util.List* 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 Experiment 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 Experiment withExperimentArn(String experimentArn) { setExperimentArn(experimentArn); return this; } /** *
* The name of the experiment as displayed. If DisplayName
isn't specified, ExperimentName
* is displayed.
*
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.
*
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.
*
DisplayName
isn't specified,
* ExperimentName
is displayed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Experiment withDisplayName(String displayName) {
setDisplayName(displayName);
return this;
}
/**
* @param source
*/
public void setSource(ExperimentSource source) {
this.source = source;
}
/**
* @return
*/
public ExperimentSource getSource() {
return this.source;
}
/**
* @param source
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Experiment 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 Experiment 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 Experiment 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 Experiment 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 Experiment withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** * @param lastModifiedBy */ public void setLastModifiedBy(UserContext lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } /** * @return */ public UserContext getLastModifiedBy() { return this.lastModifiedBy; } /** * @param lastModifiedBy * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withLastModifiedBy(UserContext lastModifiedBy) { setLastModifiedBy(lastModifiedBy); return this; } /** ** The list of tags that are associated with the experiment. You can use Search API to search on the * tags. *
* * @return The list of tags that are associated with the experiment. You can use Search API to search * on the tags. */ public java.util.List* The list of tags that are associated with the experiment. You can use Search API to search on the * tags. *
* * @param tags * The list of tags that are associated with the experiment. You can use Search API to search * on the tags. */ public void setTags(java.util.Collection* The list of tags that are associated with the experiment. You can use Search API to search on the * tags. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The list of tags that are associated with the experiment. You can use Search API to search * on the tags. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The list of tags that are associated with the experiment. You can use Search API to search on the * tags. *
* * @param tags * The list of tags that are associated with the experiment. You can use Search API to search * on the tags. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withTags(java.util.Collection