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

com.pulumi.aws.networkmanager.ConnectAttachmentArgs 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.networkmanager;

import com.pulumi.aws.networkmanager.inputs.ConnectAttachmentOptionsArgs;
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 ConnectAttachmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectAttachmentArgs Empty = new ConnectAttachmentArgs();

    /**
     * The ID of a core network where you want to create the attachment.
     * 
     */
    @Import(name="coreNetworkId", required=true)
    private Output coreNetworkId;

    /**
     * @return The ID of a core network where you want to create the attachment.
     * 
     */
    public Output coreNetworkId() {
        return this.coreNetworkId;
    }

    /**
     * The Region where the edge is located.
     * 
     */
    @Import(name="edgeLocation", required=true)
    private Output edgeLocation;

    /**
     * @return The Region where the edge is located.
     * 
     */
    public Output edgeLocation() {
        return this.edgeLocation;
    }

    /**
     * Options block. See options for more information.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="options", required=true)
    private Output options;

    /**
     * @return Options block. See options for more information.
     * 
     * The following arguments are optional:
     * 
     */
    public Output options() {
        return this.options;
    }

    /**
     * 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 ID of the attachment between the two connections.
     * 
     */
    @Import(name="transportAttachmentId", required=true)
    private Output transportAttachmentId;

    /**
     * @return The ID of the attachment between the two connections.
     * 
     */
    public Output transportAttachmentId() {
        return this.transportAttachmentId;
    }

    private ConnectAttachmentArgs() {}

    private ConnectAttachmentArgs(ConnectAttachmentArgs $) {
        this.coreNetworkId = $.coreNetworkId;
        this.edgeLocation = $.edgeLocation;
        this.options = $.options;
        this.tags = $.tags;
        this.transportAttachmentId = $.transportAttachmentId;
    }

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

    public static final class Builder {
        private ConnectAttachmentArgs $;

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

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

        /**
         * @param coreNetworkId The ID of a core network where you want to create the attachment.
         * 
         * @return builder
         * 
         */
        public Builder coreNetworkId(Output coreNetworkId) {
            $.coreNetworkId = coreNetworkId;
            return this;
        }

        /**
         * @param coreNetworkId The ID of a core network where you want to create the attachment.
         * 
         * @return builder
         * 
         */
        public Builder coreNetworkId(String coreNetworkId) {
            return coreNetworkId(Output.of(coreNetworkId));
        }

        /**
         * @param edgeLocation The Region where the edge is located.
         * 
         * @return builder
         * 
         */
        public Builder edgeLocation(Output edgeLocation) {
            $.edgeLocation = edgeLocation;
            return this;
        }

        /**
         * @param edgeLocation The Region where the edge is located.
         * 
         * @return builder
         * 
         */
        public Builder edgeLocation(String edgeLocation) {
            return edgeLocation(Output.of(edgeLocation));
        }

        /**
         * @param options Options block. See options for more information.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder options(Output options) {
            $.options = options;
            return this;
        }

        /**
         * @param options Options block. See options for more information.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder options(ConnectAttachmentOptionsArgs options) {
            return options(Output.of(options));
        }

        /**
         * @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 transportAttachmentId The ID of the attachment between the two connections.
         * 
         * @return builder
         * 
         */
        public Builder transportAttachmentId(Output transportAttachmentId) {
            $.transportAttachmentId = transportAttachmentId;
            return this;
        }

        /**
         * @param transportAttachmentId The ID of the attachment between the two connections.
         * 
         * @return builder
         * 
         */
        public Builder transportAttachmentId(String transportAttachmentId) {
            return transportAttachmentId(Output.of(transportAttachmentId));
        }

        public ConnectAttachmentArgs build() {
            if ($.coreNetworkId == null) {
                throw new MissingRequiredPropertyException("ConnectAttachmentArgs", "coreNetworkId");
            }
            if ($.edgeLocation == null) {
                throw new MissingRequiredPropertyException("ConnectAttachmentArgs", "edgeLocation");
            }
            if ($.options == null) {
                throw new MissingRequiredPropertyException("ConnectAttachmentArgs", "options");
            }
            if ($.transportAttachmentId == null) {
                throw new MissingRequiredPropertyException("ConnectAttachmentArgs", "transportAttachmentId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy