
com.pulumi.azurenative.machinelearningservices.outputs.ObjectiveResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.machinelearningservices.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class ObjectiveResponse {
/**
* @return [Required] Defines supported metric goals for hyperparameter tuning
*
*/
private String goal;
/**
* @return [Required] Name of the metric to optimize.
*
*/
private String primaryMetric;
private ObjectiveResponse() {}
/**
* @return [Required] Defines supported metric goals for hyperparameter tuning
*
*/
public String goal() {
return this.goal;
}
/**
* @return [Required] Name of the metric to optimize.
*
*/
public String primaryMetric() {
return this.primaryMetric;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ObjectiveResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String goal;
private String primaryMetric;
public Builder() {}
public Builder(ObjectiveResponse defaults) {
Objects.requireNonNull(defaults);
this.goal = defaults.goal;
this.primaryMetric = defaults.primaryMetric;
}
@CustomType.Setter
public Builder goal(String goal) {
if (goal == null) {
throw new MissingRequiredPropertyException("ObjectiveResponse", "goal");
}
this.goal = goal;
return this;
}
@CustomType.Setter
public Builder primaryMetric(String primaryMetric) {
if (primaryMetric == null) {
throw new MissingRequiredPropertyException("ObjectiveResponse", "primaryMetric");
}
this.primaryMetric = primaryMetric;
return this;
}
public ObjectiveResponse build() {
final var _resultValue = new ObjectiveResponse();
_resultValue.goal = goal;
_resultValue.primaryMetric = primaryMetric;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy