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

com.pulumi.aws.networkmanager.LinkArgs 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.aws.networkmanager.inputs.LinkBandwidthArgs;
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 LinkArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinkArgs Empty = new LinkArgs();

    /**
     * The upload speed and download speed in Mbps. Documented below.
     * 
     */
    @Import(name="bandwidth", required=true)
    private Output bandwidth;

    /**
     * @return The upload speed and download speed in Mbps. Documented below.
     * 
     */
    public Output bandwidth() {
        return this.bandwidth;
    }

    /**
     * A description of the link.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of the link.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The ID of the global network.
     * 
     */
    @Import(name="globalNetworkId", required=true)
    private Output globalNetworkId;

    /**
     * @return The ID of the global network.
     * 
     */
    public Output globalNetworkId() {
        return this.globalNetworkId;
    }

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

    /**
     * @return The provider of the link.
     * 
     */
    public Optional> providerName() {
        return Optional.ofNullable(this.providerName);
    }

    /**
     * The ID of the site.
     * 
     */
    @Import(name="siteId", required=true)
    private Output siteId;

    /**
     * @return The ID of the site.
     * 
     */
    public Output siteId() {
        return this.siteId;
    }

    /**
     * Key-value tags for the link. 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 link. 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 type of the link.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

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

    private LinkArgs() {}

    private LinkArgs(LinkArgs $) {
        this.bandwidth = $.bandwidth;
        this.description = $.description;
        this.globalNetworkId = $.globalNetworkId;
        this.providerName = $.providerName;
        this.siteId = $.siteId;
        this.tags = $.tags;
        this.type = $.type;
    }

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

    public static final class Builder {
        private LinkArgs $;

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

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

        /**
         * @param bandwidth The upload speed and download speed in Mbps. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder bandwidth(Output bandwidth) {
            $.bandwidth = bandwidth;
            return this;
        }

        /**
         * @param bandwidth The upload speed and download speed in Mbps. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder bandwidth(LinkBandwidthArgs bandwidth) {
            return bandwidth(Output.of(bandwidth));
        }

        /**
         * @param description A description of the link.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of the link.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param globalNetworkId The ID of the global network.
         * 
         * @return builder
         * 
         */
        public Builder globalNetworkId(Output globalNetworkId) {
            $.globalNetworkId = globalNetworkId;
            return this;
        }

        /**
         * @param globalNetworkId The ID of the global network.
         * 
         * @return builder
         * 
         */
        public Builder globalNetworkId(String globalNetworkId) {
            return globalNetworkId(Output.of(globalNetworkId));
        }

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

        /**
         * @param providerName The provider of the link.
         * 
         * @return builder
         * 
         */
        public Builder providerName(String providerName) {
            return providerName(Output.of(providerName));
        }

        /**
         * @param siteId The ID of the site.
         * 
         * @return builder
         * 
         */
        public Builder siteId(Output siteId) {
            $.siteId = siteId;
            return this;
        }

        /**
         * @param siteId The ID of the site.
         * 
         * @return builder
         * 
         */
        public Builder siteId(String siteId) {
            return siteId(Output.of(siteId));
        }

        /**
         * @param tags Key-value tags for the link. 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 link. 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 type The type of the link.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

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

        public LinkArgs build() {
            if ($.bandwidth == null) {
                throw new MissingRequiredPropertyException("LinkArgs", "bandwidth");
            }
            if ($.globalNetworkId == null) {
                throw new MissingRequiredPropertyException("LinkArgs", "globalNetworkId");
            }
            if ($.siteId == null) {
                throw new MissingRequiredPropertyException("LinkArgs", "siteId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy