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

com.pulumi.aws.directconnect.HostedConnectionArgs 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.directconnect;

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


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

    public static final HostedConnectionArgs Empty = new HostedConnectionArgs();

    /**
     * The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps and 10Gbps. Case sensitive.
     * 
     */
    @Import(name="bandwidth", required=true)
    private Output bandwidth;

    /**
     * @return The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps and 10Gbps. Case sensitive.
     * 
     */
    public Output bandwidth() {
        return this.bandwidth;
    }

    /**
     * The ID of the interconnect or LAG.
     * 
     */
    @Import(name="connectionId", required=true)
    private Output connectionId;

    /**
     * @return The ID of the interconnect or LAG.
     * 
     */
    public Output connectionId() {
        return this.connectionId;
    }

    /**
     * The name of the connection.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the connection.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the AWS account of the customer for the connection.
     * 
     */
    @Import(name="ownerAccountId", required=true)
    private Output ownerAccountId;

    /**
     * @return The ID of the AWS account of the customer for the connection.
     * 
     */
    public Output ownerAccountId() {
        return this.ownerAccountId;
    }

    /**
     * The dedicated VLAN provisioned to the hosted connection.
     * 
     */
    @Import(name="vlan", required=true)
    private Output vlan;

    /**
     * @return The dedicated VLAN provisioned to the hosted connection.
     * 
     */
    public Output vlan() {
        return this.vlan;
    }

    private HostedConnectionArgs() {}

    private HostedConnectionArgs(HostedConnectionArgs $) {
        this.bandwidth = $.bandwidth;
        this.connectionId = $.connectionId;
        this.name = $.name;
        this.ownerAccountId = $.ownerAccountId;
        this.vlan = $.vlan;
    }

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

    public static final class Builder {
        private HostedConnectionArgs $;

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

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

        /**
         * @param bandwidth The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps and 10Gbps. Case sensitive.
         * 
         * @return builder
         * 
         */
        public Builder bandwidth(Output bandwidth) {
            $.bandwidth = bandwidth;
            return this;
        }

        /**
         * @param bandwidth The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps and 10Gbps. Case sensitive.
         * 
         * @return builder
         * 
         */
        public Builder bandwidth(String bandwidth) {
            return bandwidth(Output.of(bandwidth));
        }

        /**
         * @param connectionId The ID of the interconnect or LAG.
         * 
         * @return builder
         * 
         */
        public Builder connectionId(Output connectionId) {
            $.connectionId = connectionId;
            return this;
        }

        /**
         * @param connectionId The ID of the interconnect or LAG.
         * 
         * @return builder
         * 
         */
        public Builder connectionId(String connectionId) {
            return connectionId(Output.of(connectionId));
        }

        /**
         * @param name The name of the connection.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the connection.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param ownerAccountId The ID of the AWS account of the customer for the connection.
         * 
         * @return builder
         * 
         */
        public Builder ownerAccountId(Output ownerAccountId) {
            $.ownerAccountId = ownerAccountId;
            return this;
        }

        /**
         * @param ownerAccountId The ID of the AWS account of the customer for the connection.
         * 
         * @return builder
         * 
         */
        public Builder ownerAccountId(String ownerAccountId) {
            return ownerAccountId(Output.of(ownerAccountId));
        }

        /**
         * @param vlan The dedicated VLAN provisioned to the hosted connection.
         * 
         * @return builder
         * 
         */
        public Builder vlan(Output vlan) {
            $.vlan = vlan;
            return this;
        }

        /**
         * @param vlan The dedicated VLAN provisioned to the hosted connection.
         * 
         * @return builder
         * 
         */
        public Builder vlan(Integer vlan) {
            return vlan(Output.of(vlan));
        }

        public HostedConnectionArgs build() {
            if ($.bandwidth == null) {
                throw new MissingRequiredPropertyException("HostedConnectionArgs", "bandwidth");
            }
            if ($.connectionId == null) {
                throw new MissingRequiredPropertyException("HostedConnectionArgs", "connectionId");
            }
            if ($.ownerAccountId == null) {
                throw new MissingRequiredPropertyException("HostedConnectionArgs", "ownerAccountId");
            }
            if ($.vlan == null) {
                throw new MissingRequiredPropertyException("HostedConnectionArgs", "vlan");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy