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

com.pulumi.azurenative.kubernetesruntime.BgpPeerArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.kubernetesruntime;

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 BgpPeerArgs extends com.pulumi.resources.ResourceArgs {

    public static final BgpPeerArgs Empty = new BgpPeerArgs();

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

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

    /**
     * My ASN
     * 
     */
    @Import(name="myAsn", required=true)
    private Output myAsn;

    /**
     * @return My ASN
     * 
     */
    public Output myAsn() {
        return this.myAsn;
    }

    /**
     * Peer Address
     * 
     */
    @Import(name="peerAddress", required=true)
    private Output peerAddress;

    /**
     * @return Peer Address
     * 
     */
    public Output peerAddress() {
        return this.peerAddress;
    }

    /**
     * Peer ASN
     * 
     */
    @Import(name="peerAsn", required=true)
    private Output peerAsn;

    /**
     * @return Peer ASN
     * 
     */
    public Output peerAsn() {
        return this.peerAsn;
    }

    /**
     * The fully qualified Azure Resource manager identifier of the resource.
     * 
     */
    @Import(name="resourceUri", required=true)
    private Output resourceUri;

    /**
     * @return The fully qualified Azure Resource manager identifier of the resource.
     * 
     */
    public Output resourceUri() {
        return this.resourceUri;
    }

    private BgpPeerArgs() {}

    private BgpPeerArgs(BgpPeerArgs $) {
        this.bgpPeerName = $.bgpPeerName;
        this.myAsn = $.myAsn;
        this.peerAddress = $.peerAddress;
        this.peerAsn = $.peerAsn;
        this.resourceUri = $.resourceUri;
    }

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

    public static final class Builder {
        private BgpPeerArgs $;

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

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

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

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

        /**
         * @param myAsn My ASN
         * 
         * @return builder
         * 
         */
        public Builder myAsn(Output myAsn) {
            $.myAsn = myAsn;
            return this;
        }

        /**
         * @param myAsn My ASN
         * 
         * @return builder
         * 
         */
        public Builder myAsn(Integer myAsn) {
            return myAsn(Output.of(myAsn));
        }

        /**
         * @param peerAddress Peer Address
         * 
         * @return builder
         * 
         */
        public Builder peerAddress(Output peerAddress) {
            $.peerAddress = peerAddress;
            return this;
        }

        /**
         * @param peerAddress Peer Address
         * 
         * @return builder
         * 
         */
        public Builder peerAddress(String peerAddress) {
            return peerAddress(Output.of(peerAddress));
        }

        /**
         * @param peerAsn Peer ASN
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(Output peerAsn) {
            $.peerAsn = peerAsn;
            return this;
        }

        /**
         * @param peerAsn Peer ASN
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(Integer peerAsn) {
            return peerAsn(Output.of(peerAsn));
        }

        /**
         * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(Output resourceUri) {
            $.resourceUri = resourceUri;
            return this;
        }

        /**
         * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(String resourceUri) {
            return resourceUri(Output.of(resourceUri));
        }

        public BgpPeerArgs build() {
            if ($.myAsn == null) {
                throw new MissingRequiredPropertyException("BgpPeerArgs", "myAsn");
            }
            if ($.peerAddress == null) {
                throw new MissingRequiredPropertyException("BgpPeerArgs", "peerAddress");
            }
            if ($.peerAsn == null) {
                throw new MissingRequiredPropertyException("BgpPeerArgs", "peerAsn");
            }
            if ($.resourceUri == null) {
                throw new MissingRequiredPropertyException("BgpPeerArgs", "resourceUri");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy