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

com.pulumi.aws.ec2.outputs.VpnConnectionRoute 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.60.0-alpha.1731982519
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.outputs;

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

@CustomType
public final class VpnConnectionRoute {
    /**
     * @return The CIDR block associated with the local subnet of the customer data center.
     * 
     */
    private @Nullable String destinationCidrBlock;
    /**
     * @return Indicates how the routes were provided.
     * 
     */
    private @Nullable String source;
    /**
     * @return The current state of the static route.
     * 
     */
    private @Nullable String state;

    private VpnConnectionRoute() {}
    /**
     * @return The CIDR block associated with the local subnet of the customer data center.
     * 
     */
    public Optional destinationCidrBlock() {
        return Optional.ofNullable(this.destinationCidrBlock);
    }
    /**
     * @return Indicates how the routes were provided.
     * 
     */
    public Optional source() {
        return Optional.ofNullable(this.source);
    }
    /**
     * @return The current state of the static route.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }

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

    public static Builder builder(VpnConnectionRoute defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String destinationCidrBlock;
        private @Nullable String source;
        private @Nullable String state;
        public Builder() {}
        public Builder(VpnConnectionRoute defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.destinationCidrBlock = defaults.destinationCidrBlock;
    	      this.source = defaults.source;
    	      this.state = defaults.state;
        }

        @CustomType.Setter
        public Builder destinationCidrBlock(@Nullable String destinationCidrBlock) {

            this.destinationCidrBlock = destinationCidrBlock;
            return this;
        }
        @CustomType.Setter
        public Builder source(@Nullable String source) {

            this.source = source;
            return this;
        }
        @CustomType.Setter
        public Builder state(@Nullable String state) {

            this.state = state;
            return this;
        }
        public VpnConnectionRoute build() {
            final var _resultValue = new VpnConnectionRoute();
            _resultValue.destinationCidrBlock = destinationCidrBlock;
            _resultValue.source = source;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy