/* * 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; /** *

* Represents the output of a GetMLModel operation, and provides detailed information about a * MLModel. *

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

* The MLModel ID, which is same as the MLModelId in the request. *

*/ private String mLModelId; /** *

* The ID of the training DataSource. *

*/ private String trainingDataSourceId; /** *

* The AWS user account from which the MLModel was created. 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 MLModel was created. The time is expressed in epoch time. *

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

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

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

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

*/ private String name; /** *

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

* */ private String status; private Long sizeInBytes; /** *

* The current endpoint of the MLModel *

*/ private RealtimeEndpointInfo endpointInfo; /** *

* A list of the training parameters in the MLModel. The list is implemented as a map of key-value * pairs. *

*

* The following is the current set of training parameters: *

* */ private com.amazonaws.internal.SdkInternalMap trainingParameters; /** *

* The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). *

*/ private String inputDataLocationS3; /** *

* Identifies the MLModel category. The following are the available types: *

* */ private String mLModelType; /** *

* The scoring threshold is used in binary classification MLModel models. It marks the boundary between * a positive prediction and a negative prediction. *

*

* Output values greater than or equal to the threshold receive a positive result from the MLModel, such as * true. Output values less than the threshold receive a negative response from the MLModel, such as * false. *

*/ private Float scoreThreshold; /** *

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

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

* A link to the file that contains logs of the CreateMLModel operation. *

*/ private String logUri; /** *

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

*/ private String message; /** *

* The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the MLModel, * normalized and scaled on computation resources. ComputeTime is only available if the * MLModel is in the COMPLETED state. *

*/ private Long computeTime; /** *

* The epoch time when Amazon Machine Learning marked the MLModel as COMPLETED or * FAILED. FinishedAt is only available when the MLModel is in the * COMPLETED or FAILED state. *

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

* The epoch time when Amazon Machine Learning marked the MLModel as INPROGRESS. * StartedAt isn't available if the MLModel is in the PENDING state. *

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

* The recipe to use when training the MLModel. The Recipe provides detailed information * about the observation data to use during training, and manipulations to perform on the observation data during * training. *

*

* Note: This parameter is provided as part of the verbose format. *

*/ private String recipe; /** *

* The schema used by all of the data files referenced by the DataSource. *

*

* Note: This parameter is provided as part of the verbose format. *

*/ private String schema; /** *

* The MLModel ID, which is same as the MLModelId in the request. *

* * @param mLModelId * The MLModel ID, which is same as the MLModelId in the request. */ public void setMLModelId(String mLModelId) { this.mLModelId = mLModelId; } /** *

* The MLModel ID, which is same as the MLModelId in the request. *

* * @return The MLModel ID, which is same as the MLModelId in the request. */ public String getMLModelId() { return this.mLModelId; } /** *

* The MLModel ID, which is same as the MLModelId in the request. *

* * @param mLModelId * The MLModel ID, which is same as the MLModelId in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLModelResult withMLModelId(String mLModelId) { setMLModelId(mLModelId); return this; } /** *

* The ID of the training DataSource. *

* * @param trainingDataSourceId * The ID of the training DataSource. */ public void setTrainingDataSourceId(String trainingDataSourceId) { this.trainingDataSourceId = trainingDataSourceId; } /** *

* The ID of the training DataSource. *

* * @return The ID of the training DataSource. */ public String getTrainingDataSourceId() { return this.trainingDataSourceId; } /** *

* The ID of the training DataSource. *

* * @param trainingDataSourceId * The ID of the training DataSource. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLModelResult withTrainingDataSourceId(String trainingDataSourceId) { setTrainingDataSourceId(trainingDataSourceId); return this; } /** *

* The AWS user account from which the MLModel was created. 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 from which the MLModel was created. 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 from which the MLModel was created. 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 from which the MLModel was created. 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 from which the MLModel was created. 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 from which the MLModel was created. 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 GetMLModelResult withCreatedByIamUser(String createdByIamUser) { setCreatedByIamUser(createdByIamUser); return this; } /** *

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

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

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

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

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

* * @param createdAt * The time that the MLModel 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 GetMLModelResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

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

* * @param lastUpdatedAt * The time of the most recent edit to the MLModel. 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 MLModel. The time is expressed in epoch time. *

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

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

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

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

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

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

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

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

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

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

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

*