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

com.pulumi.alicloud.vpc.inputs.RouteEntryState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** 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.alicloud.vpc.inputs;

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 RouteEntryState extends com.pulumi.resources.ResourceArgs {

    public static final RouteEntryState Empty = new RouteEntryState();

    /**
     * The RouteEntry's target network segment.
     * 
     */
    @Import(name="destinationCidrblock")
    private @Nullable Output destinationCidrblock;

    /**
     * @return The RouteEntry's target network segment.
     * 
     */
    public Optional> destinationCidrblock() {
        return Optional.ofNullable(this.destinationCidrblock);
    }

    /**
     * The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The route entry's next hop. ECS instance ID or VPC router interface ID.
     * 
     */
    @Import(name="nexthopId")
    private @Nullable Output nexthopId;

    /**
     * @return The route entry's next hop. ECS instance ID or VPC router interface ID.
     * 
     */
    public Optional> nexthopId() {
        return Optional.ofNullable(this.nexthopId);
    }

    /**
     * The next hop type. Available values:
     * - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
     * - `RouterInterface`: a router interface.
     * - `VpnGateway`: a VPN Gateway.
     * - `HaVip`: a high-availability virtual IP address (HAVIP).
     * - `NetworkInterface`: an elastic network interface (ENI).
     * - `NatGateway`: a Nat Gateway.
     * - `IPv6Gateway`: an IPv6 gateway.
     * - `Attachment`: a transit router.
     * - `VpcPeer`: a VPC Peering Connection.
     * - `Ipv4Gateway`  (Available in 1.193.0+): an IPv4 gateway.
     * 
     */
    @Import(name="nexthopType")
    private @Nullable Output nexthopType;

    /**
     * @return The next hop type. Available values:
     * - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
     * - `RouterInterface`: a router interface.
     * - `VpnGateway`: a VPN Gateway.
     * - `HaVip`: a high-availability virtual IP address (HAVIP).
     * - `NetworkInterface`: an elastic network interface (ENI).
     * - `NatGateway`: a Nat Gateway.
     * - `IPv6Gateway`: an IPv6 gateway.
     * - `Attachment`: a transit router.
     * - `VpcPeer`: a VPC Peering Connection.
     * - `Ipv4Gateway`  (Available in 1.193.0+): an IPv4 gateway.
     * 
     */
    public Optional> nexthopType() {
        return Optional.ofNullable(this.nexthopType);
    }

    /**
     * The ID of the route table.
     * 
     */
    @Import(name="routeTableId")
    private @Nullable Output routeTableId;

    /**
     * @return The ID of the route table.
     * 
     */
    public Optional> routeTableId() {
        return Optional.ofNullable(this.routeTableId);
    }

    /**
     * This argument has been deprecated. Please use other arguments to launch a custom route entry.
     * 
     * @deprecated
     * Attribute router_id has been deprecated and suggest removing it from your template.
     * 
     */
    @Deprecated /* Attribute router_id has been deprecated and suggest removing it from your template. */
    @Import(name="routerId")
    private @Nullable Output routerId;

    /**
     * @return This argument has been deprecated. Please use other arguments to launch a custom route entry.
     * 
     * @deprecated
     * Attribute router_id has been deprecated and suggest removing it from your template.
     * 
     */
    @Deprecated /* Attribute router_id has been deprecated and suggest removing it from your template. */
    public Optional> routerId() {
        return Optional.ofNullable(this.routerId);
    }

    private RouteEntryState() {}

    private RouteEntryState(RouteEntryState $) {
        this.destinationCidrblock = $.destinationCidrblock;
        this.name = $.name;
        this.nexthopId = $.nexthopId;
        this.nexthopType = $.nexthopType;
        this.routeTableId = $.routeTableId;
        this.routerId = $.routerId;
    }

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

    public static final class Builder {
        private RouteEntryState $;

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

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

        /**
         * @param destinationCidrblock The RouteEntry's target network segment.
         * 
         * @return builder
         * 
         */
        public Builder destinationCidrblock(@Nullable Output destinationCidrblock) {
            $.destinationCidrblock = destinationCidrblock;
            return this;
        }

        /**
         * @param destinationCidrblock The RouteEntry's target network segment.
         * 
         * @return builder
         * 
         */
        public Builder destinationCidrblock(String destinationCidrblock) {
            return destinationCidrblock(Output.of(destinationCidrblock));
        }

        /**
         * @param name The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nexthopId The route entry's next hop. ECS instance ID or VPC router interface ID.
         * 
         * @return builder
         * 
         */
        public Builder nexthopId(@Nullable Output nexthopId) {
            $.nexthopId = nexthopId;
            return this;
        }

        /**
         * @param nexthopId The route entry's next hop. ECS instance ID or VPC router interface ID.
         * 
         * @return builder
         * 
         */
        public Builder nexthopId(String nexthopId) {
            return nexthopId(Output.of(nexthopId));
        }

        /**
         * @param nexthopType The next hop type. Available values:
         * - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
         * - `RouterInterface`: a router interface.
         * - `VpnGateway`: a VPN Gateway.
         * - `HaVip`: a high-availability virtual IP address (HAVIP).
         * - `NetworkInterface`: an elastic network interface (ENI).
         * - `NatGateway`: a Nat Gateway.
         * - `IPv6Gateway`: an IPv6 gateway.
         * - `Attachment`: a transit router.
         * - `VpcPeer`: a VPC Peering Connection.
         * - `Ipv4Gateway`  (Available in 1.193.0+): an IPv4 gateway.
         * 
         * @return builder
         * 
         */
        public Builder nexthopType(@Nullable Output nexthopType) {
            $.nexthopType = nexthopType;
            return this;
        }

        /**
         * @param nexthopType The next hop type. Available values:
         * - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
         * - `RouterInterface`: a router interface.
         * - `VpnGateway`: a VPN Gateway.
         * - `HaVip`: a high-availability virtual IP address (HAVIP).
         * - `NetworkInterface`: an elastic network interface (ENI).
         * - `NatGateway`: a Nat Gateway.
         * - `IPv6Gateway`: an IPv6 gateway.
         * - `Attachment`: a transit router.
         * - `VpcPeer`: a VPC Peering Connection.
         * - `Ipv4Gateway`  (Available in 1.193.0+): an IPv4 gateway.
         * 
         * @return builder
         * 
         */
        public Builder nexthopType(String nexthopType) {
            return nexthopType(Output.of(nexthopType));
        }

        /**
         * @param routeTableId The ID of the route table.
         * 
         * @return builder
         * 
         */
        public Builder routeTableId(@Nullable Output routeTableId) {
            $.routeTableId = routeTableId;
            return this;
        }

        /**
         * @param routeTableId The ID of the route table.
         * 
         * @return builder
         * 
         */
        public Builder routeTableId(String routeTableId) {
            return routeTableId(Output.of(routeTableId));
        }

        /**
         * @param routerId This argument has been deprecated. Please use other arguments to launch a custom route entry.
         * 
         * @return builder
         * 
         * @deprecated
         * Attribute router_id has been deprecated and suggest removing it from your template.
         * 
         */
        @Deprecated /* Attribute router_id has been deprecated and suggest removing it from your template. */
        public Builder routerId(@Nullable Output routerId) {
            $.routerId = routerId;
            return this;
        }

        /**
         * @param routerId This argument has been deprecated. Please use other arguments to launch a custom route entry.
         * 
         * @return builder
         * 
         * @deprecated
         * Attribute router_id has been deprecated and suggest removing it from your template.
         * 
         */
        @Deprecated /* Attribute router_id has been deprecated and suggest removing it from your template. */
        public Builder routerId(String routerId) {
            return routerId(Output.of(routerId));
        }

        public RouteEntryState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy