com.pulumi.azure.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 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.azure.network.outputs.GetVpnGatewayBgpSetting;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@CustomType
public final class GetVpnGatewayResult {
/**
* @return A `bgp_settings` block as defined below.
*
*/
private List bgpSettings;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return The Azure location where the VPN Gateway exists.
*
*/
private String location;
private String name;
private String resourceGroupName;
/**
* @return The Scale Unit of this VPN Gateway.
*
*/
private Integer scaleUnit;
/**
* @return A mapping of tags assigned to the VPN Gateway.
*
*/
private Map tags;
/**
* @return The ID of the Virtual Hub within which this VPN Gateway has been created.
*
*/
private String virtualHubId;
private GetVpnGatewayResult() {}
/**
* @return A `bgp_settings` block as defined below.
*
*/
public List bgpSettings() {
return this.bgpSettings;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The Azure location where the VPN Gateway exists.
*
*/
public String location() {
return this.location;
}
public String name() {
return this.name;
}
public String resourceGroupName() {
return this.resourceGroupName;
}
/**
* @return The Scale Unit of this VPN Gateway.
*
*/
public Integer scaleUnit() {
return this.scaleUnit;
}
/**
* @return A mapping of tags assigned to the VPN Gateway.
*
*/
public Map tags() {
return this.tags;
}
/**
* @return The ID of the Virtual Hub within which this VPN Gateway has been created.
*
*/
public String virtualHubId() {
return this.virtualHubId;
}
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 List bgpSettings;
private String id;
private String location;
private String name;
private String resourceGroupName;
private Integer scaleUnit;
private Map tags;
private String virtualHubId;
public Builder() {}
public Builder(GetVpnGatewayResult defaults) {
Objects.requireNonNull(defaults);
this.bgpSettings = defaults.bgpSettings;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.resourceGroupName = defaults.resourceGroupName;
this.scaleUnit = defaults.scaleUnit;
this.tags = defaults.tags;
this.virtualHubId = defaults.virtualHubId;
}
@CustomType.Setter
public Builder bgpSettings(List bgpSettings) {
if (bgpSettings == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "bgpSettings");
}
this.bgpSettings = bgpSettings;
return this;
}
public Builder bgpSettings(GetVpnGatewayBgpSetting... bgpSettings) {
return bgpSettings(List.of(bgpSettings));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "id");
}
this.id = id;
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 resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder scaleUnit(Integer scaleUnit) {
if (scaleUnit == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "scaleUnit");
}
this.scaleUnit = scaleUnit;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder virtualHubId(String virtualHubId) {
if (virtualHubId == null) {
throw new MissingRequiredPropertyException("GetVpnGatewayResult", "virtualHubId");
}
this.virtualHubId = virtualHubId;
return this;
}
public GetVpnGatewayResult build() {
final var _resultValue = new GetVpnGatewayResult();
_resultValue.bgpSettings = bgpSettings;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.resourceGroupName = resourceGroupName;
_resultValue.scaleUnit = scaleUnit;
_resultValue.tags = tags;
_resultValue.virtualHubId = virtualHubId;
return _resultValue;
}
}
}