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

com.pulumi.aws.networkmanager.inputs.GetConnectionPlainArgs 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.72.0
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.inputs;

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 GetConnectionPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetConnectionPlainArgs Empty = new GetConnectionPlainArgs();

    /**
     * ID of the specific connection to retrieve.
     * 
     */
    @Import(name="connectionId", required=true)
    private String connectionId;

    /**
     * @return ID of the specific connection to retrieve.
     * 
     */
    public String connectionId() {
        return this.connectionId;
    }

    /**
     * ID of the Global Network of the connection to retrieve.
     * 
     */
    @Import(name="globalNetworkId", required=true)
    private String globalNetworkId;

    /**
     * @return ID of the Global Network of the connection to retrieve.
     * 
     */
    public String globalNetworkId() {
        return this.globalNetworkId;
    }

    /**
     * Key-value tags for the connection.
     * 
     */
    @Import(name="tags")
    private @Nullable Map tags;

    /**
     * @return Key-value tags for the connection.
     * 
     */
    public Optional> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetConnectionPlainArgs() {}

    private GetConnectionPlainArgs(GetConnectionPlainArgs $) {
        this.connectionId = $.connectionId;
        this.globalNetworkId = $.globalNetworkId;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetConnectionPlainArgs $;

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

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

        /**
         * @param connectionId ID of the specific connection to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder connectionId(String connectionId) {
            $.connectionId = connectionId;
            return this;
        }

        /**
         * @param globalNetworkId ID of the Global Network of the connection to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder globalNetworkId(String globalNetworkId) {
            $.globalNetworkId = globalNetworkId;
            return this;
        }

        /**
         * @param tags Key-value tags for the connection.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Map tags) {
            $.tags = tags;
            return this;
        }

        public GetConnectionPlainArgs build() {
            if ($.connectionId == null) {
                throw new MissingRequiredPropertyException("GetConnectionPlainArgs", "connectionId");
            }
            if ($.globalNetworkId == null) {
                throw new MissingRequiredPropertyException("GetConnectionPlainArgs", "globalNetworkId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy