com.pulumi.azure.network.outputs.LocalNetworkGatewayBgpSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LocalNetworkGatewayBgpSettings {
/**
* @return The BGP speaker's ASN.
*
*/
private Integer asn;
/**
* @return The BGP peering address and BGP identifier of this BGP speaker.
*
*/
private String bgpPeeringAddress;
/**
* @return The weight added to routes learned from this BGP speaker.
*
*/
private @Nullable Integer peerWeight;
private LocalNetworkGatewayBgpSettings() {}
/**
* @return The BGP speaker's ASN.
*
*/
public Integer asn() {
return this.asn;
}
/**
* @return The BGP peering address and BGP identifier of this BGP speaker.
*
*/
public String bgpPeeringAddress() {
return this.bgpPeeringAddress;
}
/**
* @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(LocalNetworkGatewayBgpSettings defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer asn;
private String bgpPeeringAddress;
private @Nullable Integer peerWeight;
public Builder() {}
public Builder(LocalNetworkGatewayBgpSettings defaults) {
Objects.requireNonNull(defaults);
this.asn = defaults.asn;
this.bgpPeeringAddress = defaults.bgpPeeringAddress;
this.peerWeight = defaults.peerWeight;
}
@CustomType.Setter
public Builder asn(Integer asn) {
if (asn == null) {
throw new MissingRequiredPropertyException("LocalNetworkGatewayBgpSettings", "asn");
}
this.asn = asn;
return this;
}
@CustomType.Setter
public Builder bgpPeeringAddress(String bgpPeeringAddress) {
if (bgpPeeringAddress == null) {
throw new MissingRequiredPropertyException("LocalNetworkGatewayBgpSettings", "bgpPeeringAddress");
}
this.bgpPeeringAddress = bgpPeeringAddress;
return this;
}
@CustomType.Setter
public Builder peerWeight(@Nullable Integer peerWeight) {
this.peerWeight = peerWeight;
return this;
}
public LocalNetworkGatewayBgpSettings build() {
final var _resultValue = new LocalNetworkGatewayBgpSettings();
_resultValue.asn = asn;
_resultValue.bgpPeeringAddress = bgpPeeringAddress;
_resultValue.peerWeight = peerWeight;
return _resultValue;
}
}
}