com.pulumi.azurenative.machinelearningservices.inputs.RouteArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class RouteArgs extends com.pulumi.resources.ResourceArgs {
public static final RouteArgs Empty = new RouteArgs();
/**
* [Required] The path for the route.
*
*/
@Import(name="path", required=true)
private Output path;
/**
* @return [Required] The path for the route.
*
*/
public Output path() {
return this.path;
}
/**
* [Required] The port for the route.
*
*/
@Import(name="port", required=true)
private Output port;
/**
* @return [Required] The port for the route.
*
*/
public Output port() {
return this.port;
}
private RouteArgs() {}
private RouteArgs(RouteArgs $) {
this.path = $.path;
this.port = $.port;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RouteArgs $;
public Builder() {
$ = new RouteArgs();
}
public Builder(RouteArgs defaults) {
$ = new RouteArgs(Objects.requireNonNull(defaults));
}
/**
* @param path [Required] The path for the route.
*
* @return builder
*
*/
public Builder path(Output path) {
$.path = path;
return this;
}
/**
* @param path [Required] The path for the route.
*
* @return builder
*
*/
public Builder path(String path) {
return path(Output.of(path));
}
/**
* @param port [Required] The port for the route.
*
* @return builder
*
*/
public Builder port(Output port) {
$.port = port;
return this;
}
/**
* @param port [Required] The port for the route.
*
* @return builder
*
*/
public Builder port(Integer port) {
return port(Output.of(port));
}
public RouteArgs build() {
if ($.path == null) {
throw new MissingRequiredPropertyException("RouteArgs", "path");
}
if ($.port == null) {
throw new MissingRequiredPropertyException("RouteArgs", "port");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy