com.pulumi.azure.network.outputs.GetLocalNetworkGatewayBgpSetting 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;
@CustomType
public final class GetLocalNetworkGatewayBgpSetting {
/**
* @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 Integer peerWeight;
private GetLocalNetworkGatewayBgpSetting() {}
/**
* @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 Integer peerWeight() {
return this.peerWeight;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLocalNetworkGatewayBgpSetting defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer asn;
private String bgpPeeringAddress;
private Integer peerWeight;
public Builder() {}
public Builder(GetLocalNetworkGatewayBgpSetting 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("GetLocalNetworkGatewayBgpSetting", "asn");
}
this.asn = asn;
return this;
}
@CustomType.Setter
public Builder bgpPeeringAddress(String bgpPeeringAddress) {
if (bgpPeeringAddress == null) {
throw new MissingRequiredPropertyException("GetLocalNetworkGatewayBgpSetting", "bgpPeeringAddress");
}
this.bgpPeeringAddress = bgpPeeringAddress;
return this;
}
@CustomType.Setter
public Builder peerWeight(Integer peerWeight) {
if (peerWeight == null) {
throw new MissingRequiredPropertyException("GetLocalNetworkGatewayBgpSetting", "peerWeight");
}
this.peerWeight = peerWeight;
return this;
}
public GetLocalNetworkGatewayBgpSetting build() {
final var _resultValue = new GetLocalNetworkGatewayBgpSetting();
_resultValue.asn = asn;
_resultValue.bgpPeeringAddress = bgpPeeringAddress;
_resultValue.peerWeight = peerWeight;
return _resultValue;
}
}
}