com.amazonaws.services.sagemaker.model.ResolvedAttributes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-sagemaker Show documentation
Show all versions of aws-java-sdk-sagemaker Show documentation
The AWS Java SDK for Amazon SageMaker module holds the client classes that are used for communicating with Amazon SageMaker Service
The newest version!
/*
* 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* The resolved attributes.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ResolvedAttributes implements Serializable, Cloneable, StructuredPojo {
private AutoMLJobObjective autoMLJobObjective;
/**
*
* The problem type.
*
*/
private String problemType;
private AutoMLJobCompletionCriteria completionCriteria;
/**
* @param autoMLJobObjective
*/
public void setAutoMLJobObjective(AutoMLJobObjective autoMLJobObjective) {
this.autoMLJobObjective = autoMLJobObjective;
}
/**
* @return
*/
public AutoMLJobObjective getAutoMLJobObjective() {
return this.autoMLJobObjective;
}
/**
* @param autoMLJobObjective
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolvedAttributes withAutoMLJobObjective(AutoMLJobObjective autoMLJobObjective) {
setAutoMLJobObjective(autoMLJobObjective);
return this;
}
/**
*
* The problem type.
*
*
* @param problemType
* The problem type.
* @see ProblemType
*/
public void setProblemType(String problemType) {
this.problemType = problemType;
}
/**
*
* The problem type.
*
*
* @return The problem type.
* @see ProblemType
*/
public String getProblemType() {
return this.problemType;
}
/**
*
* The problem type.
*
*
* @param problemType
* The problem type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProblemType
*/
public ResolvedAttributes withProblemType(String problemType) {
setProblemType(problemType);
return this;
}
/**
*
* The problem type.
*
*
* @param problemType
* The problem type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProblemType
*/
public ResolvedAttributes withProblemType(ProblemType problemType) {
this.problemType = problemType.toString();
return this;
}
/**
* @param completionCriteria
*/
public void setCompletionCriteria(AutoMLJobCompletionCriteria completionCriteria) {
this.completionCriteria = completionCriteria;
}
/**
* @return
*/
public AutoMLJobCompletionCriteria getCompletionCriteria() {
return this.completionCriteria;
}
/**
* @param completionCriteria
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolvedAttributes withCompletionCriteria(AutoMLJobCompletionCriteria completionCriteria) {
setCompletionCriteria(completionCriteria);
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 (getAutoMLJobObjective() != null)
sb.append("AutoMLJobObjective: ").append(getAutoMLJobObjective()).append(",");
if (getProblemType() != null)
sb.append("ProblemType: ").append(getProblemType()).append(",");
if (getCompletionCriteria() != null)
sb.append("CompletionCriteria: ").append(getCompletionCriteria());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ResolvedAttributes == false)
return false;
ResolvedAttributes other = (ResolvedAttributes) obj;
if (other.getAutoMLJobObjective() == null ^ this.getAutoMLJobObjective() == null)
return false;
if (other.getAutoMLJobObjective() != null && other.getAutoMLJobObjective().equals(this.getAutoMLJobObjective()) == false)
return false;
if (other.getProblemType() == null ^ this.getProblemType() == null)
return false;
if (other.getProblemType() != null && other.getProblemType().equals(this.getProblemType()) == false)
return false;
if (other.getCompletionCriteria() == null ^ this.getCompletionCriteria() == null)
return false;
if (other.getCompletionCriteria() != null && other.getCompletionCriteria().equals(this.getCompletionCriteria()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAutoMLJobObjective() == null) ? 0 : getAutoMLJobObjective().hashCode());
hashCode = prime * hashCode + ((getProblemType() == null) ? 0 : getProblemType().hashCode());
hashCode = prime * hashCode + ((getCompletionCriteria() == null) ? 0 : getCompletionCriteria().hashCode());
return hashCode;
}
@Override
public ResolvedAttributes clone() {
try {
return (ResolvedAttributes) 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.ResolvedAttributesMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy