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

com.pulumi.azurenative.network.outputs.BgpSettingsResponse 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.network.outputs;

import com.pulumi.azurenative.network.outputs.IPConfigurationBgpPeeringAddressResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class BgpSettingsResponse {
    /**
     * @return The BGP speaker's ASN.
     * 
     */
    private @Nullable Double asn;
    /**
     * @return The BGP peering address and BGP identifier of this BGP speaker.
     * 
     */
    private @Nullable String bgpPeeringAddress;
    /**
     * @return BGP peering address with IP configuration ID for virtual network gateway.
     * 
     */
    private @Nullable List bgpPeeringAddresses;
    /**
     * @return The weight added to routes learned from this BGP speaker.
     * 
     */
    private @Nullable Integer peerWeight;

    private BgpSettingsResponse() {}
    /**
     * @return The BGP speaker's ASN.
     * 
     */
    public Optional asn() {
        return Optional.ofNullable(this.asn);
    }
    /**
     * @return The BGP peering address and BGP identifier of this BGP speaker.
     * 
     */
    public Optional bgpPeeringAddress() {
        return Optional.ofNullable(this.bgpPeeringAddress);
    }
    /**
     * @return BGP peering address with IP configuration ID for virtual network gateway.
     * 
     */
    public List bgpPeeringAddresses() {
        return this.bgpPeeringAddresses == null ? List.of() : this.bgpPeeringAddresses;
    }
    /**
     * @return The weight added to routes learned from this BGP speaker.
     * 
     */
    public Optional peerWeight() {
        return Optional.ofNullable(this.peerWeight);
    }

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

    public static Builder builder(BgpSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Double asn;
        private @Nullable String bgpPeeringAddress;
        private @Nullable List bgpPeeringAddresses;
        private @Nullable Integer peerWeight;
        public Builder() {}
        public Builder(BgpSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.asn = defaults.asn;
    	      this.bgpPeeringAddress = defaults.bgpPeeringAddress;
    	      this.bgpPeeringAddresses = defaults.bgpPeeringAddresses;
    	      this.peerWeight = defaults.peerWeight;
        }

        @CustomType.Setter
        public Builder asn(@Nullable Double asn) {

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

            this.bgpPeeringAddress = bgpPeeringAddress;
            return this;
        }
        @CustomType.Setter
        public Builder bgpPeeringAddresses(@Nullable List bgpPeeringAddresses) {

            this.bgpPeeringAddresses = bgpPeeringAddresses;
            return this;
        }
        public Builder bgpPeeringAddresses(IPConfigurationBgpPeeringAddressResponse... bgpPeeringAddresses) {
            return bgpPeeringAddresses(List.of(bgpPeeringAddresses));
        }
        @CustomType.Setter
        public Builder peerWeight(@Nullable Integer peerWeight) {

            this.peerWeight = peerWeight;
            return this;
        }
        public BgpSettingsResponse build() {
            final var _resultValue = new BgpSettingsResponse();
            _resultValue.asn = asn;
            _resultValue.bgpPeeringAddress = bgpPeeringAddress;
            _resultValue.bgpPeeringAddresses = bgpPeeringAddresses;
            _resultValue.peerWeight = peerWeight;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy