/*
* 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.lookoutequipment.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeModelResult extends com.amazonaws.AmazonWebServiceResult
* The name of the ML model being described.
*
* The Amazon Resource Name (ARN) of the ML model being described.
*
* The name of the dataset being used by the ML being described.
*
* The Amazon Resouce Name (ARN) of the dataset used to create the ML model being described.
*
* A JSON description of the data that is in each time series dataset, including names, column names, and data
* types.
*
* Specifies configuration information about the labels input, including its S3 location.
*
* Indicates the time reference in the dataset that was used to begin the subset of training data for the ML model.
*
* Indicates the time reference in the dataset that was used to end the subset of training data for the ML model.
*
* Indicates the time reference in the dataset that was used to begin the subset of evaluation data for the ML
* model.
*
* Indicates the time reference in the dataset that was used to end the subset of evaluation data for the ML model.
*
* The Amazon Resource Name (ARN) of a role with permission to access the data source for the ML model being
* described.
*
* The configuration is the
* When providing a value for the
* Specifies the current status of the model being described. Status describes the status of the most recent action
* of the model.
*
* Indicates the time at which the training of the ML model began.
*
* Indicates the time at which the training of the ML model was completed.
*
* If the training of the ML model failed, this indicates the reason for that failure.
*
* The Model Metrics show an aggregated summary of the model's performance within the evaluation time range. This is
* the JSON content of the metrics created when evaluating the model.
*
* Indicates the last time the ML model was updated. The type of update is not specified.
*
* Indicates the time and date at which the ML model was created.
*
* Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment.
*
* Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout
* for Equipment will not use data from this asset for training, evaluation, or inference.
*
* The name of the ML model being described.
*
* The name of the ML model being described.
*
* The name of the ML model being described.
*
* The Amazon Resource Name (ARN) of the ML model being described.
*
* The Amazon Resource Name (ARN) of the ML model being described.
*
* The Amazon Resource Name (ARN) of the ML model being described.
*
* The name of the dataset being used by the ML being described.
*
* The name of the dataset being used by the ML being described.
*
* The name of the dataset being used by the ML being described.
*
* The Amazon Resouce Name (ARN) of the dataset used to create the ML model being described.
*
* The Amazon Resouce Name (ARN) of the dataset used to create the ML model being described.
*
* The Amazon Resouce Name (ARN) of the dataset used to create the ML model being described.
*
* A JSON description of the data that is in each time series dataset, including names, column names, and data
* types.
*
* This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For
* example: '{"key": "value"}'.
*
* The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service.
* Users of the SDK should not perform Base64 encoding on this field.
*
* A JSON description of the data that is in each time series dataset, including names, column names, and data
* types.
*
* This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For
* example: '{"key": "value"}'.
*
* A JSON description of the data that is in each time series dataset, including names, column names, and data
* types.
*
* This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For
* example: '{"key": "value"}'.
*
* The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service.
* Users of the SDK should not perform Base64 encoding on this field.
*
* Specifies configuration information about the labels input, including its S3 location.
*
* Specifies configuration information about the labels input, including its S3 location.
*
* Specifies configuration information about the labels input, including its S3 location.
*
* Indicates the time reference in the dataset that was used to begin the subset of training data for the ML model.
*
* Indicates the time reference in the dataset that was used to begin the subset of training data for the ML model.
*
* Indicates the time reference in the dataset that was used to begin the subset of training data for the ML model.
*
* Indicates the time reference in the dataset that was used to end the subset of training data for the ML model.
*
* Indicates the time reference in the dataset that was used to end the subset of training data for the ML model.
*
* Indicates the time reference in the dataset that was used to end the subset of training data for the ML model.
*
* Indicates the time reference in the dataset that was used to begin the subset of evaluation data for the ML
* model.
*
* Indicates the time reference in the dataset that was used to begin the subset of evaluation data for the ML
* model.
*
* Indicates the time reference in the dataset that was used to begin the subset of evaluation data for the ML
* model.
*
* Indicates the time reference in the dataset that was used to end the subset of evaluation data for the ML model.
*
* Indicates the time reference in the dataset that was used to end the subset of evaluation data for the ML model.
*
* Indicates the time reference in the dataset that was used to end the subset of evaluation data for the ML model.
*
* The Amazon Resource Name (ARN) of a role with permission to access the data source for the ML model being
* described.
*
* The Amazon Resource Name (ARN) of a role with permission to access the data source for the ML model being
* described.
*
* The Amazon Resource Name (ARN) of a role with permission to access the data source for the ML model being
* described.
*
* The configuration is the
* When providing a value for the TargetSamplingRate
, which is the sampling rate of the data after post
* processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1
* second level and you want the system to resample the data at a 1 minute rate before training, the
* TargetSamplingRate
is 1 minute.
* TargetSamplingRate
, you must attach the prefix "PT" to the rate you
* want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is PT15M, and
* the value for a 1 hour rate is PT1H
* TargetSamplingRate
, which is the sampling rate of the data after post
* processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1
* second level and you want the system to resample the data at a 1 minute rate before training, the
* TargetSamplingRate
is 1 minute.
* TargetSamplingRate
, you must attach the prefix "PT" to the rate you
* want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is PT15M, and
* the value for a 1 hour rate is PT1H
* TargetSamplingRate
, which is the sampling rate of the data after
* post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected
* at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the
* TargetSamplingRate
is 1 minute.
* When providing a value for the TargetSamplingRate
, you must attach the prefix "PT" to the
* rate you want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is
* PT15M, and the value for a 1 hour rate is PT1H
*/
public void setDataPreProcessingConfiguration(DataPreProcessingConfiguration dataPreProcessingConfiguration) {
this.dataPreProcessingConfiguration = dataPreProcessingConfiguration;
}
/**
*
* The configuration is the TargetSamplingRate
, which is the sampling rate of the data after post
* processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1
* second level and you want the system to resample the data at a 1 minute rate before training, the
* TargetSamplingRate
is 1 minute.
*
* When providing a value for the TargetSamplingRate
, you must attach the prefix "PT" to the rate you
* want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is PT15M, and
* the value for a 1 hour rate is PT1H
*
TargetSamplingRate
, which is the sampling rate of the data after
* post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected
* at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the
* TargetSamplingRate
is 1 minute.
*
* When providing a value for the TargetSamplingRate
, you must attach the prefix "PT" to the
* rate you want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is
* PT15M, and the value for a 1 hour rate is PT1H
*/
public DataPreProcessingConfiguration getDataPreProcessingConfiguration() {
return this.dataPreProcessingConfiguration;
}
/**
*
* The configuration is the TargetSamplingRate
, which is the sampling rate of the data after post
* processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1
* second level and you want the system to resample the data at a 1 minute rate before training, the
* TargetSamplingRate
is 1 minute.
*
* When providing a value for the TargetSamplingRate
, you must attach the prefix "PT" to the rate you
* want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is PT15M, and
* the value for a 1 hour rate is PT1H
*
TargetSamplingRate
, which is the sampling rate of the data after
* post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected
* at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the
* TargetSamplingRate
is 1 minute.
*
* When providing a value for the TargetSamplingRate
, you must attach the prefix "PT" to the
* rate you want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is
* PT15M, and the value for a 1 hour rate is PT1H
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeModelResult withDataPreProcessingConfiguration(DataPreProcessingConfiguration dataPreProcessingConfiguration) {
setDataPreProcessingConfiguration(dataPreProcessingConfiguration);
return this;
}
/**
*
* Specifies the current status of the model being described. Status describes the status of the most recent action * of the model. *
* * @param status * Specifies the current status of the model being described. Status describes the status of the most recent * action of the model. * @see ModelStatus */ public void setStatus(String status) { this.status = status; } /** ** Specifies the current status of the model being described. Status describes the status of the most recent action * of the model. *
* * @return Specifies the current status of the model being described. Status describes the status of the most recent * action of the model. * @see ModelStatus */ public String getStatus() { return this.status; } /** ** Specifies the current status of the model being described. Status describes the status of the most recent action * of the model. *
* * @param status * Specifies the current status of the model being described. Status describes the status of the most recent * action of the model. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelStatus */ public DescribeModelResult withStatus(String status) { setStatus(status); return this; } /** ** Specifies the current status of the model being described. Status describes the status of the most recent action * of the model. *
* * @param status * Specifies the current status of the model being described. Status describes the status of the most recent * action of the model. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelStatus */ public DescribeModelResult withStatus(ModelStatus status) { this.status = status.toString(); return this; } /** ** Indicates the time at which the training of the ML model began. *
* * @param trainingExecutionStartTime * Indicates the time at which the training of the ML model began. */ public void setTrainingExecutionStartTime(java.util.Date trainingExecutionStartTime) { this.trainingExecutionStartTime = trainingExecutionStartTime; } /** ** Indicates the time at which the training of the ML model began. *
* * @return Indicates the time at which the training of the ML model began. */ public java.util.Date getTrainingExecutionStartTime() { return this.trainingExecutionStartTime; } /** ** Indicates the time at which the training of the ML model began. *
* * @param trainingExecutionStartTime * Indicates the time at which the training of the ML model began. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withTrainingExecutionStartTime(java.util.Date trainingExecutionStartTime) { setTrainingExecutionStartTime(trainingExecutionStartTime); return this; } /** ** Indicates the time at which the training of the ML model was completed. *
* * @param trainingExecutionEndTime * Indicates the time at which the training of the ML model was completed. */ public void setTrainingExecutionEndTime(java.util.Date trainingExecutionEndTime) { this.trainingExecutionEndTime = trainingExecutionEndTime; } /** ** Indicates the time at which the training of the ML model was completed. *
* * @return Indicates the time at which the training of the ML model was completed. */ public java.util.Date getTrainingExecutionEndTime() { return this.trainingExecutionEndTime; } /** ** Indicates the time at which the training of the ML model was completed. *
* * @param trainingExecutionEndTime * Indicates the time at which the training of the ML model was completed. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withTrainingExecutionEndTime(java.util.Date trainingExecutionEndTime) { setTrainingExecutionEndTime(trainingExecutionEndTime); return this; } /** ** If the training of the ML model failed, this indicates the reason for that failure. *
* * @param failedReason * If the training of the ML model failed, this indicates the reason for that failure. */ public void setFailedReason(String failedReason) { this.failedReason = failedReason; } /** ** If the training of the ML model failed, this indicates the reason for that failure. *
* * @return If the training of the ML model failed, this indicates the reason for that failure. */ public String getFailedReason() { return this.failedReason; } /** ** If the training of the ML model failed, this indicates the reason for that failure. *
* * @param failedReason * If the training of the ML model failed, this indicates the reason for that failure. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withFailedReason(String failedReason) { setFailedReason(failedReason); return this; } /** ** The Model Metrics show an aggregated summary of the model's performance within the evaluation time range. This is * the JSON content of the metrics created when evaluating the model. *
** This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
** The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *
* * @param modelMetrics * The Model Metrics show an aggregated summary of the model's performance within the evaluation time range. * This is the JSON content of the metrics created when evaluating the model. */ public void setModelMetrics(String modelMetrics) { this.modelMetrics = modelMetrics; } /** ** The Model Metrics show an aggregated summary of the model's performance within the evaluation time range. This is * the JSON content of the metrics created when evaluating the model. *
** This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
* * @return The Model Metrics show an aggregated summary of the model's performance within the evaluation time range. * This is the JSON content of the metrics created when evaluating the model. */ public String getModelMetrics() { return this.modelMetrics; } /** ** The Model Metrics show an aggregated summary of the model's performance within the evaluation time range. This is * the JSON content of the metrics created when evaluating the model. *
** This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
** The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *
* * @param modelMetrics * The Model Metrics show an aggregated summary of the model's performance within the evaluation time range. * This is the JSON content of the metrics created when evaluating the model. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withModelMetrics(String modelMetrics) { setModelMetrics(modelMetrics); return this; } /** ** Indicates the last time the ML model was updated. The type of update is not specified. *
* * @param lastUpdatedTime * Indicates the last time the ML model was updated. The type of update is not specified. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** ** Indicates the last time the ML model was updated. The type of update is not specified. *
* * @return Indicates the last time the ML model was updated. The type of update is not specified. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** ** Indicates the last time the ML model was updated. The type of update is not specified. *
* * @param lastUpdatedTime * Indicates the last time the ML model was updated. The type of update is not specified. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** ** Indicates the time and date at which the ML model was created. *
* * @param createdAt * Indicates the time and date at which the ML model was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** Indicates the time and date at which the ML model was created. *
* * @return Indicates the time and date at which the ML model was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** Indicates the time and date at which the ML model was created. *
* * @param createdAt * Indicates the time and date at which the ML model was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. *
* * @param serverSideKmsKeyId * Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. */ public void setServerSideKmsKeyId(String serverSideKmsKeyId) { this.serverSideKmsKeyId = serverSideKmsKeyId; } /** ** Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. *
* * @return Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. */ public String getServerSideKmsKeyId() { return this.serverSideKmsKeyId; } /** ** Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. *
* * @param serverSideKmsKeyId * Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withServerSideKmsKeyId(String serverSideKmsKeyId) { setServerSideKmsKeyId(serverSideKmsKeyId); return this; } /** ** Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout * for Equipment will not use data from this asset for training, evaluation, or inference. *
* * @param offCondition * Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, * Lookout for Equipment will not use data from this asset for training, evaluation, or inference. */ public void setOffCondition(String offCondition) { this.offCondition = offCondition; } /** ** Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout * for Equipment will not use data from this asset for training, evaluation, or inference. *
* * @return Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, * Lookout for Equipment will not use data from this asset for training, evaluation, or inference. */ public String getOffCondition() { return this.offCondition; } /** ** Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout * for Equipment will not use data from this asset for training, evaluation, or inference. *
* * @param offCondition * Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, * Lookout for Equipment will not use data from this asset for training, evaluation, or inference. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withOffCondition(String offCondition) { setOffCondition(offCondition); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getModelName() != null) sb.append("ModelName: ").append(getModelName()).append(","); if (getModelArn() != null) sb.append("ModelArn: ").append(getModelArn()).append(","); if (getDatasetName() != null) sb.append("DatasetName: ").append(getDatasetName()).append(","); if (getDatasetArn() != null) sb.append("DatasetArn: ").append(getDatasetArn()).append(","); if (getSchema() != null) sb.append("Schema: ").append(getSchema()).append(","); if (getLabelsInputConfiguration() != null) sb.append("LabelsInputConfiguration: ").append(getLabelsInputConfiguration()).append(","); if (getTrainingDataStartTime() != null) sb.append("TrainingDataStartTime: ").append(getTrainingDataStartTime()).append(","); if (getTrainingDataEndTime() != null) sb.append("TrainingDataEndTime: ").append(getTrainingDataEndTime()).append(","); if (getEvaluationDataStartTime() != null) sb.append("EvaluationDataStartTime: ").append(getEvaluationDataStartTime()).append(","); if (getEvaluationDataEndTime() != null) sb.append("EvaluationDataEndTime: ").append(getEvaluationDataEndTime()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getDataPreProcessingConfiguration() != null) sb.append("DataPreProcessingConfiguration: ").append(getDataPreProcessingConfiguration()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getTrainingExecutionStartTime() != null) sb.append("TrainingExecutionStartTime: ").append(getTrainingExecutionStartTime()).append(","); if (getTrainingExecutionEndTime() != null) sb.append("TrainingExecutionEndTime: ").append(getTrainingExecutionEndTime()).append(","); if (getFailedReason() != null) sb.append("FailedReason: ").append(getFailedReason()).append(","); if (getModelMetrics() != null) sb.append("ModelMetrics: ").append(getModelMetrics()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getServerSideKmsKeyId() != null) sb.append("ServerSideKmsKeyId: ").append(getServerSideKmsKeyId()).append(","); if (getOffCondition() != null) sb.append("OffCondition: ").append(getOffCondition()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeModelResult == false) return false; DescribeModelResult other = (DescribeModelResult) obj; if (other.getModelName() == null ^ this.getModelName() == null) return false; if (other.getModelName() != null && other.getModelName().equals(this.getModelName()) == false) return false; if (other.getModelArn() == null ^ this.getModelArn() == null) return false; if (other.getModelArn() != null && other.getModelArn().equals(this.getModelArn()) == false) return false; if (other.getDatasetName() == null ^ this.getDatasetName() == null) return false; if (other.getDatasetName() != null && other.getDatasetName().equals(this.getDatasetName()) == false) return false; if (other.getDatasetArn() == null ^ this.getDatasetArn() == null) return false; if (other.getDatasetArn() != null && other.getDatasetArn().equals(this.getDatasetArn()) == false) return false; if (other.getSchema() == null ^ this.getSchema() == null) return false; if (other.getSchema() != null && other.getSchema().equals(this.getSchema()) == false) return false; if (other.getLabelsInputConfiguration() == null ^ this.getLabelsInputConfiguration() == null) return false; if (other.getLabelsInputConfiguration() != null && other.getLabelsInputConfiguration().equals(this.getLabelsInputConfiguration()) == false) return false; if (other.getTrainingDataStartTime() == null ^ this.getTrainingDataStartTime() == null) return false; if (other.getTrainingDataStartTime() != null && other.getTrainingDataStartTime().equals(this.getTrainingDataStartTime()) == false) return false; if (other.getTrainingDataEndTime() == null ^ this.getTrainingDataEndTime() == null) return false; if (other.getTrainingDataEndTime() != null && other.getTrainingDataEndTime().equals(this.getTrainingDataEndTime()) == false) return false; if (other.getEvaluationDataStartTime() == null ^ this.getEvaluationDataStartTime() == null) return false; if (other.getEvaluationDataStartTime() != null && other.getEvaluationDataStartTime().equals(this.getEvaluationDataStartTime()) == false) return false; if (other.getEvaluationDataEndTime() == null ^ this.getEvaluationDataEndTime() == null) return false; if (other.getEvaluationDataEndTime() != null && other.getEvaluationDataEndTime().equals(this.getEvaluationDataEndTime()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getDataPreProcessingConfiguration() == null ^ this.getDataPreProcessingConfiguration() == null) return false; if (other.getDataPreProcessingConfiguration() != null && other.getDataPreProcessingConfiguration().equals(this.getDataPreProcessingConfiguration()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getTrainingExecutionStartTime() == null ^ this.getTrainingExecutionStartTime() == null) return false; if (other.getTrainingExecutionStartTime() != null && other.getTrainingExecutionStartTime().equals(this.getTrainingExecutionStartTime()) == false) return false; if (other.getTrainingExecutionEndTime() == null ^ this.getTrainingExecutionEndTime() == null) return false; if (other.getTrainingExecutionEndTime() != null && other.getTrainingExecutionEndTime().equals(this.getTrainingExecutionEndTime()) == false) return false; if (other.getFailedReason() == null ^ this.getFailedReason() == null) return false; if (other.getFailedReason() != null && other.getFailedReason().equals(this.getFailedReason()) == false) return false; if (other.getModelMetrics() == null ^ this.getModelMetrics() == null) return false; if (other.getModelMetrics() != null && other.getModelMetrics().equals(this.getModelMetrics()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getServerSideKmsKeyId() == null ^ this.getServerSideKmsKeyId() == null) return false; if (other.getServerSideKmsKeyId() != null && other.getServerSideKmsKeyId().equals(this.getServerSideKmsKeyId()) == false) return false; if (other.getOffCondition() == null ^ this.getOffCondition() == null) return false; if (other.getOffCondition() != null && other.getOffCondition().equals(this.getOffCondition()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getModelName() == null) ? 0 : getModelName().hashCode()); hashCode = prime * hashCode + ((getModelArn() == null) ? 0 : getModelArn().hashCode()); hashCode = prime * hashCode + ((getDatasetName() == null) ? 0 : getDatasetName().hashCode()); hashCode = prime * hashCode + ((getDatasetArn() == null) ? 0 : getDatasetArn().hashCode()); hashCode = prime * hashCode + ((getSchema() == null) ? 0 : getSchema().hashCode()); hashCode = prime * hashCode + ((getLabelsInputConfiguration() == null) ? 0 : getLabelsInputConfiguration().hashCode()); hashCode = prime * hashCode + ((getTrainingDataStartTime() == null) ? 0 : getTrainingDataStartTime().hashCode()); hashCode = prime * hashCode + ((getTrainingDataEndTime() == null) ? 0 : getTrainingDataEndTime().hashCode()); hashCode = prime * hashCode + ((getEvaluationDataStartTime() == null) ? 0 : getEvaluationDataStartTime().hashCode()); hashCode = prime * hashCode + ((getEvaluationDataEndTime() == null) ? 0 : getEvaluationDataEndTime().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getDataPreProcessingConfiguration() == null) ? 0 : getDataPreProcessingConfiguration().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getTrainingExecutionStartTime() == null) ? 0 : getTrainingExecutionStartTime().hashCode()); hashCode = prime * hashCode + ((getTrainingExecutionEndTime() == null) ? 0 : getTrainingExecutionEndTime().hashCode()); hashCode = prime * hashCode + ((getFailedReason() == null) ? 0 : getFailedReason().hashCode()); hashCode = prime * hashCode + ((getModelMetrics() == null) ? 0 : getModelMetrics().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getServerSideKmsKeyId() == null) ? 0 : getServerSideKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getOffCondition() == null) ? 0 : getOffCondition().hashCode()); return hashCode; } @Override public DescribeModelResult clone() { try { return (DescribeModelResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }