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

com.pulumi.aws.ec2transitgateway.inputs.PeeringAttachmentAccepterState 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.ec2transitgateway.inputs;

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


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

    public static final PeeringAttachmentAccepterState Empty = new PeeringAttachmentAccepterState();

    /**
     * Identifier of the AWS account that owns the EC2 TGW peering.
     * 
     */
    @Import(name="peerAccountId")
    private @Nullable Output peerAccountId;

    /**
     * @return Identifier of the AWS account that owns the EC2 TGW peering.
     * 
     */
    public Optional> peerAccountId() {
        return Optional.ofNullable(this.peerAccountId);
    }

    @Import(name="peerRegion")
    private @Nullable Output peerRegion;

    public Optional> peerRegion() {
        return Optional.ofNullable(this.peerRegion);
    }

    /**
     * Identifier of EC2 Transit Gateway to peer with.
     * 
     */
    @Import(name="peerTransitGatewayId")
    private @Nullable Output peerTransitGatewayId;

    /**
     * @return Identifier of EC2 Transit Gateway to peer with.
     * 
     */
    public Optional> peerTransitGatewayId() {
        return Optional.ofNullable(this.peerTransitGatewayId);
    }

    /**
     * Key-value tags for the EC2 Transit Gateway Peering Attachment. 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 Key-value tags for the EC2 Transit Gateway Peering Attachment. 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 EC2 Transit Gateway Peering Attachment to manage.
     * 
     */
    @Import(name="transitGatewayAttachmentId")
    private @Nullable Output transitGatewayAttachmentId;

    /**
     * @return The ID of the EC2 Transit Gateway Peering Attachment to manage.
     * 
     */
    public Optional> transitGatewayAttachmentId() {
        return Optional.ofNullable(this.transitGatewayAttachmentId);
    }

    /**
     * Identifier of EC2 Transit Gateway.
     * 
     */
    @Import(name="transitGatewayId")
    private @Nullable Output transitGatewayId;

    /**
     * @return Identifier of EC2 Transit Gateway.
     * 
     */
    public Optional> transitGatewayId() {
        return Optional.ofNullable(this.transitGatewayId);
    }

    private PeeringAttachmentAccepterState() {}

    private PeeringAttachmentAccepterState(PeeringAttachmentAccepterState $) {
        this.peerAccountId = $.peerAccountId;
        this.peerRegion = $.peerRegion;
        this.peerTransitGatewayId = $.peerTransitGatewayId;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.transitGatewayAttachmentId = $.transitGatewayAttachmentId;
        this.transitGatewayId = $.transitGatewayId;
    }

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

    public static final class Builder {
        private PeeringAttachmentAccepterState $;

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

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

        /**
         * @param peerAccountId Identifier of the AWS account that owns the EC2 TGW peering.
         * 
         * @return builder
         * 
         */
        public Builder peerAccountId(@Nullable Output peerAccountId) {
            $.peerAccountId = peerAccountId;
            return this;
        }

        /**
         * @param peerAccountId Identifier of the AWS account that owns the EC2 TGW peering.
         * 
         * @return builder
         * 
         */
        public Builder peerAccountId(String peerAccountId) {
            return peerAccountId(Output.of(peerAccountId));
        }

        public Builder peerRegion(@Nullable Output peerRegion) {
            $.peerRegion = peerRegion;
            return this;
        }

        public Builder peerRegion(String peerRegion) {
            return peerRegion(Output.of(peerRegion));
        }

        /**
         * @param peerTransitGatewayId Identifier of EC2 Transit Gateway to peer with.
         * 
         * @return builder
         * 
         */
        public Builder peerTransitGatewayId(@Nullable Output peerTransitGatewayId) {
            $.peerTransitGatewayId = peerTransitGatewayId;
            return this;
        }

        /**
         * @param peerTransitGatewayId Identifier of EC2 Transit Gateway to peer with.
         * 
         * @return builder
         * 
         */
        public Builder peerTransitGatewayId(String peerTransitGatewayId) {
            return peerTransitGatewayId(Output.of(peerTransitGatewayId));
        }

        /**
         * @param tags Key-value tags for the EC2 Transit Gateway Peering Attachment. 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 Key-value tags for the EC2 Transit Gateway Peering Attachment. 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 transitGatewayAttachmentId The ID of the EC2 Transit Gateway Peering Attachment to manage.
         * 
         * @return builder
         * 
         */
        public Builder transitGatewayAttachmentId(@Nullable Output transitGatewayAttachmentId) {
            $.transitGatewayAttachmentId = transitGatewayAttachmentId;
            return this;
        }

        /**
         * @param transitGatewayAttachmentId The ID of the EC2 Transit Gateway Peering Attachment to manage.
         * 
         * @return builder
         * 
         */
        public Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) {
            return transitGatewayAttachmentId(Output.of(transitGatewayAttachmentId));
        }

        /**
         * @param transitGatewayId Identifier of EC2 Transit Gateway.
         * 
         * @return builder
         * 
         */
        public Builder transitGatewayId(@Nullable Output transitGatewayId) {
            $.transitGatewayId = transitGatewayId;
            return this;
        }

        /**
         * @param transitGatewayId Identifier of EC2 Transit Gateway.
         * 
         * @return builder
         * 
         */
        public Builder transitGatewayId(String transitGatewayId) {
            return transitGatewayId(Output.of(transitGatewayId));
        }

        public PeeringAttachmentAccepterState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy