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

com.pulumi.azurenative.peering.inputs.PeeringPropertiesDirectArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.azurenative.peering.inputs;

import com.pulumi.azurenative.peering.enums.DirectPeeringType;
import com.pulumi.azurenative.peering.inputs.DirectConnectionArgs;
import com.pulumi.azurenative.peering.inputs.SubResourceArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The properties that define a direct peering.
 * 
 */
public final class PeeringPropertiesDirectArgs extends com.pulumi.resources.ResourceArgs {

    public static final PeeringPropertiesDirectArgs Empty = new PeeringPropertiesDirectArgs();

    /**
     * The set of connections that constitute a direct peering.
     * 
     */
    @Import(name="connections")
    private @Nullable Output> connections;

    /**
     * @return The set of connections that constitute a direct peering.
     * 
     */
    public Optional>> connections() {
        return Optional.ofNullable(this.connections);
    }

    /**
     * The type of direct peering.
     * 
     */
    @Import(name="directPeeringType")
    private @Nullable Output> directPeeringType;

    /**
     * @return The type of direct peering.
     * 
     */
    public Optional>> directPeeringType() {
        return Optional.ofNullable(this.directPeeringType);
    }

    /**
     * The reference of the peer ASN.
     * 
     */
    @Import(name="peerAsn")
    private @Nullable Output peerAsn;

    /**
     * @return The reference of the peer ASN.
     * 
     */
    public Optional> peerAsn() {
        return Optional.ofNullable(this.peerAsn);
    }

    private PeeringPropertiesDirectArgs() {}

    private PeeringPropertiesDirectArgs(PeeringPropertiesDirectArgs $) {
        this.connections = $.connections;
        this.directPeeringType = $.directPeeringType;
        this.peerAsn = $.peerAsn;
    }

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

    public static final class Builder {
        private PeeringPropertiesDirectArgs $;

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

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

        /**
         * @param connections The set of connections that constitute a direct peering.
         * 
         * @return builder
         * 
         */
        public Builder connections(@Nullable Output> connections) {
            $.connections = connections;
            return this;
        }

        /**
         * @param connections The set of connections that constitute a direct peering.
         * 
         * @return builder
         * 
         */
        public Builder connections(List connections) {
            return connections(Output.of(connections));
        }

        /**
         * @param connections The set of connections that constitute a direct peering.
         * 
         * @return builder
         * 
         */
        public Builder connections(DirectConnectionArgs... connections) {
            return connections(List.of(connections));
        }

        /**
         * @param directPeeringType The type of direct peering.
         * 
         * @return builder
         * 
         */
        public Builder directPeeringType(@Nullable Output> directPeeringType) {
            $.directPeeringType = directPeeringType;
            return this;
        }

        /**
         * @param directPeeringType The type of direct peering.
         * 
         * @return builder
         * 
         */
        public Builder directPeeringType(Either directPeeringType) {
            return directPeeringType(Output.of(directPeeringType));
        }

        /**
         * @param directPeeringType The type of direct peering.
         * 
         * @return builder
         * 
         */
        public Builder directPeeringType(String directPeeringType) {
            return directPeeringType(Either.ofLeft(directPeeringType));
        }

        /**
         * @param directPeeringType The type of direct peering.
         * 
         * @return builder
         * 
         */
        public Builder directPeeringType(DirectPeeringType directPeeringType) {
            return directPeeringType(Either.ofRight(directPeeringType));
        }

        /**
         * @param peerAsn The reference of the peer ASN.
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(@Nullable Output peerAsn) {
            $.peerAsn = peerAsn;
            return this;
        }

        /**
         * @param peerAsn The reference of the peer ASN.
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(SubResourceArgs peerAsn) {
            return peerAsn(Output.of(peerAsn));
        }

        public PeeringPropertiesDirectArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy