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

com.pulumi.aws.ec2.inputs.VpnConnectionRouteArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.0
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.aws.ec2.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 VpnConnectionRouteArgs extends com.pulumi.resources.ResourceArgs {

    public static final VpnConnectionRouteArgs Empty = new VpnConnectionRouteArgs();

    /**
     * The CIDR block associated with the local subnet of the customer data center.
     * 
     */
    @Import(name="destinationCidrBlock")
    private @Nullable Output destinationCidrBlock;

    /**
     * @return The CIDR block associated with the local subnet of the customer data center.
     * 
     */
    public Optional> destinationCidrBlock() {
        return Optional.ofNullable(this.destinationCidrBlock);
    }

    /**
     * Indicates how the routes were provided.
     * 
     */
    @Import(name="source")
    private @Nullable Output source;

    /**
     * @return Indicates how the routes were provided.
     * 
     */
    public Optional> source() {
        return Optional.ofNullable(this.source);
    }

    /**
     * The current state of the static route.
     * 
     */
    @Import(name="state")
    private @Nullable Output state;

    /**
     * @return The current state of the static route.
     * 
     */
    public Optional> state() {
        return Optional.ofNullable(this.state);
    }

    private VpnConnectionRouteArgs() {}

    private VpnConnectionRouteArgs(VpnConnectionRouteArgs $) {
        this.destinationCidrBlock = $.destinationCidrBlock;
        this.source = $.source;
        this.state = $.state;
    }

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

    public static final class Builder {
        private VpnConnectionRouteArgs $;

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

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

        /**
         * @param destinationCidrBlock The CIDR block associated with the local subnet of the customer data center.
         * 
         * @return builder
         * 
         */
        public Builder destinationCidrBlock(@Nullable Output destinationCidrBlock) {
            $.destinationCidrBlock = destinationCidrBlock;
            return this;
        }

        /**
         * @param destinationCidrBlock The CIDR block associated with the local subnet of the customer data center.
         * 
         * @return builder
         * 
         */
        public Builder destinationCidrBlock(String destinationCidrBlock) {
            return destinationCidrBlock(Output.of(destinationCidrBlock));
        }

        /**
         * @param source Indicates how the routes were provided.
         * 
         * @return builder
         * 
         */
        public Builder source(@Nullable Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source Indicates how the routes were provided.
         * 
         * @return builder
         * 
         */
        public Builder source(String source) {
            return source(Output.of(source));
        }

        /**
         * @param state The current state of the static route.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state The current state of the static route.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Output.of(state));
        }

        public VpnConnectionRouteArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy