/* * 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 a GetMLModel operation. *

*

* The content consists of the detailed metadata and the current status of the MLModel. *

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

* The ID assigned to the MLModel at creation. *

*/ private String mLModelId; /** *

* The ID of the training DataSource. The CreateMLModel operation uses the * TrainingDataSourceId. *

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

* The algorithm used to train the MLModel. The following algorithm is supported: *

* */ private String algorithm; /** *

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

* */ private String mLModelType; 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 description of the most recent details about accessing the MLModel. *

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

* The ID assigned to the MLModel at creation. *

* * @param mLModelId * The ID assigned to the MLModel at creation. */ public void setMLModelId(String mLModelId) { this.mLModelId = mLModelId; } /** *

* The ID assigned to the MLModel at creation. *

* * @return The ID assigned to the MLModel at creation. */ public String getMLModelId() { return this.mLModelId; } /** *

* The ID assigned to the MLModel at creation. *

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

* The ID of the training DataSource. The CreateMLModel operation uses the * TrainingDataSourceId. *

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

* The ID of the training DataSource. The CreateMLModel operation uses the * TrainingDataSourceId. *

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

* The ID of the training DataSource. The CreateMLModel operation uses the * TrainingDataSourceId. *

* * @param trainingDataSourceId * The ID of the training DataSource. The CreateMLModel operation uses the * TrainingDataSourceId. * @return Returns a reference to this object so that method calls can be chained together. */ public MLModel 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 MLModel 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 MLModel 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 MLModel 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 MLModel withName(String name) { setName(name); return this; } /** *

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

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

*