/* * 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.machinelearning.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents the output of GetEvaluation operation. *

*

* The content consists of the detailed metadata and data file information and the current status of the * Evaluation. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Evaluation implements Serializable, Cloneable, StructuredPojo { /** *

* The ID that is assigned to the Evaluation at creation. *

*/ private String evaluationId; /** *

* The ID of the MLModel that is the focus of the evaluation. *

*/ private String mLModelId; /** *

* The ID of the DataSource that is used to evaluate the MLModel. *

*/ private String evaluationDataSourceId; /** *

* The location and name of the data in Amazon Simple Storage Server (Amazon S3) that is used in the evaluation. *

*/ private String inputDataLocationS3; /** *

* The AWS user account that invoked the evaluation. The account type can be either an AWS root account or an AWS * Identity and Access Management (IAM) user account. *

*/ private String createdByIamUser; /** *

* The time that the Evaluation was created. The time is expressed in epoch time. *

*/ private java.util.Date createdAt; /** *

* The time of the most recent edit to the Evaluation. The time is expressed in epoch time. *

*/ private java.util.Date lastUpdatedAt; /** *

* A user-supplied name or description of the Evaluation. *

*/ private String name; /** *

* The status of the evaluation. This element can have one of the following values: *

* */ private String status; /** *

* Measurements of how well the MLModel performed, using observations referenced by the * DataSource. One of the following metrics is returned, based on the type of the MLModel: *

* *

* For more information about performance metrics, please see the Amazon Machine Learning Developer Guide. *

*/ private PerformanceMetrics performanceMetrics; /** *

* A description of the most recent details about evaluating the MLModel. *

*/ private String message; private Long computeTime; private java.util.Date finishedAt; private java.util.Date startedAt; /** *

* The ID that is assigned to the Evaluation at creation. *

* * @param evaluationId * The ID that is assigned to the Evaluation at creation. */ public void setEvaluationId(String evaluationId) { this.evaluationId = evaluationId; } /** *

* The ID that is assigned to the Evaluation at creation. *

* * @return The ID that is assigned to the Evaluation at creation. */ public String getEvaluationId() { return this.evaluationId; } /** *

* The ID that is assigned to the Evaluation at creation. *

* * @param evaluationId * The ID that is assigned to the Evaluation at creation. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withEvaluationId(String evaluationId) { setEvaluationId(evaluationId); return this; } /** *

* The ID of the MLModel that is the focus of the evaluation. *

* * @param mLModelId * The ID of the MLModel that is the focus of the evaluation. */ public void setMLModelId(String mLModelId) { this.mLModelId = mLModelId; } /** *

* The ID of the MLModel that is the focus of the evaluation. *

* * @return The ID of the MLModel that is the focus of the evaluation. */ public String getMLModelId() { return this.mLModelId; } /** *

* The ID of the MLModel that is the focus of the evaluation. *

* * @param mLModelId * The ID of the MLModel that is the focus of the evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withMLModelId(String mLModelId) { setMLModelId(mLModelId); return this; } /** *

* The ID of the DataSource that is used to evaluate the MLModel. *

* * @param evaluationDataSourceId * The ID of the DataSource that is used to evaluate the MLModel. */ public void setEvaluationDataSourceId(String evaluationDataSourceId) { this.evaluationDataSourceId = evaluationDataSourceId; } /** *

* The ID of the DataSource that is used to evaluate the MLModel. *

* * @return The ID of the DataSource that is used to evaluate the MLModel. */ public String getEvaluationDataSourceId() { return this.evaluationDataSourceId; } /** *

* The ID of the DataSource that is used to evaluate the MLModel. *

* * @param evaluationDataSourceId * The ID of the DataSource that is used to evaluate the MLModel. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withEvaluationDataSourceId(String evaluationDataSourceId) { setEvaluationDataSourceId(evaluationDataSourceId); return this; } /** *

* The location and name of the data in Amazon Simple Storage Server (Amazon S3) that is used in the evaluation. *

* * @param inputDataLocationS3 * The location and name of the data in Amazon Simple Storage Server (Amazon S3) that is used in the * evaluation. */ public void setInputDataLocationS3(String inputDataLocationS3) { this.inputDataLocationS3 = inputDataLocationS3; } /** *

* The location and name of the data in Amazon Simple Storage Server (Amazon S3) that is used in the evaluation. *

* * @return The location and name of the data in Amazon Simple Storage Server (Amazon S3) that is used in the * evaluation. */ public String getInputDataLocationS3() { return this.inputDataLocationS3; } /** *

* The location and name of the data in Amazon Simple Storage Server (Amazon S3) that is used in the evaluation. *

* * @param inputDataLocationS3 * The location and name of the data in Amazon Simple Storage Server (Amazon S3) that is used in the * evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withInputDataLocationS3(String inputDataLocationS3) { setInputDataLocationS3(inputDataLocationS3); return this; } /** *

* The AWS user account that invoked the evaluation. The account type can be either an AWS root account or an AWS * Identity and Access Management (IAM) user account. *

* * @param createdByIamUser * The AWS user account that invoked the evaluation. The account type can be either an AWS root account or an * AWS Identity and Access Management (IAM) user account. */ public void setCreatedByIamUser(String createdByIamUser) { this.createdByIamUser = createdByIamUser; } /** *

* The AWS user account that invoked the evaluation. The account type can be either an AWS root account or an AWS * Identity and Access Management (IAM) user account. *

* * @return The AWS user account that invoked the evaluation. The account type can be either an AWS root account or * an AWS Identity and Access Management (IAM) user account. */ public String getCreatedByIamUser() { return this.createdByIamUser; } /** *

* The AWS user account that invoked the evaluation. The account type can be either an AWS root account or an AWS * Identity and Access Management (IAM) user account. *

* * @param createdByIamUser * The AWS user account that invoked the evaluation. The account type can be either an AWS root account or an * AWS Identity and Access Management (IAM) user account. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withCreatedByIamUser(String createdByIamUser) { setCreatedByIamUser(createdByIamUser); return this; } /** *

* The time that the Evaluation was created. The time is expressed in epoch time. *

* * @param createdAt * The time that the Evaluation was created. The time is expressed in epoch time. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The time that the Evaluation was created. The time is expressed in epoch time. *

* * @return The time that the Evaluation was created. The time is expressed in epoch time. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The time that the Evaluation was created. The time is expressed in epoch time. *

* * @param createdAt * The time that the Evaluation was created. The time is expressed in epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The time of the most recent edit to the Evaluation. The time is expressed in epoch time. *

* * @param lastUpdatedAt * The time of the most recent edit to the Evaluation. The time is expressed in epoch time. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* The time of the most recent edit to the Evaluation. The time is expressed in epoch time. *

* * @return The time of the most recent edit to the Evaluation. The time is expressed in epoch time. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* The time of the most recent edit to the Evaluation. The time is expressed in epoch time. *

* * @param lastUpdatedAt * The time of the most recent edit to the Evaluation. The time is expressed in epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** *

* A user-supplied name or description of the Evaluation. *

* * @param name * A user-supplied name or description of the Evaluation. */ public void setName(String name) { this.name = name; } /** *

* A user-supplied name or description of the Evaluation. *

* * @return A user-supplied name or description of the Evaluation. */ public String getName() { return this.name; } /** *

* A user-supplied name or description of the Evaluation. *

* * @param name * A user-supplied name or description of the Evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withName(String name) { setName(name); return this; } /** *

* The status of the evaluation. This element can have one of the following values: *

* * * @param status * The status of the evaluation. This element can have one of the following values:

*