com.pulumi.alicloud.vpn.outputs.GetConnectionsConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.vpn.outputs;
import com.pulumi.alicloud.vpn.outputs.GetConnectionsConnectionIkeConfig;
import com.pulumi.alicloud.vpn.outputs.GetConnectionsConnectionIpsecConfig;
import com.pulumi.alicloud.vpn.outputs.GetConnectionsConnectionTunnelOptionsSpecification;
import com.pulumi.alicloud.vpn.outputs.GetConnectionsConnectionVcoHealthCheck;
import com.pulumi.alicloud.vpn.outputs.GetConnectionsConnectionVpnBgpConfig;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetConnectionsConnection {
private String createTime;
/**
* @return Use the VPN customer gateway ID as the search key.
*
*/
private String customerGatewayId;
private Boolean effectImmediately;
/**
* @return Wether enable Dpd detection.
*
*/
private Boolean enableDpd;
/**
* @return enable nat traversal.
*
*/
private Boolean enableNatTraversal;
/**
* @return Enable tunnel bgp.
*
*/
private Boolean enableTunnelsBgp;
/**
* @return ID of the VPN connection.
*
*/
private String id;
/**
* @return The ike_config mapping supports the following:
*
*/
private @Nullable List ikeConfigs;
/**
* @return The ipsec_config mapping supports the following:
*
*/
private @Nullable List ipsecConfigs;
/**
* @return The local subnet of the VPN connection.
*
*/
private String localSubnet;
/**
* @return The name of the VPN connection.
*
*/
private String name;
/**
* @return The remote subnet of the VPN connection.
*
*/
private String remoteSubnet;
/**
* @return The negotiation status of the BGP routing protocol. Valid values: `success`, `false`.
*
*/
private String status;
/**
* @return The tunnel_options_specification supports the following:
*
*/
private List tunnelOptionsSpecifications;
private @Nullable List vcoHealthChecks;
/**
* @return The vpn_bgp_config mapping supports the following:
*
*/
private @Nullable List vpnBgpConfigs;
/**
* @return Use the VPN gateway ID as the search key.
*
*/
private String vpnGatewayId;
private GetConnectionsConnection() {}
public String createTime() {
return this.createTime;
}
/**
* @return Use the VPN customer gateway ID as the search key.
*
*/
public String customerGatewayId() {
return this.customerGatewayId;
}
public Boolean effectImmediately() {
return this.effectImmediately;
}
/**
* @return Wether enable Dpd detection.
*
*/
public Boolean enableDpd() {
return this.enableDpd;
}
/**
* @return enable nat traversal.
*
*/
public Boolean enableNatTraversal() {
return this.enableNatTraversal;
}
/**
* @return Enable tunnel bgp.
*
*/
public Boolean enableTunnelsBgp() {
return this.enableTunnelsBgp;
}
/**
* @return ID of the VPN connection.
*
*/
public String id() {
return this.id;
}
/**
* @return The ike_config mapping supports the following:
*
*/
public List ikeConfigs() {
return this.ikeConfigs == null ? List.of() : this.ikeConfigs;
}
/**
* @return The ipsec_config mapping supports the following:
*
*/
public List ipsecConfigs() {
return this.ipsecConfigs == null ? List.of() : this.ipsecConfigs;
}
/**
* @return The local subnet of the VPN connection.
*
*/
public String localSubnet() {
return this.localSubnet;
}
/**
* @return The name of the VPN connection.
*
*/
public String name() {
return this.name;
}
/**
* @return The remote subnet of the VPN connection.
*
*/
public String remoteSubnet() {
return this.remoteSubnet;
}
/**
* @return The negotiation status of the BGP routing protocol. Valid values: `success`, `false`.
*
*/
public String status() {
return this.status;
}
/**
* @return The tunnel_options_specification supports the following:
*
*/
public List tunnelOptionsSpecifications() {
return this.tunnelOptionsSpecifications;
}
public List vcoHealthChecks() {
return this.vcoHealthChecks == null ? List.of() : this.vcoHealthChecks;
}
/**
* @return The vpn_bgp_config mapping supports the following:
*
*/
public List vpnBgpConfigs() {
return this.vpnBgpConfigs == null ? List.of() : this.vpnBgpConfigs;
}
/**
* @return Use the VPN gateway ID as the search key.
*
*/
public String vpnGatewayId() {
return this.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetConnectionsConnection defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String createTime;
private String customerGatewayId;
private Boolean effectImmediately;
private Boolean enableDpd;
private Boolean enableNatTraversal;
private Boolean enableTunnelsBgp;
private String id;
private @Nullable List ikeConfigs;
private @Nullable List ipsecConfigs;
private String localSubnet;
private String name;
private String remoteSubnet;
private String status;
private List tunnelOptionsSpecifications;
private @Nullable List vcoHealthChecks;
private @Nullable List vpnBgpConfigs;
private String vpnGatewayId;
public Builder() {}
public Builder(GetConnectionsConnection defaults) {
Objects.requireNonNull(defaults);
this.createTime = defaults.createTime;
this.customerGatewayId = defaults.customerGatewayId;
this.effectImmediately = defaults.effectImmediately;
this.enableDpd = defaults.enableDpd;
this.enableNatTraversal = defaults.enableNatTraversal;
this.enableTunnelsBgp = defaults.enableTunnelsBgp;
this.id = defaults.id;
this.ikeConfigs = defaults.ikeConfigs;
this.ipsecConfigs = defaults.ipsecConfigs;
this.localSubnet = defaults.localSubnet;
this.name = defaults.name;
this.remoteSubnet = defaults.remoteSubnet;
this.status = defaults.status;
this.tunnelOptionsSpecifications = defaults.tunnelOptionsSpecifications;
this.vcoHealthChecks = defaults.vcoHealthChecks;
this.vpnBgpConfigs = defaults.vpnBgpConfigs;
this.vpnGatewayId = defaults.vpnGatewayId;
}
@CustomType.Setter
public Builder createTime(String createTime) {
if (createTime == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "createTime");
}
this.createTime = createTime;
return this;
}
@CustomType.Setter
public Builder customerGatewayId(String customerGatewayId) {
if (customerGatewayId == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "customerGatewayId");
}
this.customerGatewayId = customerGatewayId;
return this;
}
@CustomType.Setter
public Builder effectImmediately(Boolean effectImmediately) {
if (effectImmediately == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "effectImmediately");
}
this.effectImmediately = effectImmediately;
return this;
}
@CustomType.Setter
public Builder enableDpd(Boolean enableDpd) {
if (enableDpd == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "enableDpd");
}
this.enableDpd = enableDpd;
return this;
}
@CustomType.Setter
public Builder enableNatTraversal(Boolean enableNatTraversal) {
if (enableNatTraversal == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "enableNatTraversal");
}
this.enableNatTraversal = enableNatTraversal;
return this;
}
@CustomType.Setter
public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) {
if (enableTunnelsBgp == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "enableTunnelsBgp");
}
this.enableTunnelsBgp = enableTunnelsBgp;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ikeConfigs(@Nullable List ikeConfigs) {
this.ikeConfigs = ikeConfigs;
return this;
}
public Builder ikeConfigs(GetConnectionsConnectionIkeConfig... ikeConfigs) {
return ikeConfigs(List.of(ikeConfigs));
}
@CustomType.Setter
public Builder ipsecConfigs(@Nullable List ipsecConfigs) {
this.ipsecConfigs = ipsecConfigs;
return this;
}
public Builder ipsecConfigs(GetConnectionsConnectionIpsecConfig... ipsecConfigs) {
return ipsecConfigs(List.of(ipsecConfigs));
}
@CustomType.Setter
public Builder localSubnet(String localSubnet) {
if (localSubnet == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "localSubnet");
}
this.localSubnet = localSubnet;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder remoteSubnet(String remoteSubnet) {
if (remoteSubnet == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "remoteSubnet");
}
this.remoteSubnet = remoteSubnet;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder tunnelOptionsSpecifications(List tunnelOptionsSpecifications) {
if (tunnelOptionsSpecifications == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "tunnelOptionsSpecifications");
}
this.tunnelOptionsSpecifications = tunnelOptionsSpecifications;
return this;
}
public Builder tunnelOptionsSpecifications(GetConnectionsConnectionTunnelOptionsSpecification... tunnelOptionsSpecifications) {
return tunnelOptionsSpecifications(List.of(tunnelOptionsSpecifications));
}
@CustomType.Setter
public Builder vcoHealthChecks(@Nullable List vcoHealthChecks) {
this.vcoHealthChecks = vcoHealthChecks;
return this;
}
public Builder vcoHealthChecks(GetConnectionsConnectionVcoHealthCheck... vcoHealthChecks) {
return vcoHealthChecks(List.of(vcoHealthChecks));
}
@CustomType.Setter
public Builder vpnBgpConfigs(@Nullable List vpnBgpConfigs) {
this.vpnBgpConfigs = vpnBgpConfigs;
return this;
}
public Builder vpnBgpConfigs(GetConnectionsConnectionVpnBgpConfig... vpnBgpConfigs) {
return vpnBgpConfigs(List.of(vpnBgpConfigs));
}
@CustomType.Setter
public Builder vpnGatewayId(String vpnGatewayId) {
if (vpnGatewayId == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnection", "vpnGatewayId");
}
this.vpnGatewayId = vpnGatewayId;
return this;
}
public GetConnectionsConnection build() {
final var _resultValue = new GetConnectionsConnection();
_resultValue.createTime = createTime;
_resultValue.customerGatewayId = customerGatewayId;
_resultValue.effectImmediately = effectImmediately;
_resultValue.enableDpd = enableDpd;
_resultValue.enableNatTraversal = enableNatTraversal;
_resultValue.enableTunnelsBgp = enableTunnelsBgp;
_resultValue.id = id;
_resultValue.ikeConfigs = ikeConfigs;
_resultValue.ipsecConfigs = ipsecConfigs;
_resultValue.localSubnet = localSubnet;
_resultValue.name = name;
_resultValue.remoteSubnet = remoteSubnet;
_resultValue.status = status;
_resultValue.tunnelOptionsSpecifications = tunnelOptionsSpecifications;
_resultValue.vcoHealthChecks = vcoHealthChecks;
_resultValue.vpnBgpConfigs = vpnBgpConfigs;
_resultValue.vpnGatewayId = vpnGatewayId;
return _resultValue;
}
}
}