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

com.pulumi.azurenative.networkcloud.outputs.ServiceLoadBalancerBgpPeerResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.networkcloud.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ServiceLoadBalancerBgpPeerResponse {
    /**
     * @return The indicator of BFD enablement for this BgpPeer.
     * 
     */
    private @Nullable String bfdEnabled;
    /**
     * @return The indicator to enable multi-hop peering support.
     * 
     */
    private @Nullable String bgpMultiHop;
    /**
     * @return The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H.
     * 
     */
    private @Nullable String holdTime;
    /**
     * @return The requested BGP keepalive time value. This field uses ISO 8601 duration format, for example P1H.
     * 
     */
    private @Nullable String keepAliveTime;
    /**
     * @return The autonomous system number used for the local end of the BGP session.
     * 
     */
    private @Nullable Double myAsn;
    /**
     * @return The name used to identify this BGP peer for association with a BGP advertisement.
     * 
     */
    private String name;
    /**
     * @return The IPv4 or IPv6 address used to connect this BGP session.
     * 
     */
    private String peerAddress;
    /**
     * @return The autonomous system number expected from the remote end of the BGP session.
     * 
     */
    private Double peerAsn;
    /**
     * @return The port used to connect this BGP session.
     * 
     */
    private @Nullable Double peerPort;

    private ServiceLoadBalancerBgpPeerResponse() {}
    /**
     * @return The indicator of BFD enablement for this BgpPeer.
     * 
     */
    public Optional bfdEnabled() {
        return Optional.ofNullable(this.bfdEnabled);
    }
    /**
     * @return The indicator to enable multi-hop peering support.
     * 
     */
    public Optional bgpMultiHop() {
        return Optional.ofNullable(this.bgpMultiHop);
    }
    /**
     * @return The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H.
     * 
     */
    public Optional holdTime() {
        return Optional.ofNullable(this.holdTime);
    }
    /**
     * @return The requested BGP keepalive time value. This field uses ISO 8601 duration format, for example P1H.
     * 
     */
    public Optional keepAliveTime() {
        return Optional.ofNullable(this.keepAliveTime);
    }
    /**
     * @return The autonomous system number used for the local end of the BGP session.
     * 
     */
    public Optional myAsn() {
        return Optional.ofNullable(this.myAsn);
    }
    /**
     * @return The name used to identify this BGP peer for association with a BGP advertisement.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The IPv4 or IPv6 address used to connect this BGP session.
     * 
     */
    public String peerAddress() {
        return this.peerAddress;
    }
    /**
     * @return The autonomous system number expected from the remote end of the BGP session.
     * 
     */
    public Double peerAsn() {
        return this.peerAsn;
    }
    /**
     * @return The port used to connect this BGP session.
     * 
     */
    public Optional peerPort() {
        return Optional.ofNullable(this.peerPort);
    }

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

    public static Builder builder(ServiceLoadBalancerBgpPeerResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String bfdEnabled;
        private @Nullable String bgpMultiHop;
        private @Nullable String holdTime;
        private @Nullable String keepAliveTime;
        private @Nullable Double myAsn;
        private String name;
        private String peerAddress;
        private Double peerAsn;
        private @Nullable Double peerPort;
        public Builder() {}
        public Builder(ServiceLoadBalancerBgpPeerResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bfdEnabled = defaults.bfdEnabled;
    	      this.bgpMultiHop = defaults.bgpMultiHop;
    	      this.holdTime = defaults.holdTime;
    	      this.keepAliveTime = defaults.keepAliveTime;
    	      this.myAsn = defaults.myAsn;
    	      this.name = defaults.name;
    	      this.peerAddress = defaults.peerAddress;
    	      this.peerAsn = defaults.peerAsn;
    	      this.peerPort = defaults.peerPort;
        }

        @CustomType.Setter
        public Builder bfdEnabled(@Nullable String bfdEnabled) {

            this.bfdEnabled = bfdEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder bgpMultiHop(@Nullable String bgpMultiHop) {

            this.bgpMultiHop = bgpMultiHop;
            return this;
        }
        @CustomType.Setter
        public Builder holdTime(@Nullable String holdTime) {

            this.holdTime = holdTime;
            return this;
        }
        @CustomType.Setter
        public Builder keepAliveTime(@Nullable String keepAliveTime) {

            this.keepAliveTime = keepAliveTime;
            return this;
        }
        @CustomType.Setter
        public Builder myAsn(@Nullable Double myAsn) {

            this.myAsn = myAsn;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ServiceLoadBalancerBgpPeerResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder peerAddress(String peerAddress) {
            if (peerAddress == null) {
              throw new MissingRequiredPropertyException("ServiceLoadBalancerBgpPeerResponse", "peerAddress");
            }
            this.peerAddress = peerAddress;
            return this;
        }
        @CustomType.Setter
        public Builder peerAsn(Double peerAsn) {
            if (peerAsn == null) {
              throw new MissingRequiredPropertyException("ServiceLoadBalancerBgpPeerResponse", "peerAsn");
            }
            this.peerAsn = peerAsn;
            return this;
        }
        @CustomType.Setter
        public Builder peerPort(@Nullable Double peerPort) {

            this.peerPort = peerPort;
            return this;
        }
        public ServiceLoadBalancerBgpPeerResponse build() {
            final var _resultValue = new ServiceLoadBalancerBgpPeerResponse();
            _resultValue.bfdEnabled = bfdEnabled;
            _resultValue.bgpMultiHop = bgpMultiHop;
            _resultValue.holdTime = holdTime;
            _resultValue.keepAliveTime = keepAliveTime;
            _resultValue.myAsn = myAsn;
            _resultValue.name = name;
            _resultValue.peerAddress = peerAddress;
            _resultValue.peerAsn = peerAsn;
            _resultValue.peerPort = peerPort;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy