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

com.pulumi.azurenative.peering.PeerAsnArgs 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.peering;

import com.pulumi.azurenative.peering.inputs.ContactDetailArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PeerAsnArgs Empty = new PeerAsnArgs();

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

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

    /**
     * The peer ASN name.
     * 
     */
    @Import(name="peerAsnName")
    private @Nullable Output peerAsnName;

    /**
     * @return The peer ASN name.
     * 
     */
    public Optional> peerAsnName() {
        return Optional.ofNullable(this.peerAsnName);
    }

    /**
     * The contact details of the peer.
     * 
     */
    @Import(name="peerContactDetail")
    private @Nullable Output> peerContactDetail;

    /**
     * @return The contact details of the peer.
     * 
     */
    public Optional>> peerContactDetail() {
        return Optional.ofNullable(this.peerContactDetail);
    }

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

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

    private PeerAsnArgs() {}

    private PeerAsnArgs(PeerAsnArgs $) {
        this.peerAsn = $.peerAsn;
        this.peerAsnName = $.peerAsnName;
        this.peerContactDetail = $.peerContactDetail;
        this.peerName = $.peerName;
    }

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

    public static final class Builder {
        private PeerAsnArgs $;

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

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

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

        /**
         * @param peerAsn The Autonomous System Number (ASN) of the peer.
         * 
         * @return builder
         * 
         */
        public Builder peerAsn(Integer peerAsn) {
            return peerAsn(Output.of(peerAsn));
        }

        /**
         * @param peerAsnName The peer ASN name.
         * 
         * @return builder
         * 
         */
        public Builder peerAsnName(@Nullable Output peerAsnName) {
            $.peerAsnName = peerAsnName;
            return this;
        }

        /**
         * @param peerAsnName The peer ASN name.
         * 
         * @return builder
         * 
         */
        public Builder peerAsnName(String peerAsnName) {
            return peerAsnName(Output.of(peerAsnName));
        }

        /**
         * @param peerContactDetail The contact details of the peer.
         * 
         * @return builder
         * 
         */
        public Builder peerContactDetail(@Nullable Output> peerContactDetail) {
            $.peerContactDetail = peerContactDetail;
            return this;
        }

        /**
         * @param peerContactDetail The contact details of the peer.
         * 
         * @return builder
         * 
         */
        public Builder peerContactDetail(List peerContactDetail) {
            return peerContactDetail(Output.of(peerContactDetail));
        }

        /**
         * @param peerContactDetail The contact details of the peer.
         * 
         * @return builder
         * 
         */
        public Builder peerContactDetail(ContactDetailArgs... peerContactDetail) {
            return peerContactDetail(List.of(peerContactDetail));
        }

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

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

        public PeerAsnArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy