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

com.pulumi.azure.network.outputs.GetVirtualNetworkGatewayBgpSetting Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetVirtualNetworkGatewayBgpSetting {
    /**
     * @return The Autonomous System Number (ASN) to use as part of the BGP.
     * 
     */
    private Integer asn;
    /**
     * @return The weight added to routes which have been learned
     * through BGP peering.
     * 
     */
    private Integer peerWeight;
    /**
     * @return The BGP peer IP address of the virtual network
     * gateway. This address is needed to configure the created gateway as a BGP Peer
     * on the on-premises VPN devices.
     * 
     */
    private String peeringAddress;

    private GetVirtualNetworkGatewayBgpSetting() {}
    /**
     * @return The Autonomous System Number (ASN) to use as part of the BGP.
     * 
     */
    public Integer asn() {
        return this.asn;
    }
    /**
     * @return The weight added to routes which have been learned
     * through BGP peering.
     * 
     */
    public Integer peerWeight() {
        return this.peerWeight;
    }
    /**
     * @return The BGP peer IP address of the virtual network
     * gateway. This address is needed to configure the created gateway as a BGP Peer
     * on the on-premises VPN devices.
     * 
     */
    public String peeringAddress() {
        return this.peeringAddress;
    }

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

    public static Builder builder(GetVirtualNetworkGatewayBgpSetting defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer asn;
        private Integer peerWeight;
        private String peeringAddress;
        public Builder() {}
        public Builder(GetVirtualNetworkGatewayBgpSetting defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.asn = defaults.asn;
    	      this.peerWeight = defaults.peerWeight;
    	      this.peeringAddress = defaults.peeringAddress;
        }

        @CustomType.Setter
        public Builder asn(Integer asn) {
            if (asn == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkGatewayBgpSetting", "asn");
            }
            this.asn = asn;
            return this;
        }
        @CustomType.Setter
        public Builder peerWeight(Integer peerWeight) {
            if (peerWeight == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkGatewayBgpSetting", "peerWeight");
            }
            this.peerWeight = peerWeight;
            return this;
        }
        @CustomType.Setter
        public Builder peeringAddress(String peeringAddress) {
            if (peeringAddress == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkGatewayBgpSetting", "peeringAddress");
            }
            this.peeringAddress = peeringAddress;
            return this;
        }
        public GetVirtualNetworkGatewayBgpSetting build() {
            final var _resultValue = new GetVirtualNetworkGatewayBgpSetting();
            _resultValue.asn = asn;
            _resultValue.peerWeight = peerWeight;
            _resultValue.peeringAddress = peeringAddress;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy