com.amazonaws.services.sagemaker.model.DescribeOptimizationJobResult Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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 DescribeOptimizationJobResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the optimization job.
*
*/
private String optimizationJobArn;
/**
*
* The current status of the optimization job.
*
*/
private String optimizationJobStatus;
/**
*
* The time when the optimization job started.
*
*/
private java.util.Date optimizationStartTime;
/**
*
* The time when the optimization job finished processing.
*
*/
private java.util.Date optimizationEndTime;
/**
*
* The time when you created the optimization job.
*
*/
private java.util.Date creationTime;
/**
*
* The time when the optimization job was last updated.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* If the optimization job status is FAILED
, the reason for the failure.
*
*/
private String failureReason;
/**
*
* The name that you assigned to the optimization job.
*
*/
private String optimizationJobName;
/**
*
* The location of the source model to optimize with an optimization job.
*
*/
private OptimizationJobModelSource modelSource;
/**
*
* The environment variables to set in the model container.
*
*/
private java.util.Map optimizationEnvironment;
/**
*
* The type of instance that hosts the optimized model that you create with the optimization job.
*
*/
private String deploymentInstanceType;
/**
*
* Settings for each of the optimization techniques that the job applies.
*
*/
private java.util.List optimizationConfigs;
/**
*
* Details for where to store the optimized model that you create with the optimization job.
*
*/
private OptimizationJobOutputConfig outputConfig;
/**
*
* Output values produced by an optimization job.
*
*/
private OptimizationOutput optimizationOutput;
/**
*
* The ARN of the IAM role that you assigned to the optimization job.
*
*/
private String roleArn;
private StoppingCondition stoppingCondition;
/**
*
* A VPC in Amazon VPC that your optimized model has access to.
*
*/
private OptimizationVpcConfig vpcConfig;
/**
*
* The Amazon Resource Name (ARN) of the optimization job.
*
*
* @param optimizationJobArn
* The Amazon Resource Name (ARN) of the optimization job.
*/
public void setOptimizationJobArn(String optimizationJobArn) {
this.optimizationJobArn = optimizationJobArn;
}
/**
*
* The Amazon Resource Name (ARN) of the optimization job.
*
*
* @return The Amazon Resource Name (ARN) of the optimization job.
*/
public String getOptimizationJobArn() {
return this.optimizationJobArn;
}
/**
*
* The Amazon Resource Name (ARN) of the optimization job.
*
*
* @param optimizationJobArn
* The Amazon Resource Name (ARN) of the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOptimizationJobArn(String optimizationJobArn) {
setOptimizationJobArn(optimizationJobArn);
return this;
}
/**
*
* The current status of the optimization job.
*
*
* @param optimizationJobStatus
* The current status of the optimization job.
* @see OptimizationJobStatus
*/
public void setOptimizationJobStatus(String optimizationJobStatus) {
this.optimizationJobStatus = optimizationJobStatus;
}
/**
*
* The current status of the optimization job.
*
*
* @return The current status of the optimization job.
* @see OptimizationJobStatus
*/
public String getOptimizationJobStatus() {
return this.optimizationJobStatus;
}
/**
*
* The current status of the optimization job.
*
*
* @param optimizationJobStatus
* The current status of the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OptimizationJobStatus
*/
public DescribeOptimizationJobResult withOptimizationJobStatus(String optimizationJobStatus) {
setOptimizationJobStatus(optimizationJobStatus);
return this;
}
/**
*
* The current status of the optimization job.
*
*
* @param optimizationJobStatus
* The current status of the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OptimizationJobStatus
*/
public DescribeOptimizationJobResult withOptimizationJobStatus(OptimizationJobStatus optimizationJobStatus) {
this.optimizationJobStatus = optimizationJobStatus.toString();
return this;
}
/**
*
* The time when the optimization job started.
*
*
* @param optimizationStartTime
* The time when the optimization job started.
*/
public void setOptimizationStartTime(java.util.Date optimizationStartTime) {
this.optimizationStartTime = optimizationStartTime;
}
/**
*
* The time when the optimization job started.
*
*
* @return The time when the optimization job started.
*/
public java.util.Date getOptimizationStartTime() {
return this.optimizationStartTime;
}
/**
*
* The time when the optimization job started.
*
*
* @param optimizationStartTime
* The time when the optimization job started.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOptimizationStartTime(java.util.Date optimizationStartTime) {
setOptimizationStartTime(optimizationStartTime);
return this;
}
/**
*
* The time when the optimization job finished processing.
*
*
* @param optimizationEndTime
* The time when the optimization job finished processing.
*/
public void setOptimizationEndTime(java.util.Date optimizationEndTime) {
this.optimizationEndTime = optimizationEndTime;
}
/**
*
* The time when the optimization job finished processing.
*
*
* @return The time when the optimization job finished processing.
*/
public java.util.Date getOptimizationEndTime() {
return this.optimizationEndTime;
}
/**
*
* The time when the optimization job finished processing.
*
*
* @param optimizationEndTime
* The time when the optimization job finished processing.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOptimizationEndTime(java.util.Date optimizationEndTime) {
setOptimizationEndTime(optimizationEndTime);
return this;
}
/**
*
* The time when you created the optimization job.
*
*
* @param creationTime
* The time when you created the optimization job.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The time when you created the optimization job.
*
*
* @return The time when you created the optimization job.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The time when you created the optimization job.
*
*
* @param creationTime
* The time when you created the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The time when the optimization job was last updated.
*
*
* @param lastModifiedTime
* The time when the optimization job was last updated.
*/
public void setLastModifiedTime(java.util.Date lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
/**
*
* The time when the optimization job was last updated.
*
*
* @return The time when the optimization job was last updated.
*/
public java.util.Date getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
*
* The time when the optimization job was last updated.
*
*
* @param lastModifiedTime
* The time when the optimization job was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
return this;
}
/**
*
* If the optimization job status is FAILED
, the reason for the failure.
*
*
* @param failureReason
* If the optimization job status is FAILED
, the reason for the failure.
*/
public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
/**
*
* If the optimization job status is FAILED
, the reason for the failure.
*
*
* @return If the optimization job status is FAILED
, the reason for the failure.
*/
public String getFailureReason() {
return this.failureReason;
}
/**
*
* If the optimization job status is FAILED
, the reason for the failure.
*
*
* @param failureReason
* If the optimization job status is FAILED
, the reason for the failure.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}
/**
*
* The name that you assigned to the optimization job.
*
*
* @param optimizationJobName
* The name that you assigned to the optimization job.
*/
public void setOptimizationJobName(String optimizationJobName) {
this.optimizationJobName = optimizationJobName;
}
/**
*
* The name that you assigned to the optimization job.
*
*
* @return The name that you assigned to the optimization job.
*/
public String getOptimizationJobName() {
return this.optimizationJobName;
}
/**
*
* The name that you assigned to the optimization job.
*
*
* @param optimizationJobName
* The name that you assigned to the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOptimizationJobName(String optimizationJobName) {
setOptimizationJobName(optimizationJobName);
return this;
}
/**
*
* The location of the source model to optimize with an optimization job.
*
*
* @param modelSource
* The location of the source model to optimize with an optimization job.
*/
public void setModelSource(OptimizationJobModelSource modelSource) {
this.modelSource = modelSource;
}
/**
*
* The location of the source model to optimize with an optimization job.
*
*
* @return The location of the source model to optimize with an optimization job.
*/
public OptimizationJobModelSource getModelSource() {
return this.modelSource;
}
/**
*
* The location of the source model to optimize with an optimization job.
*
*
* @param modelSource
* The location of the source model to optimize with an optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withModelSource(OptimizationJobModelSource modelSource) {
setModelSource(modelSource);
return this;
}
/**
*
* The environment variables to set in the model container.
*
*
* @return The environment variables to set in the model container.
*/
public java.util.Map getOptimizationEnvironment() {
return optimizationEnvironment;
}
/**
*
* The environment variables to set in the model container.
*
*
* @param optimizationEnvironment
* The environment variables to set in the model container.
*/
public void setOptimizationEnvironment(java.util.Map optimizationEnvironment) {
this.optimizationEnvironment = optimizationEnvironment;
}
/**
*
* The environment variables to set in the model container.
*
*
* @param optimizationEnvironment
* The environment variables to set in the model container.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOptimizationEnvironment(java.util.Map optimizationEnvironment) {
setOptimizationEnvironment(optimizationEnvironment);
return this;
}
/**
* Add a single OptimizationEnvironment entry
*
* @see DescribeOptimizationJobResult#withOptimizationEnvironment
* @returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult addOptimizationEnvironmentEntry(String key, String value) {
if (null == this.optimizationEnvironment) {
this.optimizationEnvironment = new java.util.HashMap();
}
if (this.optimizationEnvironment.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.optimizationEnvironment.put(key, value);
return this;
}
/**
* Removes all the entries added into OptimizationEnvironment.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult clearOptimizationEnvironmentEntries() {
this.optimizationEnvironment = null;
return this;
}
/**
*
* The type of instance that hosts the optimized model that you create with the optimization job.
*
*
* @param deploymentInstanceType
* The type of instance that hosts the optimized model that you create with the optimization job.
* @see OptimizationJobDeploymentInstanceType
*/
public void setDeploymentInstanceType(String deploymentInstanceType) {
this.deploymentInstanceType = deploymentInstanceType;
}
/**
*
* The type of instance that hosts the optimized model that you create with the optimization job.
*
*
* @return The type of instance that hosts the optimized model that you create with the optimization job.
* @see OptimizationJobDeploymentInstanceType
*/
public String getDeploymentInstanceType() {
return this.deploymentInstanceType;
}
/**
*
* The type of instance that hosts the optimized model that you create with the optimization job.
*
*
* @param deploymentInstanceType
* The type of instance that hosts the optimized model that you create with the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OptimizationJobDeploymentInstanceType
*/
public DescribeOptimizationJobResult withDeploymentInstanceType(String deploymentInstanceType) {
setDeploymentInstanceType(deploymentInstanceType);
return this;
}
/**
*
* The type of instance that hosts the optimized model that you create with the optimization job.
*
*
* @param deploymentInstanceType
* The type of instance that hosts the optimized model that you create with the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OptimizationJobDeploymentInstanceType
*/
public DescribeOptimizationJobResult withDeploymentInstanceType(OptimizationJobDeploymentInstanceType deploymentInstanceType) {
this.deploymentInstanceType = deploymentInstanceType.toString();
return this;
}
/**
*
* Settings for each of the optimization techniques that the job applies.
*
*
* @return Settings for each of the optimization techniques that the job applies.
*/
public java.util.List getOptimizationConfigs() {
return optimizationConfigs;
}
/**
*
* Settings for each of the optimization techniques that the job applies.
*
*
* @param optimizationConfigs
* Settings for each of the optimization techniques that the job applies.
*/
public void setOptimizationConfigs(java.util.Collection optimizationConfigs) {
if (optimizationConfigs == null) {
this.optimizationConfigs = null;
return;
}
this.optimizationConfigs = new java.util.ArrayList(optimizationConfigs);
}
/**
*
* Settings for each of the optimization techniques that the job applies.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOptimizationConfigs(java.util.Collection)} or {@link #withOptimizationConfigs(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param optimizationConfigs
* Settings for each of the optimization techniques that the job applies.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOptimizationConfigs(OptimizationConfig... optimizationConfigs) {
if (this.optimizationConfigs == null) {
setOptimizationConfigs(new java.util.ArrayList(optimizationConfigs.length));
}
for (OptimizationConfig ele : optimizationConfigs) {
this.optimizationConfigs.add(ele);
}
return this;
}
/**
*
* Settings for each of the optimization techniques that the job applies.
*
*
* @param optimizationConfigs
* Settings for each of the optimization techniques that the job applies.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOptimizationConfigs(java.util.Collection optimizationConfigs) {
setOptimizationConfigs(optimizationConfigs);
return this;
}
/**
*
* Details for where to store the optimized model that you create with the optimization job.
*
*
* @param outputConfig
* Details for where to store the optimized model that you create with the optimization job.
*/
public void setOutputConfig(OptimizationJobOutputConfig outputConfig) {
this.outputConfig = outputConfig;
}
/**
*
* Details for where to store the optimized model that you create with the optimization job.
*
*
* @return Details for where to store the optimized model that you create with the optimization job.
*/
public OptimizationJobOutputConfig getOutputConfig() {
return this.outputConfig;
}
/**
*
* Details for where to store the optimized model that you create with the optimization job.
*
*
* @param outputConfig
* Details for where to store the optimized model that you create with the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOutputConfig(OptimizationJobOutputConfig outputConfig) {
setOutputConfig(outputConfig);
return this;
}
/**
*
* Output values produced by an optimization job.
*
*
* @param optimizationOutput
* Output values produced by an optimization job.
*/
public void setOptimizationOutput(OptimizationOutput optimizationOutput) {
this.optimizationOutput = optimizationOutput;
}
/**
*
* Output values produced by an optimization job.
*
*
* @return Output values produced by an optimization job.
*/
public OptimizationOutput getOptimizationOutput() {
return this.optimizationOutput;
}
/**
*
* Output values produced by an optimization job.
*
*
* @param optimizationOutput
* Output values produced by an optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withOptimizationOutput(OptimizationOutput optimizationOutput) {
setOptimizationOutput(optimizationOutput);
return this;
}
/**
*
* The ARN of the IAM role that you assigned to the optimization job.
*
*
* @param roleArn
* The ARN of the IAM role that you assigned to the optimization job.
*/
public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}
/**
*
* The ARN of the IAM role that you assigned to the optimization job.
*
*
* @return The ARN of the IAM role that you assigned to the optimization job.
*/
public String getRoleArn() {
return this.roleArn;
}
/**
*
* The ARN of the IAM role that you assigned to the optimization job.
*
*
* @param roleArn
* The ARN of the IAM role that you assigned to the optimization job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withRoleArn(String roleArn) {
setRoleArn(roleArn);
return this;
}
/**
* @param stoppingCondition
*/
public void setStoppingCondition(StoppingCondition stoppingCondition) {
this.stoppingCondition = stoppingCondition;
}
/**
* @return
*/
public StoppingCondition getStoppingCondition() {
return this.stoppingCondition;
}
/**
* @param stoppingCondition
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withStoppingCondition(StoppingCondition stoppingCondition) {
setStoppingCondition(stoppingCondition);
return this;
}
/**
*
* A VPC in Amazon VPC that your optimized model has access to.
*
*
* @param vpcConfig
* A VPC in Amazon VPC that your optimized model has access to.
*/
public void setVpcConfig(OptimizationVpcConfig vpcConfig) {
this.vpcConfig = vpcConfig;
}
/**
*
* A VPC in Amazon VPC that your optimized model has access to.
*
*
* @return A VPC in Amazon VPC that your optimized model has access to.
*/
public OptimizationVpcConfig getVpcConfig() {
return this.vpcConfig;
}
/**
*
* A VPC in Amazon VPC that your optimized model has access to.
*
*
* @param vpcConfig
* A VPC in Amazon VPC that your optimized model has access to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeOptimizationJobResult withVpcConfig(OptimizationVpcConfig vpcConfig) {
setVpcConfig(vpcConfig);
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 (getOptimizationJobArn() != null)
sb.append("OptimizationJobArn: ").append(getOptimizationJobArn()).append(",");
if (getOptimizationJobStatus() != null)
sb.append("OptimizationJobStatus: ").append(getOptimizationJobStatus()).append(",");
if (getOptimizationStartTime() != null)
sb.append("OptimizationStartTime: ").append(getOptimizationStartTime()).append(",");
if (getOptimizationEndTime() != null)
sb.append("OptimizationEndTime: ").append(getOptimizationEndTime()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
if (getFailureReason() != null)
sb.append("FailureReason: ").append(getFailureReason()).append(",");
if (getOptimizationJobName() != null)
sb.append("OptimizationJobName: ").append(getOptimizationJobName()).append(",");
if (getModelSource() != null)
sb.append("ModelSource: ").append(getModelSource()).append(",");
if (getOptimizationEnvironment() != null)
sb.append("OptimizationEnvironment: ").append(getOptimizationEnvironment()).append(",");
if (getDeploymentInstanceType() != null)
sb.append("DeploymentInstanceType: ").append(getDeploymentInstanceType()).append(",");
if (getOptimizationConfigs() != null)
sb.append("OptimizationConfigs: ").append(getOptimizationConfigs()).append(",");
if (getOutputConfig() != null)
sb.append("OutputConfig: ").append(getOutputConfig()).append(",");
if (getOptimizationOutput() != null)
sb.append("OptimizationOutput: ").append(getOptimizationOutput()).append(",");
if (getRoleArn() != null)
sb.append("RoleArn: ").append(getRoleArn()).append(",");
if (getStoppingCondition() != null)
sb.append("StoppingCondition: ").append(getStoppingCondition()).append(",");
if (getVpcConfig() != null)
sb.append("VpcConfig: ").append(getVpcConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeOptimizationJobResult == false)
return false;
DescribeOptimizationJobResult other = (DescribeOptimizationJobResult) obj;
if (other.getOptimizationJobArn() == null ^ this.getOptimizationJobArn() == null)
return false;
if (other.getOptimizationJobArn() != null && other.getOptimizationJobArn().equals(this.getOptimizationJobArn()) == false)
return false;
if (other.getOptimizationJobStatus() == null ^ this.getOptimizationJobStatus() == null)
return false;
if (other.getOptimizationJobStatus() != null && other.getOptimizationJobStatus().equals(this.getOptimizationJobStatus()) == false)
return false;
if (other.getOptimizationStartTime() == null ^ this.getOptimizationStartTime() == null)
return false;
if (other.getOptimizationStartTime() != null && other.getOptimizationStartTime().equals(this.getOptimizationStartTime()) == false)
return false;
if (other.getOptimizationEndTime() == null ^ this.getOptimizationEndTime() == null)
return false;
if (other.getOptimizationEndTime() != null && other.getOptimizationEndTime().equals(this.getOptimizationEndTime()) == 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.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false)
return false;
if (other.getFailureReason() == null ^ this.getFailureReason() == null)
return false;
if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false)
return false;
if (other.getOptimizationJobName() == null ^ this.getOptimizationJobName() == null)
return false;
if (other.getOptimizationJobName() != null && other.getOptimizationJobName().equals(this.getOptimizationJobName()) == false)
return false;
if (other.getModelSource() == null ^ this.getModelSource() == null)
return false;
if (other.getModelSource() != null && other.getModelSource().equals(this.getModelSource()) == false)
return false;
if (other.getOptimizationEnvironment() == null ^ this.getOptimizationEnvironment() == null)
return false;
if (other.getOptimizationEnvironment() != null && other.getOptimizationEnvironment().equals(this.getOptimizationEnvironment()) == false)
return false;
if (other.getDeploymentInstanceType() == null ^ this.getDeploymentInstanceType() == null)
return false;
if (other.getDeploymentInstanceType() != null && other.getDeploymentInstanceType().equals(this.getDeploymentInstanceType()) == false)
return false;
if (other.getOptimizationConfigs() == null ^ this.getOptimizationConfigs() == null)
return false;
if (other.getOptimizationConfigs() != null && other.getOptimizationConfigs().equals(this.getOptimizationConfigs()) == false)
return false;
if (other.getOutputConfig() == null ^ this.getOutputConfig() == null)
return false;
if (other.getOutputConfig() != null && other.getOutputConfig().equals(this.getOutputConfig()) == false)
return false;
if (other.getOptimizationOutput() == null ^ this.getOptimizationOutput() == null)
return false;
if (other.getOptimizationOutput() != null && other.getOptimizationOutput().equals(this.getOptimizationOutput()) == 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.getStoppingCondition() == null ^ this.getStoppingCondition() == null)
return false;
if (other.getStoppingCondition() != null && other.getStoppingCondition().equals(this.getStoppingCondition()) == false)
return false;
if (other.getVpcConfig() == null ^ this.getVpcConfig() == null)
return false;
if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getOptimizationJobArn() == null) ? 0 : getOptimizationJobArn().hashCode());
hashCode = prime * hashCode + ((getOptimizationJobStatus() == null) ? 0 : getOptimizationJobStatus().hashCode());
hashCode = prime * hashCode + ((getOptimizationStartTime() == null) ? 0 : getOptimizationStartTime().hashCode());
hashCode = prime * hashCode + ((getOptimizationEndTime() == null) ? 0 : getOptimizationEndTime().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode());
hashCode = prime * hashCode + ((getOptimizationJobName() == null) ? 0 : getOptimizationJobName().hashCode());
hashCode = prime * hashCode + ((getModelSource() == null) ? 0 : getModelSource().hashCode());
hashCode = prime * hashCode + ((getOptimizationEnvironment() == null) ? 0 : getOptimizationEnvironment().hashCode());
hashCode = prime * hashCode + ((getDeploymentInstanceType() == null) ? 0 : getDeploymentInstanceType().hashCode());
hashCode = prime * hashCode + ((getOptimizationConfigs() == null) ? 0 : getOptimizationConfigs().hashCode());
hashCode = prime * hashCode + ((getOutputConfig() == null) ? 0 : getOutputConfig().hashCode());
hashCode = prime * hashCode + ((getOptimizationOutput() == null) ? 0 : getOptimizationOutput().hashCode());
hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
hashCode = prime * hashCode + ((getStoppingCondition() == null) ? 0 : getStoppingCondition().hashCode());
hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode());
return hashCode;
}
@Override
public DescribeOptimizationJobResult clone() {
try {
return (DescribeOptimizationJobResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}