/*
* 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;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeInferenceExperimentResult extends com.amazonaws.AmazonWebServiceResult
* The ARN of the inference experiment being described.
*
* The name of the inference experiment.
*
* The type of the inference experiment.
*
* The duration for which the inference experiment ran or will run.
*
* The status of the inference experiment. The following are the possible statuses for an inference experiment:
*
*
*
*
*
*
*
*
*
* The error message or client-specified
* The description of the inference experiment.
*
* The timestamp at which you created the inference experiment.
*
* The timestamp at which the inference experiment was completed.
*
* The timestamp at which you last modified the inference experiment.
*
* The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and
* manage Amazon SageMaker Inference endpoints for model deployment.
*
* The metadata of the endpoint on which the inference experiment ran.
*
* An array of
* The Amazon S3 location and configuration for storing inference request and response data.
*
* The configuration of
* The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to
* encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more
* information, see CreateInferenceExperiment.
*
* The ARN of the inference experiment being described.
*
* The ARN of the inference experiment being described.
*
* The ARN of the inference experiment being described.
*
* The name of the inference experiment.
*
* The name of the inference experiment.
*
* The name of the inference experiment.
*
* The type of the inference experiment.
*
* The type of the inference experiment.
*
* The type of the inference experiment.
*
* The type of the inference experiment.
*
* The duration for which the inference experiment ran or will run.
*
* The duration for which the inference experiment ran or will run.
*
* The duration for which the inference experiment ran or will run.
*
* The status of the inference experiment. The following are the possible statuses for an inference experiment:
*
*
*
*
*
*
*
*
*
*
*/
private String status;
/**
* Creating
- Amazon SageMaker is creating your experiment.
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
* Updating
- When you make changes to your experiment, your experiment shows as updating.
* Starting
- Amazon SageMaker is beginning your experiment.
* Running
- Your experiment is in progress.
* Stopping
- Amazon SageMaker is stopping your experiment.
* Completed
- Your experiment has completed.
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as cancelled.
* Reason
from the StopInferenceExperiment API, that explains the status of the inference experiment.
* ModelVariantConfigSummary
objects. There is one for each variant in the inference
* experiment. Each ModelVariantConfigSummary
object in the array describes the infrastructure
* configuration for deploying the corresponding variant.
* ShadowMode
inference experiment type, which shows the production variant that
* takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the
* inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker
* replicates.
*
*
*
* @param status
* The status of the inference experiment. The following are the possible statuses for an inference
* experiment: Creating
- Amazon SageMaker is creating your experiment.
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
* Updating
- When you make changes to your experiment, your experiment shows as updating.
* Starting
- Amazon SageMaker is beginning your experiment.
* Running
- Your experiment is in progress.
* Stopping
- Amazon SageMaker is stopping your experiment.
* Completed
- Your experiment has completed.
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as cancelled.
*
* Creating
- Amazon SageMaker is creating your experiment.
*
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
*
* Updating
- When you make changes to your experiment, your experiment shows as updating.
*
* Starting
- Amazon SageMaker is beginning your experiment.
*
* Running
- Your experiment is in progress.
*
* Stopping
- Amazon SageMaker is stopping your experiment.
*
* Completed
- Your experiment has completed.
*
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as
* cancelled.
*
* The status of the inference experiment. The following are the possible statuses for an inference experiment: *
*
* Creating
- Amazon SageMaker is creating your experiment.
*
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
*
* Updating
- When you make changes to your experiment, your experiment shows as updating.
*
* Starting
- Amazon SageMaker is beginning your experiment.
*
* Running
- Your experiment is in progress.
*
* Stopping
- Amazon SageMaker is stopping your experiment.
*
* Completed
- Your experiment has completed.
*
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as cancelled.
*
* Creating
- Amazon SageMaker is creating your experiment.
*
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
*
* Updating
- When you make changes to your experiment, your experiment shows as updating.
*
* Starting
- Amazon SageMaker is beginning your experiment.
*
* Running
- Your experiment is in progress.
*
* Stopping
- Amazon SageMaker is stopping your experiment.
*
* Completed
- Your experiment has completed.
*
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as
* cancelled.
*
* The status of the inference experiment. The following are the possible statuses for an inference experiment: *
*
* Creating
- Amazon SageMaker is creating your experiment.
*
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
*
* Updating
- When you make changes to your experiment, your experiment shows as updating.
*
* Starting
- Amazon SageMaker is beginning your experiment.
*
* Running
- Your experiment is in progress.
*
* Stopping
- Amazon SageMaker is stopping your experiment.
*
* Completed
- Your experiment has completed.
*
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as cancelled.
*
* Creating
- Amazon SageMaker is creating your experiment.
*
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
*
* Updating
- When you make changes to your experiment, your experiment shows as updating.
*
* Starting
- Amazon SageMaker is beginning your experiment.
*
* Running
- Your experiment is in progress.
*
* Stopping
- Amazon SageMaker is stopping your experiment.
*
* Completed
- Your experiment has completed.
*
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as
* cancelled.
*
* The status of the inference experiment. The following are the possible statuses for an inference experiment: *
*
* Creating
- Amazon SageMaker is creating your experiment.
*
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
*
* Updating
- When you make changes to your experiment, your experiment shows as updating.
*
* Starting
- Amazon SageMaker is beginning your experiment.
*
* Running
- Your experiment is in progress.
*
* Stopping
- Amazon SageMaker is stopping your experiment.
*
* Completed
- Your experiment has completed.
*
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as cancelled.
*
* Creating
- Amazon SageMaker is creating your experiment.
*
* Created
- Amazon SageMaker has finished the creation of your experiment and will begin the
* experiment at the scheduled time.
*
* Updating
- When you make changes to your experiment, your experiment shows as updating.
*
* Starting
- Amazon SageMaker is beginning your experiment.
*
* Running
- Your experiment is in progress.
*
* Stopping
- Amazon SageMaker is stopping your experiment.
*
* Completed
- Your experiment has completed.
*
* Cancelled
- When you conclude your experiment early using the StopInferenceExperiment API, or if any operation fails with an unexpected error, it shows as
* cancelled.
*
* The error message or client-specified Reason
from the StopInferenceExperiment API, that explains the status of the inference experiment.
*
Reason
from the StopInferenceExperiment API, that explains the status of the inference experiment.
*/
public void setStatusReason(String statusReason) {
this.statusReason = statusReason;
}
/**
*
* The error message or client-specified Reason
from the StopInferenceExperiment API, that explains the status of the inference experiment.
*
Reason
from the StopInferenceExperiment API, that explains the status of the inference experiment.
*/
public String getStatusReason() {
return this.statusReason;
}
/**
*
* The error message or client-specified Reason
from the StopInferenceExperiment API, that explains the status of the inference experiment.
*
Reason
from the StopInferenceExperiment API, that explains the status of the inference experiment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeInferenceExperimentResult withStatusReason(String statusReason) {
setStatusReason(statusReason);
return this;
}
/**
* * The description of the inference experiment. *
* * @param description * The description of the inference experiment. */ public void setDescription(String description) { this.description = description; } /** ** The description of the inference experiment. *
* * @return The description of the inference experiment. */ public String getDescription() { return this.description; } /** ** The description of the inference experiment. *
* * @param description * The description of the inference experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceExperimentResult withDescription(String description) { setDescription(description); return this; } /** ** The timestamp at which you created the inference experiment. *
* * @param creationTime * The timestamp at which you created the inference experiment. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The timestamp at which you created the inference experiment. *
* * @return The timestamp at which you created the inference experiment. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The timestamp at which you created the inference experiment. *
* * @param creationTime * The timestamp at which you created the inference experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceExperimentResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The timestamp at which the inference experiment was completed. *
* * @param completionTime * The timestamp at which the inference experiment was completed. */ public void setCompletionTime(java.util.Date completionTime) { this.completionTime = completionTime; } /** ** The timestamp at which the inference experiment was completed. *
* * @return The timestamp at which the inference experiment was completed. */ public java.util.Date getCompletionTime() { return this.completionTime; } /** ** The timestamp at which the inference experiment was completed. *
* * @param completionTime * The timestamp at which the inference experiment was completed. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceExperimentResult withCompletionTime(java.util.Date completionTime) { setCompletionTime(completionTime); return this; } /** ** The timestamp at which you last modified the inference experiment. *
* * @param lastModifiedTime * The timestamp at which you last modified the inference experiment. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The timestamp at which you last modified the inference experiment. *
* * @return The timestamp at which you last modified the inference experiment. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The timestamp at which you last modified the inference experiment. *
* * @param lastModifiedTime * The timestamp at which you last modified the inference experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceExperimentResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** ** The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and * manage Amazon SageMaker Inference endpoints for model deployment. *
* * @param roleArn * The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, * and manage Amazon SageMaker Inference endpoints for model deployment. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and * manage Amazon SageMaker Inference endpoints for model deployment. *
* * @return The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, * and manage Amazon SageMaker Inference endpoints for model deployment. */ public String getRoleArn() { return this.roleArn; } /** ** The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and * manage Amazon SageMaker Inference endpoints for model deployment. *
* * @param roleArn * The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, * and manage Amazon SageMaker Inference endpoints for model deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceExperimentResult withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** The metadata of the endpoint on which the inference experiment ran. *
* * @param endpointMetadata * The metadata of the endpoint on which the inference experiment ran. */ public void setEndpointMetadata(EndpointMetadata endpointMetadata) { this.endpointMetadata = endpointMetadata; } /** ** The metadata of the endpoint on which the inference experiment ran. *
* * @return The metadata of the endpoint on which the inference experiment ran. */ public EndpointMetadata getEndpointMetadata() { return this.endpointMetadata; } /** ** The metadata of the endpoint on which the inference experiment ran. *
* * @param endpointMetadata * The metadata of the endpoint on which the inference experiment ran. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceExperimentResult withEndpointMetadata(EndpointMetadata endpointMetadata) { setEndpointMetadata(endpointMetadata); return this; } /** *
* An array of ModelVariantConfigSummary
objects. There is one for each variant in the inference
* experiment. Each ModelVariantConfigSummary
object in the array describes the infrastructure
* configuration for deploying the corresponding variant.
*
ModelVariantConfigSummary
objects. There is one for each variant in the
* inference experiment. Each ModelVariantConfigSummary
object in the array describes the
* infrastructure configuration for deploying the corresponding variant.
*/
public java.util.List
* An array of ModelVariantConfigSummary
objects. There is one for each variant in the inference
* experiment. Each ModelVariantConfigSummary
object in the array describes the infrastructure
* configuration for deploying the corresponding variant.
*
ModelVariantConfigSummary
objects. There is one for each variant in the inference
* experiment. Each ModelVariantConfigSummary
object in the array describes the infrastructure
* configuration for deploying the corresponding variant.
*/
public void setModelVariants(java.util.Collection
* An array of ModelVariantConfigSummary
objects. There is one for each variant in the inference
* experiment. Each ModelVariantConfigSummary
object in the array describes the infrastructure
* configuration for deploying the corresponding variant.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setModelVariants(java.util.Collection)} or {@link #withModelVariants(java.util.Collection)} if you want * to override the existing values. *
* * @param modelVariants * An array ofModelVariantConfigSummary
objects. There is one for each variant in the inference
* experiment. Each ModelVariantConfigSummary
object in the array describes the infrastructure
* configuration for deploying the corresponding variant.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeInferenceExperimentResult withModelVariants(ModelVariantConfigSummary... modelVariants) {
if (this.modelVariants == null) {
setModelVariants(new java.util.ArrayList
* An array of ModelVariantConfigSummary
objects. There is one for each variant in the inference
* experiment. Each ModelVariantConfigSummary
object in the array describes the infrastructure
* configuration for deploying the corresponding variant.
*
ModelVariantConfigSummary
objects. There is one for each variant in the inference
* experiment. Each ModelVariantConfigSummary
object in the array describes the infrastructure
* configuration for deploying the corresponding variant.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeInferenceExperimentResult withModelVariants(java.util.Collection* The Amazon S3 location and configuration for storing inference request and response data. *
* * @param dataStorageConfig * The Amazon S3 location and configuration for storing inference request and response data. */ public void setDataStorageConfig(InferenceExperimentDataStorageConfig dataStorageConfig) { this.dataStorageConfig = dataStorageConfig; } /** ** The Amazon S3 location and configuration for storing inference request and response data. *
* * @return The Amazon S3 location and configuration for storing inference request and response data. */ public InferenceExperimentDataStorageConfig getDataStorageConfig() { return this.dataStorageConfig; } /** ** The Amazon S3 location and configuration for storing inference request and response data. *
* * @param dataStorageConfig * The Amazon S3 location and configuration for storing inference request and response data. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceExperimentResult withDataStorageConfig(InferenceExperimentDataStorageConfig dataStorageConfig) { setDataStorageConfig(dataStorageConfig); return this; } /** *
* The configuration of ShadowMode
inference experiment type, which shows the production variant that
* takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the
* inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker
* replicates.
*
ShadowMode
inference experiment type, which shows the production variant
* that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a
* percentage of the inference requests. For the shadow variant it also shows the percentage of requests that
* Amazon SageMaker replicates.
*/
public void setShadowModeConfig(ShadowModeConfig shadowModeConfig) {
this.shadowModeConfig = shadowModeConfig;
}
/**
*
* The configuration of ShadowMode
inference experiment type, which shows the production variant that
* takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the
* inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker
* replicates.
*
ShadowMode
inference experiment type, which shows the production
* variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker
* replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of
* requests that Amazon SageMaker replicates.
*/
public ShadowModeConfig getShadowModeConfig() {
return this.shadowModeConfig;
}
/**
*
* The configuration of ShadowMode
inference experiment type, which shows the production variant that
* takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the
* inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker
* replicates.
*
ShadowMode
inference experiment type, which shows the production variant
* that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a
* percentage of the inference requests. For the shadow variant it also shows the percentage of requests that
* Amazon SageMaker replicates.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeInferenceExperimentResult withShadowModeConfig(ShadowModeConfig shadowModeConfig) {
setShadowModeConfig(shadowModeConfig);
return this;
}
/**
* * The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to * encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more * information, see CreateInferenceExperiment. *
* * @param kmsKey * The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to * encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more * information, see CreateInferenceExperiment. */ public void setKmsKey(String kmsKey) { this.kmsKey = kmsKey; } /** ** The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to * encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more * information, see CreateInferenceExperiment. *
* * @return The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses * to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For * more information, see CreateInferenceExperiment. */ public String getKmsKey() { return this.kmsKey; } /** ** The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to * encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more * information, see CreateInferenceExperiment. *
* * @param kmsKey * The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to * encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more * information, see CreateInferenceExperiment. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceExperimentResult withKmsKey(String kmsKey) { setKmsKey(kmsKey); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getSchedule() != null) sb.append("Schedule: ").append(getSchedule()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getCompletionTime() != null) sb.append("CompletionTime: ").append(getCompletionTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getEndpointMetadata() != null) sb.append("EndpointMetadata: ").append(getEndpointMetadata()).append(","); if (getModelVariants() != null) sb.append("ModelVariants: ").append(getModelVariants()).append(","); if (getDataStorageConfig() != null) sb.append("DataStorageConfig: ").append(getDataStorageConfig()).append(","); if (getShadowModeConfig() != null) sb.append("ShadowModeConfig: ").append(getShadowModeConfig()).append(","); if (getKmsKey() != null) sb.append("KmsKey: ").append(getKmsKey()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeInferenceExperimentResult == false) return false; DescribeInferenceExperimentResult other = (DescribeInferenceExperimentResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getSchedule() == null ^ this.getSchedule() == null) return false; if (other.getSchedule() != null && other.getSchedule().equals(this.getSchedule()) == 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.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getCompletionTime() == null ^ this.getCompletionTime() == null) return false; if (other.getCompletionTime() != null && other.getCompletionTime().equals(this.getCompletionTime()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == 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.getEndpointMetadata() == null ^ this.getEndpointMetadata() == null) return false; if (other.getEndpointMetadata() != null && other.getEndpointMetadata().equals(this.getEndpointMetadata()) == false) return false; if (other.getModelVariants() == null ^ this.getModelVariants() == null) return false; if (other.getModelVariants() != null && other.getModelVariants().equals(this.getModelVariants()) == false) return false; if (other.getDataStorageConfig() == null ^ this.getDataStorageConfig() == null) return false; if (other.getDataStorageConfig() != null && other.getDataStorageConfig().equals(this.getDataStorageConfig()) == false) return false; if (other.getShadowModeConfig() == null ^ this.getShadowModeConfig() == null) return false; if (other.getShadowModeConfig() != null && other.getShadowModeConfig().equals(this.getShadowModeConfig()) == false) return false; if (other.getKmsKey() == null ^ this.getKmsKey() == null) return false; if (other.getKmsKey() != null && other.getKmsKey().equals(this.getKmsKey()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getSchedule() == null) ? 0 : getSchedule().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCompletionTime() == null) ? 0 : getCompletionTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getEndpointMetadata() == null) ? 0 : getEndpointMetadata().hashCode()); hashCode = prime * hashCode + ((getModelVariants() == null) ? 0 : getModelVariants().hashCode()); hashCode = prime * hashCode + ((getDataStorageConfig() == null) ? 0 : getDataStorageConfig().hashCode()); hashCode = prime * hashCode + ((getShadowModeConfig() == null) ? 0 : getShadowModeConfig().hashCode()); hashCode = prime * hashCode + ((getKmsKey() == null) ? 0 : getKmsKey().hashCode()); return hashCode; } @Override public DescribeInferenceExperimentResult clone() { try { return (DescribeInferenceExperimentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }