com.pulumi.azurenative.machinelearningservices.outputs.CodeConfigurationResponse 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;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CodeConfigurationResponse {
/**
* @return ARM resource ID of the code asset.
*
*/
private @Nullable String codeId;
/**
* @return [Required] The script to execute on startup. eg. "score.py"
*
*/
private String scoringScript;
private CodeConfigurationResponse() {}
/**
* @return ARM resource ID of the code asset.
*
*/
public Optional codeId() {
return Optional.ofNullable(this.codeId);
}
/**
* @return [Required] The script to execute on startup. eg. "score.py"
*
*/
public String scoringScript() {
return this.scoringScript;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CodeConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String codeId;
private String scoringScript;
public Builder() {}
public Builder(CodeConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.codeId = defaults.codeId;
this.scoringScript = defaults.scoringScript;
}
@CustomType.Setter
public Builder codeId(@Nullable String codeId) {
this.codeId = codeId;
return this;
}
@CustomType.Setter
public Builder scoringScript(String scoringScript) {
if (scoringScript == null) {
throw new MissingRequiredPropertyException("CodeConfigurationResponse", "scoringScript");
}
this.scoringScript = scoringScript;
return this;
}
public CodeConfigurationResponse build() {
final var _resultValue = new CodeConfigurationResponse();
_resultValue.codeId = codeId;
_resultValue.scoringScript = scoringScript;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy