/* * 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; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The location of artifacts for an AutoML candidate job. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CandidateArtifactLocations implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon S3 prefix to the explainability artifacts generated for the AutoML candidate. *
*/ private String explainability; /** ** The Amazon S3 prefix to the model insight artifacts generated for the AutoML candidate. *
*/ private String modelInsights; /** ** The Amazon S3 prefix to the accuracy metrics and the inference results observed over the testing window. * Available only for the time-series forecasting problem type. *
*/ private String backtestResults; /** ** The Amazon S3 prefix to the explainability artifacts generated for the AutoML candidate. *
* * @param explainability * The Amazon S3 prefix to the explainability artifacts generated for the AutoML candidate. */ public void setExplainability(String explainability) { this.explainability = explainability; } /** ** The Amazon S3 prefix to the explainability artifacts generated for the AutoML candidate. *
* * @return The Amazon S3 prefix to the explainability artifacts generated for the AutoML candidate. */ public String getExplainability() { return this.explainability; } /** ** The Amazon S3 prefix to the explainability artifacts generated for the AutoML candidate. *
* * @param explainability * The Amazon S3 prefix to the explainability artifacts generated for the AutoML candidate. * @return Returns a reference to this object so that method calls can be chained together. */ public CandidateArtifactLocations withExplainability(String explainability) { setExplainability(explainability); return this; } /** ** The Amazon S3 prefix to the model insight artifacts generated for the AutoML candidate. *
* * @param modelInsights * The Amazon S3 prefix to the model insight artifacts generated for the AutoML candidate. */ public void setModelInsights(String modelInsights) { this.modelInsights = modelInsights; } /** ** The Amazon S3 prefix to the model insight artifacts generated for the AutoML candidate. *
* * @return The Amazon S3 prefix to the model insight artifacts generated for the AutoML candidate. */ public String getModelInsights() { return this.modelInsights; } /** ** The Amazon S3 prefix to the model insight artifacts generated for the AutoML candidate. *
* * @param modelInsights * The Amazon S3 prefix to the model insight artifacts generated for the AutoML candidate. * @return Returns a reference to this object so that method calls can be chained together. */ public CandidateArtifactLocations withModelInsights(String modelInsights) { setModelInsights(modelInsights); return this; } /** ** The Amazon S3 prefix to the accuracy metrics and the inference results observed over the testing window. * Available only for the time-series forecasting problem type. *
* * @param backtestResults * The Amazon S3 prefix to the accuracy metrics and the inference results observed over the testing window. * Available only for the time-series forecasting problem type. */ public void setBacktestResults(String backtestResults) { this.backtestResults = backtestResults; } /** ** The Amazon S3 prefix to the accuracy metrics and the inference results observed over the testing window. * Available only for the time-series forecasting problem type. *
* * @return The Amazon S3 prefix to the accuracy metrics and the inference results observed over the testing window. * Available only for the time-series forecasting problem type. */ public String getBacktestResults() { return this.backtestResults; } /** ** The Amazon S3 prefix to the accuracy metrics and the inference results observed over the testing window. * Available only for the time-series forecasting problem type. *
* * @param backtestResults * The Amazon S3 prefix to the accuracy metrics and the inference results observed over the testing window. * Available only for the time-series forecasting problem type. * @return Returns a reference to this object so that method calls can be chained together. */ public CandidateArtifactLocations withBacktestResults(String backtestResults) { setBacktestResults(backtestResults); 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 (getExplainability() != null) sb.append("Explainability: ").append(getExplainability()).append(","); if (getModelInsights() != null) sb.append("ModelInsights: ").append(getModelInsights()).append(","); if (getBacktestResults() != null) sb.append("BacktestResults: ").append(getBacktestResults()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CandidateArtifactLocations == false) return false; CandidateArtifactLocations other = (CandidateArtifactLocations) obj; if (other.getExplainability() == null ^ this.getExplainability() == null) return false; if (other.getExplainability() != null && other.getExplainability().equals(this.getExplainability()) == false) return false; if (other.getModelInsights() == null ^ this.getModelInsights() == null) return false; if (other.getModelInsights() != null && other.getModelInsights().equals(this.getModelInsights()) == false) return false; if (other.getBacktestResults() == null ^ this.getBacktestResults() == null) return false; if (other.getBacktestResults() != null && other.getBacktestResults().equals(this.getBacktestResults()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExplainability() == null) ? 0 : getExplainability().hashCode()); hashCode = prime * hashCode + ((getModelInsights() == null) ? 0 : getModelInsights().hashCode()); hashCode = prime * hashCode + ((getBacktestResults() == null) ? 0 : getBacktestResults().hashCode()); return hashCode; } @Override public CandidateArtifactLocations clone() { try { return (CandidateArtifactLocations) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.CandidateArtifactLocationsMarshaller.getInstance().marshall(this, protocolMarshaller); } }