All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.monitor.inputs.NetworkingRouteArgs Maven / Gradle / Ivy

// *** 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.monitor.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;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Networking route configuration.
 * 
 */
public final class NetworkingRouteArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkingRouteArgs Empty = new NetworkingRouteArgs();

    /**
     * Route path.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return Route path.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * The port that will be configured externally. If not specified, it will use the port from the receiver definition.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return The port that will be configured externally. If not specified, it will use the port from the receiver definition.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * The name of the previously defined receiver.
     * 
     */
    @Import(name="receiver", required=true)
    private Output receiver;

    /**
     * @return The name of the previously defined receiver.
     * 
     */
    public Output receiver() {
        return this.receiver;
    }

    /**
     * Route subdomain.
     * 
     */
    @Import(name="subdomain")
    private @Nullable Output subdomain;

    /**
     * @return Route subdomain.
     * 
     */
    public Optional> subdomain() {
        return Optional.ofNullable(this.subdomain);
    }

    private NetworkingRouteArgs() {}

    private NetworkingRouteArgs(NetworkingRouteArgs $) {
        this.path = $.path;
        this.port = $.port;
        this.receiver = $.receiver;
        this.subdomain = $.subdomain;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(NetworkingRouteArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private NetworkingRouteArgs $;

        public Builder() {
            $ = new NetworkingRouteArgs();
        }

        public Builder(NetworkingRouteArgs defaults) {
            $ = new NetworkingRouteArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param path Route path.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Route path.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param port The port that will be configured externally. If not specified, it will use the port from the receiver definition.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The port that will be configured externally. If not specified, it will use the port from the receiver definition.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param receiver The name of the previously defined receiver.
         * 
         * @return builder
         * 
         */
        public Builder receiver(Output receiver) {
            $.receiver = receiver;
            return this;
        }

        /**
         * @param receiver The name of the previously defined receiver.
         * 
         * @return builder
         * 
         */
        public Builder receiver(String receiver) {
            return receiver(Output.of(receiver));
        }

        /**
         * @param subdomain Route subdomain.
         * 
         * @return builder
         * 
         */
        public Builder subdomain(@Nullable Output subdomain) {
            $.subdomain = subdomain;
            return this;
        }

        /**
         * @param subdomain Route subdomain.
         * 
         * @return builder
         * 
         */
        public Builder subdomain(String subdomain) {
            return subdomain(Output.of(subdomain));
        }

        public NetworkingRouteArgs build() {
            if ($.receiver == null) {
                throw new MissingRequiredPropertyException("NetworkingRouteArgs", "receiver");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy