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

com.pulumi.aws.route53.inputs.ZoneVpcArgs 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.route53.inputs;

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


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

    public static final ZoneVpcArgs Empty = new ZoneVpcArgs();

    /**
     * ID of the VPC to associate.
     * 
     */
    @Import(name="vpcId", required=true)
    private Output vpcId;

    /**
     * @return ID of the VPC to associate.
     * 
     */
    public Output vpcId() {
        return this.vpcId;
    }

    /**
     * Region of the VPC to associate. Defaults to AWS provider region.
     * 
     */
    @Import(name="vpcRegion")
    private @Nullable Output vpcRegion;

    /**
     * @return Region of the VPC to associate. Defaults to AWS provider region.
     * 
     */
    public Optional> vpcRegion() {
        return Optional.ofNullable(this.vpcRegion);
    }

    private ZoneVpcArgs() {}

    private ZoneVpcArgs(ZoneVpcArgs $) {
        this.vpcId = $.vpcId;
        this.vpcRegion = $.vpcRegion;
    }

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

    public static final class Builder {
        private ZoneVpcArgs $;

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

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

        /**
         * @param vpcId ID of the VPC to associate.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId ID of the VPC to associate.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        /**
         * @param vpcRegion Region of the VPC to associate. Defaults to AWS provider region.
         * 
         * @return builder
         * 
         */
        public Builder vpcRegion(@Nullable Output vpcRegion) {
            $.vpcRegion = vpcRegion;
            return this;
        }

        /**
         * @param vpcRegion Region of the VPC to associate. Defaults to AWS provider region.
         * 
         * @return builder
         * 
         */
        public Builder vpcRegion(String vpcRegion) {
            return vpcRegion(Output.of(vpcRegion));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy