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

com.pulumi.cloudflare.TunnelRouteArgs 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.cloudflare;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class TunnelRouteArgs extends com.pulumi.resources.ResourceArgs {

    public static final TunnelRouteArgs Empty = new TunnelRouteArgs();

    /**
     * The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    @Import(name="accountId", required=true)
    private Output accountId;

    /**
     * @return The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    public Output accountId() {
        return this.accountId;
    }

    /**
     * Description of the tunnel route.
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return Description of the tunnel route.
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
     * 
     */
    @Import(name="network", required=true)
    private Output network;

    /**
     * @return The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
     * 
     */
    public Output network() {
        return this.network;
    }

    /**
     * The ID of the tunnel that will service the tunnel route.
     * 
     */
    @Import(name="tunnelId", required=true)
    private Output tunnelId;

    /**
     * @return The ID of the tunnel that will service the tunnel route.
     * 
     */
    public Output tunnelId() {
        return this.tunnelId;
    }

    /**
     * The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    @Import(name="virtualNetworkId")
    private @Nullable Output virtualNetworkId;

    /**
     * @return The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    public Optional> virtualNetworkId() {
        return Optional.ofNullable(this.virtualNetworkId);
    }

    private TunnelRouteArgs() {}

    private TunnelRouteArgs(TunnelRouteArgs $) {
        this.accountId = $.accountId;
        this.comment = $.comment;
        this.network = $.network;
        this.tunnelId = $.tunnelId;
        this.virtualNetworkId = $.virtualNetworkId;
    }

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

    public static final class Builder {
        private TunnelRouteArgs $;

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

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

        /**
         * @param accountId The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder accountId(Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param comment Description of the tunnel route.
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment Description of the tunnel route.
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param network The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
         * 
         * @return builder
         * 
         */
        public Builder network(Output network) {
            $.network = network;
            return this;
        }

        /**
         * @param network The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
         * 
         * @return builder
         * 
         */
        public Builder network(String network) {
            return network(Output.of(network));
        }

        /**
         * @param tunnelId The ID of the tunnel that will service the tunnel route.
         * 
         * @return builder
         * 
         */
        public Builder tunnelId(Output tunnelId) {
            $.tunnelId = tunnelId;
            return this;
        }

        /**
         * @param tunnelId The ID of the tunnel that will service the tunnel route.
         * 
         * @return builder
         * 
         */
        public Builder tunnelId(String tunnelId) {
            return tunnelId(Output.of(tunnelId));
        }

        /**
         * @param virtualNetworkId The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkId(@Nullable Output virtualNetworkId) {
            $.virtualNetworkId = virtualNetworkId;
            return this;
        }

        /**
         * @param virtualNetworkId The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkId(String virtualNetworkId) {
            return virtualNetworkId(Output.of(virtualNetworkId));
        }

        public TunnelRouteArgs build() {
            $.accountId = Objects.requireNonNull($.accountId, "expected parameter 'accountId' to be non-null");
            $.network = Objects.requireNonNull($.network, "expected parameter 'network' to be non-null");
            $.tunnelId = Objects.requireNonNull($.tunnelId, "expected parameter 'tunnelId' to be non-null");
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy