
com.pulumi.azurenative.network.outputs.GetVpnGatewayResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.BgpSettingsResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.azurenative.network.outputs.VpnConnectionResponse;
import com.pulumi.azurenative.network.outputs.VpnGatewayIpConfigurationResponse;
import com.pulumi.azurenative.network.outputs.VpnGatewayNatRuleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetVpnGatewayResult {
/**
* @return Local network gateway's BGP speaker settings.
*
*/
private @Nullable BgpSettingsResponse bgpSettings;
/**
* @return List of all vpn connections to the gateway.
*
*/
private @Nullable List connections;
/**
* @return Enable BGP routes translation for NAT on this VpnGateway.
*
*/
private @Nullable Boolean enableBgpRouteTranslationForNat;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return List of all IPs configured on the gateway.
*
*/
private List ipConfigurations;
/**
* @return Enable Routing Preference property for the Public IP Interface of the VpnGateway.
*
*/
private @Nullable Boolean isRoutingPreferenceInternet;
/**
* @return Resource location.
*
*/
private String location;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return List of all the nat Rules associated with the gateway.
*
*/
private @Nullable List natRules;
/**
* @return The provisioning state of the VPN gateway resource.
*
*/
private String provisioningState;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Resource type.
*
*/
private String type;
/**
* @return The VirtualHub to which the gateway belongs.
*
*/
private @Nullable SubResourceResponse virtualHub;
/**
* @return The scale unit for this vpn gateway.
*
*/
private @Nullable Integer vpnGatewayScaleUnit;
private GetVpnGatewayResult() {}
/**
* @return Local network gateway's BGP speaker settings.
*
*/
public Optional bgpSettings() {
return Optional.ofNullable(this.bgpSettings);
}
/**
* @return List of all vpn connections to the gateway.
*
*/
public List connections() {
return this.connections == null ? List.of() : this.connections;
}
/**
* @return Enable BGP routes translation for NAT on this VpnGateway.
*
*/
public Optional enableBgpRouteTranslationForNat() {
return Optional.ofNullable(this.enableBgpRouteTranslationForNat);
}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return List of all IPs configured on the gateway.
*
*/
public List ipConfigurations() {
return this.ipConfigurations;
}
/**
* @return Enable Routing Preference property for the Public IP Interface of the VpnGateway.
*
*/
public Optional isRoutingPreferenceInternet() {
return Optional.ofNullable(this.isRoutingPreferenceInternet);
}
/**
* @return Resource location.
*
*/
public String location() {
return this.location;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return List of all the nat Rules associated with the gateway.
*
*/
public List natRules() {
return this.natRules == null ? List.of() : this.natRules;
}
/**
* @return The provisioning state of the VPN gateway resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return The VirtualHub to which the gateway belongs.
*
*/
public Optional virtualHub() {
return Optional.ofNullable(this.virtualHub);
}
/**
* @return The scale unit for this vpn gateway.
*
*/
public Optional vpnGatewayScaleUnit() {
return Optional.ofNullable(this.vpnGatewayScaleUnit);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVpnGatewayResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable BgpSettingsResponse bgpSettings;
private @Nullable List connections;
private @Nullable Boolean enableBgpRouteTranslationForNat;
private String etag;
private @Nullable String id;
private List ipConfigurations;
private @Nullable Boolean isRoutingPreferenceInternet;
private String location;
private String name;
private @Nullable List natRules;
private String provisioningState;
private @Nullable Map tags;
private String type;
private @Nullable SubResourceResponse virtualHub;
private @Nullable Integer vpnGatewayScaleUnit;
public Builder() {}
public Builder(GetVpnGatewayResult defaults) {
Objects.requireNonNull(defaults);
this.bgpSettings = defaults.bgpSettings;
this.connections = defaults.connections;
this.enableBgpRouteTranslationForNat = defaults.enableBgpRouteTranslationForNat;
this.etag = defaults.etag;
this.id = defaults.id;
this.ipConfigurations = defaults.ipConfigurations;
this.isRoutingPreferenceInternet = defaults.isRoutingPreferenceInternet;
this.location = defaults.location;
this.name = defaults.name;
this.natRules = defaults.natRules;
this.provisioningState = defaults.provisioningState;
this.tags = defaults.tags;
this.type = defaults.type;
this.virtualHub = defaults.virtualHub;
this.vpnGatewayScaleUnit = defaults.vpnGatewayScaleUnit;
}
@CustomType.Setter
public Builder bgpSettings(@Nullable BgpSettingsResponse bgpSettings) {
this.bgpSettings = bgpSettings;
return this;
}
@CustomType.Setter
public Builder connections(@Nullable List connections) {
this.connections = connections;
return this;
}
public Builder connections(VpnConnectionResponse... connections) {
return connections(List.of(connections));
}
@CustomType.Setter
public Builder enableBgpRouteTranslationForNat(@Nullable Boolean enableBgpRouteTranslationForNat) {
this.enableBgpRouteTranslationForNat = enableBgpRouteTranslationForNat;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder ipConfigurations(List ipConfigurations) {
if (ipConfigurations == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "ipConfigurations");
}
this.ipConfigurations = ipConfigurations;
return this;
}
public Builder ipConfigurations(VpnGatewayIpConfigurationResponse... ipConfigurations) {
return ipConfigurations(List.of(ipConfigurations));
}
@CustomType.Setter
public Builder isRoutingPreferenceInternet(@Nullable Boolean isRoutingPreferenceInternet) {
this.isRoutingPreferenceInternet = isRoutingPreferenceInternet;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder natRules(@Nullable List natRules) {
this.natRules = natRules;
return this;
}
public Builder natRules(VpnGatewayNatRuleResponse... natRules) {
return natRules(List.of(natRules));
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder virtualHub(@Nullable SubResourceResponse virtualHub) {
this.virtualHub = virtualHub;
return this;
}
@CustomType.Setter
public Builder vpnGatewayScaleUnit(@Nullable Integer vpnGatewayScaleUnit) {
this.vpnGatewayScaleUnit = vpnGatewayScaleUnit;
return this;
}
public GetVpnGatewayResult build() {
final var _resultValue = new GetVpnGatewayResult();
_resultValue.bgpSettings = bgpSettings;
_resultValue.connections = connections;
_resultValue.enableBgpRouteTranslationForNat = enableBgpRouteTranslationForNat;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.ipConfigurations = ipConfigurations;
_resultValue.isRoutingPreferenceInternet = isRoutingPreferenceInternet;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.natRules = natRules;
_resultValue.provisioningState = provisioningState;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.virtualHub = virtualHub;
_resultValue.vpnGatewayScaleUnit = vpnGatewayScaleUnit;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy