com.pulumi.azure.network.outputs.GetVpnGatewayBgpSettingInstance1BgpPeeringAddress Maven / Gradle / Ivy
// *** 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.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetVpnGatewayBgpSettingInstance1BgpPeeringAddress {
/**
* @return A list of custom BGP peering addresses to assigned to this instance.
*
*/
private List customIps;
/**
* @return The list of default BGP peering addresses which belong to the pre-defined VPN Gateway IP configuration.
*
*/
private List defaultIps;
/**
* @return The pre-defined id of VPN Gateway IP Configuration.
*
*/
private String ipConfigurationId;
/**
* @return The list of tunnel public IP addresses which belong to the pre-defined VPN Gateway IP configuration.
*
*/
private List tunnelIps;
private GetVpnGatewayBgpSettingInstance1BgpPeeringAddress() {}
/**
* @return A list of custom BGP peering addresses to assigned to this instance.
*
*/
public List customIps() {
return this.customIps;
}
/**
* @return The list of default BGP peering addresses which belong to the pre-defined VPN Gateway IP configuration.
*
*/
public List defaultIps() {
return this.defaultIps;
}
/**
* @return The pre-defined id of VPN Gateway IP Configuration.
*
*/
public String ipConfigurationId() {
return this.ipConfigurationId;
}
/**
* @return The list of tunnel public IP addresses which belong to the pre-defined VPN Gateway IP configuration.
*
*/
public List tunnelIps() {
return this.tunnelIps;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVpnGatewayBgpSettingInstance1BgpPeeringAddress defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List customIps;
private List defaultIps;
private String ipConfigurationId;
private List tunnelIps;
public Builder() {}
public Builder(GetVpnGatewayBgpSettingInstance1BgpPeeringAddress defaults) {
Objects.requireNonNull(defaults);
this.customIps = defaults.customIps;
this.defaultIps = defaults.defaultIps;
this.ipConfigurationId = defaults.ipConfigurationId;
this.tunnelIps = defaults.tunnelIps;
}
@CustomType.Setter
public Builder customIps(List customIps) {
if (customIps == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayBgpSettingInstance1BgpPeeringAddress", "customIps");
}
this.customIps = customIps;
return this;
}
public Builder customIps(String... customIps) {
return customIps(List.of(customIps));
}
@CustomType.Setter
public Builder defaultIps(List defaultIps) {
if (defaultIps == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayBgpSettingInstance1BgpPeeringAddress", "defaultIps");
}
this.defaultIps = defaultIps;
return this;
}
public Builder defaultIps(String... defaultIps) {
return defaultIps(List.of(defaultIps));
}
@CustomType.Setter
public Builder ipConfigurationId(String ipConfigurationId) {
if (ipConfigurationId == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayBgpSettingInstance1BgpPeeringAddress", "ipConfigurationId");
}
this.ipConfigurationId = ipConfigurationId;
return this;
}
@CustomType.Setter
public Builder tunnelIps(List tunnelIps) {
if (tunnelIps == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayBgpSettingInstance1BgpPeeringAddress", "tunnelIps");
}
this.tunnelIps = tunnelIps;
return this;
}
public Builder tunnelIps(String... tunnelIps) {
return tunnelIps(List.of(tunnelIps));
}
public GetVpnGatewayBgpSettingInstance1BgpPeeringAddress build() {
final var _resultValue = new GetVpnGatewayBgpSettingInstance1BgpPeeringAddress();
_resultValue.customIps = customIps;
_resultValue.defaultIps = defaultIps;
_resultValue.ipConfigurationId = ipConfigurationId;
_resultValue.tunnelIps = tunnelIps;
return _resultValue;
}
}
}