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

com.pulumi.aws.networkmanager.TransitGatewayRouteTableAttachmentArgs Maven / Gradle / Ivy

// *** 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.networkmanager;

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


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

    public static final TransitGatewayRouteTableAttachmentArgs Empty = new TransitGatewayRouteTableAttachmentArgs();

    /**
     * The ID of the peer for the attachment.
     * 
     */
    @Import(name="peeringId", required=true)
    private Output peeringId;

    /**
     * @return The ID of the peer for the attachment.
     * 
     */
    public Output peeringId() {
        return this.peeringId;
    }

    /**
     * Key-value tags for the 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 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);
    }

    /**
     * The ARN of the transit gateway route table for the attachment.
     * 
     */
    @Import(name="transitGatewayRouteTableArn", required=true)
    private Output transitGatewayRouteTableArn;

    /**
     * @return The ARN of the transit gateway route table for the attachment.
     * 
     */
    public Output transitGatewayRouteTableArn() {
        return this.transitGatewayRouteTableArn;
    }

    private TransitGatewayRouteTableAttachmentArgs() {}

    private TransitGatewayRouteTableAttachmentArgs(TransitGatewayRouteTableAttachmentArgs $) {
        this.peeringId = $.peeringId;
        this.tags = $.tags;
        this.transitGatewayRouteTableArn = $.transitGatewayRouteTableArn;
    }

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

    public static final class Builder {
        private TransitGatewayRouteTableAttachmentArgs $;

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

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

        /**
         * @param peeringId The ID of the peer for the attachment.
         * 
         * @return builder
         * 
         */
        public Builder peeringId(Output peeringId) {
            $.peeringId = peeringId;
            return this;
        }

        /**
         * @param peeringId The ID of the peer for the attachment.
         * 
         * @return builder
         * 
         */
        public Builder peeringId(String peeringId) {
            return peeringId(Output.of(peeringId));
        }

        /**
         * @param tags Key-value tags for the 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 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 transitGatewayRouteTableArn The ARN of the transit gateway route table for the attachment.
         * 
         * @return builder
         * 
         */
        public Builder transitGatewayRouteTableArn(Output transitGatewayRouteTableArn) {
            $.transitGatewayRouteTableArn = transitGatewayRouteTableArn;
            return this;
        }

        /**
         * @param transitGatewayRouteTableArn The ARN of the transit gateway route table for the attachment.
         * 
         * @return builder
         * 
         */
        public Builder transitGatewayRouteTableArn(String transitGatewayRouteTableArn) {
            return transitGatewayRouteTableArn(Output.of(transitGatewayRouteTableArn));
        }

        public TransitGatewayRouteTableAttachmentArgs build() {
            if ($.peeringId == null) {
                throw new MissingRequiredPropertyException("TransitGatewayRouteTableAttachmentArgs", "peeringId");
            }
            if ($.transitGatewayRouteTableArn == null) {
                throw new MissingRequiredPropertyException("TransitGatewayRouteTableAttachmentArgs", "transitGatewayRouteTableArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy