@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HyperParameterTuningJobObjective extends Object implements Serializable, Cloneable, StructuredPojo
 Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to
 evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest
 value for this metric, depending on the value you specify for the Type parameter.
 
| Constructor and Description | 
|---|
| HyperParameterTuningJobObjective() | 
| Modifier and Type | Method and Description | 
|---|---|
| HyperParameterTuningJobObjective | clone() | 
| boolean | equals(Object obj) | 
| String | getMetricName()
 The name of the metric to use for the objective metric. | 
| String | getType()
 Whether to minimize or maximize the objective metric. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setMetricName(String metricName)
 The name of the metric to use for the objective metric. | 
| void | setType(String type)
 Whether to minimize or maximize the objective metric. | 
| String | toString()Returns a string representation of this object. | 
| HyperParameterTuningJobObjective | withMetricName(String metricName)
 The name of the metric to use for the objective metric. | 
| HyperParameterTuningJobObjective | withType(HyperParameterTuningJobObjectiveType type)
 Whether to minimize or maximize the objective metric. | 
| HyperParameterTuningJobObjective | withType(String type)
 Whether to minimize or maximize the objective metric. | 
public void setType(String type)
Whether to minimize or maximize the objective metric.
type - Whether to minimize or maximize the objective metric.HyperParameterTuningJobObjectiveTypepublic String getType()
Whether to minimize or maximize the objective metric.
HyperParameterTuningJobObjectiveTypepublic HyperParameterTuningJobObjective withType(String type)
Whether to minimize or maximize the objective metric.
type - Whether to minimize or maximize the objective metric.HyperParameterTuningJobObjectiveTypepublic HyperParameterTuningJobObjective withType(HyperParameterTuningJobObjectiveType type)
Whether to minimize or maximize the objective metric.
type - Whether to minimize or maximize the objective metric.HyperParameterTuningJobObjectiveTypepublic void setMetricName(String metricName)
The name of the metric to use for the objective metric.
metricName - The name of the metric to use for the objective metric.public String getMetricName()
The name of the metric to use for the objective metric.
public HyperParameterTuningJobObjective withMetricName(String metricName)
The name of the metric to use for the objective metric.
metricName - The name of the metric to use for the objective metric.public String toString()
toString in class ObjectObject.toString()public HyperParameterTuningJobObjective clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.