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

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

Go to download

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

The 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.aws.ec2.inputs.VpcPeeringConnectionAccepterAccepterArgs;
import com.pulumi.aws.ec2.inputs.VpcPeeringConnectionAccepterRequesterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VpcPeeringConnectionAccepterState Empty = new VpcPeeringConnectionAccepterState();

    /**
     * The status of the VPC Peering Connection request.
     * 
     */
    @Import(name="acceptStatus")
    private @Nullable Output acceptStatus;

    /**
     * @return The status of the VPC Peering Connection request.
     * 
     */
    public Optional> acceptStatus() {
        return Optional.ofNullable(this.acceptStatus);
    }

    /**
     * A configuration block that describes [VPC Peering Connection]
     * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.
     * 
     */
    @Import(name="accepter")
    private @Nullable Output accepter;

    /**
     * @return A configuration block that describes [VPC Peering Connection]
     * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.
     * 
     */
    public Optional> accepter() {
        return Optional.ofNullable(this.accepter);
    }

    /**
     * Whether or not to accept the peering request. Defaults to `false`.
     * 
     */
    @Import(name="autoAccept")
    private @Nullable Output autoAccept;

    /**
     * @return Whether or not to accept the peering request. Defaults to `false`.
     * 
     */
    public Optional> autoAccept() {
        return Optional.ofNullable(this.autoAccept);
    }

    /**
     * The AWS account ID of the owner of the requester VPC.
     * 
     */
    @Import(name="peerOwnerId")
    private @Nullable Output peerOwnerId;

    /**
     * @return The AWS account ID of the owner of the requester VPC.
     * 
     */
    public Optional> peerOwnerId() {
        return Optional.ofNullable(this.peerOwnerId);
    }

    /**
     * The region of the accepter VPC.
     * 
     */
    @Import(name="peerRegion")
    private @Nullable Output peerRegion;

    /**
     * @return The region of the accepter VPC.
     * 
     */
    public Optional> peerRegion() {
        return Optional.ofNullable(this.peerRegion);
    }

    /**
     * The ID of the requester VPC.
     * 
     */
    @Import(name="peerVpcId")
    private @Nullable Output peerVpcId;

    /**
     * @return The ID of the requester VPC.
     * 
     */
    public Optional> peerVpcId() {
        return Optional.ofNullable(this.peerVpcId);
    }

    /**
     * A configuration block that describes [VPC Peering Connection]
     * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.
     * 
     */
    @Import(name="requester")
    private @Nullable Output requester;

    /**
     * @return A configuration block that describes [VPC Peering Connection]
     * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.
     * 
     */
    public Optional> requester() {
        return Optional.ofNullable(this.requester);
    }

    /**
     * A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    /**
     * The ID of the accepter VPC.
     * 
     */
    @Import(name="vpcId")
    private @Nullable Output vpcId;

    /**
     * @return The ID of the accepter VPC.
     * 
     */
    public Optional> vpcId() {
        return Optional.ofNullable(this.vpcId);
    }

    /**
     * The VPC Peering Connection ID to manage.
     * 
     */
    @Import(name="vpcPeeringConnectionId")
    private @Nullable Output vpcPeeringConnectionId;

    /**
     * @return The VPC Peering Connection ID to manage.
     * 
     */
    public Optional> vpcPeeringConnectionId() {
        return Optional.ofNullable(this.vpcPeeringConnectionId);
    }

    private VpcPeeringConnectionAccepterState() {}

    private VpcPeeringConnectionAccepterState(VpcPeeringConnectionAccepterState $) {
        this.acceptStatus = $.acceptStatus;
        this.accepter = $.accepter;
        this.autoAccept = $.autoAccept;
        this.peerOwnerId = $.peerOwnerId;
        this.peerRegion = $.peerRegion;
        this.peerVpcId = $.peerVpcId;
        this.requester = $.requester;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.vpcId = $.vpcId;
        this.vpcPeeringConnectionId = $.vpcPeeringConnectionId;
    }

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

    public static final class Builder {
        private VpcPeeringConnectionAccepterState $;

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

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

        /**
         * @param acceptStatus The status of the VPC Peering Connection request.
         * 
         * @return builder
         * 
         */
        public Builder acceptStatus(@Nullable Output acceptStatus) {
            $.acceptStatus = acceptStatus;
            return this;
        }

        /**
         * @param acceptStatus The status of the VPC Peering Connection request.
         * 
         * @return builder
         * 
         */
        public Builder acceptStatus(String acceptStatus) {
            return acceptStatus(Output.of(acceptStatus));
        }

        /**
         * @param accepter A configuration block that describes [VPC Peering Connection]
         * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.
         * 
         * @return builder
         * 
         */
        public Builder accepter(@Nullable Output accepter) {
            $.accepter = accepter;
            return this;
        }

        /**
         * @param accepter A configuration block that describes [VPC Peering Connection]
         * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.
         * 
         * @return builder
         * 
         */
        public Builder accepter(VpcPeeringConnectionAccepterAccepterArgs accepter) {
            return accepter(Output.of(accepter));
        }

        /**
         * @param autoAccept Whether or not to accept the peering request. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder autoAccept(@Nullable Output autoAccept) {
            $.autoAccept = autoAccept;
            return this;
        }

        /**
         * @param autoAccept Whether or not to accept the peering request. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder autoAccept(Boolean autoAccept) {
            return autoAccept(Output.of(autoAccept));
        }

        /**
         * @param peerOwnerId The AWS account ID of the owner of the requester VPC.
         * 
         * @return builder
         * 
         */
        public Builder peerOwnerId(@Nullable Output peerOwnerId) {
            $.peerOwnerId = peerOwnerId;
            return this;
        }

        /**
         * @param peerOwnerId The AWS account ID of the owner of the requester VPC.
         * 
         * @return builder
         * 
         */
        public Builder peerOwnerId(String peerOwnerId) {
            return peerOwnerId(Output.of(peerOwnerId));
        }

        /**
         * @param peerRegion The region of the accepter VPC.
         * 
         * @return builder
         * 
         */
        public Builder peerRegion(@Nullable Output peerRegion) {
            $.peerRegion = peerRegion;
            return this;
        }

        /**
         * @param peerRegion The region of the accepter VPC.
         * 
         * @return builder
         * 
         */
        public Builder peerRegion(String peerRegion) {
            return peerRegion(Output.of(peerRegion));
        }

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

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

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

        /**
         * @param requester A configuration block that describes [VPC Peering Connection]
         * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.
         * 
         * @return builder
         * 
         */
        public Builder requester(VpcPeeringConnectionAccepterRequesterArgs requester) {
            return requester(Output.of(requester));
        }

        /**
         * @param tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

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

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

        /**
         * @param vpcPeeringConnectionId The VPC Peering Connection ID to manage.
         * 
         * @return builder
         * 
         */
        public Builder vpcPeeringConnectionId(@Nullable Output vpcPeeringConnectionId) {
            $.vpcPeeringConnectionId = vpcPeeringConnectionId;
            return this;
        }

        /**
         * @param vpcPeeringConnectionId The VPC Peering Connection ID to manage.
         * 
         * @return builder
         * 
         */
        public Builder vpcPeeringConnectionId(String vpcPeeringConnectionId) {
            return vpcPeeringConnectionId(Output.of(vpcPeeringConnectionId));
        }

        public VpcPeeringConnectionAccepterState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy