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

com.pulumi.aws.ec2.PeeringConnectionOptionsArgs 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.66.3
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;

import com.pulumi.aws.ec2.inputs.PeeringConnectionOptionsAccepterArgs;
import com.pulumi.aws.ec2.inputs.PeeringConnectionOptionsRequesterArgs;
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 PeeringConnectionOptionsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PeeringConnectionOptionsArgs Empty = new PeeringConnectionOptionsArgs();

    /**
     * An optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that acceptsthe peering connection (a maximum of one).
     * 
     */
    @Import(name="accepter")
    private @Nullable Output accepter;

    /**
     * @return An optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that acceptsthe peering connection (a maximum of one).
     * 
     */
    public Optional> accepter() {
        return Optional.ofNullable(this.accepter);
    }

    /**
     * A optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requeststhe peering connection (a maximum of one).
     * 
     */
    @Import(name="requester")
    private @Nullable Output requester;

    /**
     * @return A optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requeststhe peering connection (a maximum of one).
     * 
     */
    public Optional> requester() {
        return Optional.ofNullable(this.requester);
    }

    /**
     * The ID of the requester VPC peering connection.
     * 
     */
    @Import(name="vpcPeeringConnectionId", required=true)
    private Output vpcPeeringConnectionId;

    /**
     * @return The ID of the requester VPC peering connection.
     * 
     */
    public Output vpcPeeringConnectionId() {
        return this.vpcPeeringConnectionId;
    }

    private PeeringConnectionOptionsArgs() {}

    private PeeringConnectionOptionsArgs(PeeringConnectionOptionsArgs $) {
        this.accepter = $.accepter;
        this.requester = $.requester;
        this.vpcPeeringConnectionId = $.vpcPeeringConnectionId;
    }

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

    public static final class Builder {
        private PeeringConnectionOptionsArgs $;

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

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

        /**
         * @param accepter An optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that acceptsthe peering connection (a maximum of one).
         * 
         * @return builder
         * 
         */
        public Builder accepter(@Nullable Output accepter) {
            $.accepter = accepter;
            return this;
        }

        /**
         * @param accepter An optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that acceptsthe peering connection (a maximum of one).
         * 
         * @return builder
         * 
         */
        public Builder accepter(PeeringConnectionOptionsAccepterArgs accepter) {
            return accepter(Output.of(accepter));
        }

        /**
         * @param requester A optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requeststhe peering connection (a maximum of one).
         * 
         * @return builder
         * 
         */
        public Builder requester(@Nullable Output requester) {
            $.requester = requester;
            return this;
        }

        /**
         * @param requester A optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requeststhe peering connection (a maximum of one).
         * 
         * @return builder
         * 
         */
        public Builder requester(PeeringConnectionOptionsRequesterArgs requester) {
            return requester(Output.of(requester));
        }

        /**
         * @param vpcPeeringConnectionId The ID of the requester VPC peering connection.
         * 
         * @return builder
         * 
         */
        public Builder vpcPeeringConnectionId(Output vpcPeeringConnectionId) {
            $.vpcPeeringConnectionId = vpcPeeringConnectionId;
            return this;
        }

        /**
         * @param vpcPeeringConnectionId The ID of the requester VPC peering connection.
         * 
         * @return builder
         * 
         */
        public Builder vpcPeeringConnectionId(String vpcPeeringConnectionId) {
            return vpcPeeringConnectionId(Output.of(vpcPeeringConnectionId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy