/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateTrialComponentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the component. The name must be unique in your Amazon Web Services account and is not case-sensitive. *
*/ private String trialComponentName; /** *
* The name of the component as displayed. The name doesn't need to be unique. If DisplayName
isn't
* specified, TrialComponentName
is displayed.
*
* The status of the component. States include: *
** InProgress *
** Completed *
** Failed *
** When the component started. *
*/ private java.util.Date startTime; /** ** When the component ended. *
*/ private java.util.Date endTime; /** ** The hyperparameters for the component. *
*/ private java.util.Map* The input artifacts for the component. Examples of input artifacts are datasets, algorithms, hyperparameters, * source code, and instance types. *
*/ private java.util.Map* The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and images. *
*/ private java.util.Map* A list of tags to associate with the component. You can use Search API to search on the * tags. *
*/ private java.util.List* The name of the component. The name must be unique in your Amazon Web Services account and is not case-sensitive. *
* * @param trialComponentName * The name of the component. The name must be unique in your Amazon Web Services account and is not * case-sensitive. */ public void setTrialComponentName(String trialComponentName) { this.trialComponentName = trialComponentName; } /** ** The name of the component. The name must be unique in your Amazon Web Services account and is not case-sensitive. *
* * @return The name of the component. The name must be unique in your Amazon Web Services account and is not * case-sensitive. */ public String getTrialComponentName() { return this.trialComponentName; } /** ** The name of the component. The name must be unique in your Amazon Web Services account and is not case-sensitive. *
* * @param trialComponentName * The name of the component. The name must be unique in your Amazon Web Services account and is not * case-sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrialComponentRequest withTrialComponentName(String trialComponentName) { setTrialComponentName(trialComponentName); return this; } /** *
* The name of the component as displayed. The name doesn't need to be unique. If DisplayName
isn't
* specified, TrialComponentName
is displayed.
*
DisplayName
* isn't specified, TrialComponentName
is displayed.
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
*
* The name of the component as displayed. The name doesn't need to be unique. If DisplayName
isn't
* specified, TrialComponentName
is displayed.
*
DisplayName
* isn't specified, TrialComponentName
is displayed.
*/
public String getDisplayName() {
return this.displayName;
}
/**
*
* The name of the component as displayed. The name doesn't need to be unique. If DisplayName
isn't
* specified, TrialComponentName
is displayed.
*
DisplayName
* isn't specified, TrialComponentName
is displayed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateTrialComponentRequest withDisplayName(String displayName) {
setDisplayName(displayName);
return this;
}
/**
* * The status of the component. States include: *
** InProgress *
** Completed *
** Failed *
** InProgress *
** Completed *
** Failed *
** The status of the component. States include: *
** InProgress *
** Completed *
** Failed *
** InProgress *
** Completed *
** Failed *
** The status of the component. States include: *
** InProgress *
** Completed *
** Failed *
** InProgress *
** Completed *
** Failed *
** When the component started. *
* * @param startTime * When the component started. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** When the component started. *
* * @return When the component started. */ public java.util.Date getStartTime() { return this.startTime; } /** ** When the component started. *
* * @param startTime * When the component started. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrialComponentRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** When the component ended. *
* * @param endTime * When the component ended. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** When the component ended. *
* * @return When the component ended. */ public java.util.Date getEndTime() { return this.endTime; } /** ** When the component ended. *
* * @param endTime * When the component ended. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrialComponentRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** ** The hyperparameters for the component. *
* * @return The hyperparameters for the component. */ public java.util.Map* The hyperparameters for the component. *
* * @param parameters * The hyperparameters for the component. */ public void setParameters(java.util.Map* The hyperparameters for the component. *
* * @param parameters * The hyperparameters for the component. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrialComponentRequest withParameters(java.util.Map* The input artifacts for the component. Examples of input artifacts are datasets, algorithms, hyperparameters, * source code, and instance types. *
* * @return The input artifacts for the component. Examples of input artifacts are datasets, algorithms, * hyperparameters, source code, and instance types. */ public java.util.Map* The input artifacts for the component. Examples of input artifacts are datasets, algorithms, hyperparameters, * source code, and instance types. *
* * @param inputArtifacts * The input artifacts for the component. Examples of input artifacts are datasets, algorithms, * hyperparameters, source code, and instance types. */ public void setInputArtifacts(java.util.Map* The input artifacts for the component. Examples of input artifacts are datasets, algorithms, hyperparameters, * source code, and instance types. *
* * @param inputArtifacts * The input artifacts for the component. Examples of input artifacts are datasets, algorithms, * hyperparameters, source code, and instance types. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrialComponentRequest withInputArtifacts(java.util.Map* The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and images. *
* * @return The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and * images. */ public java.util.Map* The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and images. *
* * @param outputArtifacts * The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and * images. */ public void setOutputArtifacts(java.util.Map* The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and images. *
* * @param outputArtifacts * The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and * images. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrialComponentRequest withOutputArtifacts(java.util.Map* A list of tags to associate with the component. You can use Search API to search on the * tags. *
* * @return A list of tags to associate with the component. You can use Search API to search * on the tags. */ public java.util.List* A list of tags to associate with the component. You can use Search API to search on the * tags. *
* * @param tags * A list of tags to associate with the component. You can use Search API to search * on the tags. */ public void setTags(java.util.Collection* A list of tags to associate with the component. 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 * A list of tags to associate with the component. 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 CreateTrialComponentRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of tags to associate with the component. You can use Search API to search on the * tags. *
* * @param tags * A list of tags to associate with the component. 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 CreateTrialComponentRequest withTags(java.util.Collection