com.pulumi.alicloud.vpn.outputs.GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig {
/**
* @return IPsec Auth algorithm.
*
*/
private String ipsecAuthAlg;
/**
* @return IPsec Encript algorithm.
*
*/
private String ipsecEncAlg;
/**
* @return IPsec lifetime.
*
*/
private Integer ipsecLifetime;
/**
* @return DH Group.
*
*/
private String ipsecPfs;
private GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig() {}
/**
* @return IPsec Auth algorithm.
*
*/
public String ipsecAuthAlg() {
return this.ipsecAuthAlg;
}
/**
* @return IPsec Encript algorithm.
*
*/
public String ipsecEncAlg() {
return this.ipsecEncAlg;
}
/**
* @return IPsec lifetime.
*
*/
public Integer ipsecLifetime() {
return this.ipsecLifetime;
}
/**
* @return DH Group.
*
*/
public String ipsecPfs() {
return this.ipsecPfs;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String ipsecAuthAlg;
private String ipsecEncAlg;
private Integer ipsecLifetime;
private String ipsecPfs;
public Builder() {}
public Builder(GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig defaults) {
Objects.requireNonNull(defaults);
this.ipsecAuthAlg = defaults.ipsecAuthAlg;
this.ipsecEncAlg = defaults.ipsecEncAlg;
this.ipsecLifetime = defaults.ipsecLifetime;
this.ipsecPfs = defaults.ipsecPfs;
}
@CustomType.Setter
public Builder ipsecAuthAlg(String ipsecAuthAlg) {
if (ipsecAuthAlg == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig", "ipsecAuthAlg");
}
this.ipsecAuthAlg = ipsecAuthAlg;
return this;
}
@CustomType.Setter
public Builder ipsecEncAlg(String ipsecEncAlg) {
if (ipsecEncAlg == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig", "ipsecEncAlg");
}
this.ipsecEncAlg = ipsecEncAlg;
return this;
}
@CustomType.Setter
public Builder ipsecLifetime(Integer ipsecLifetime) {
if (ipsecLifetime == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig", "ipsecLifetime");
}
this.ipsecLifetime = ipsecLifetime;
return this;
}
@CustomType.Setter
public Builder ipsecPfs(String ipsecPfs) {
if (ipsecPfs == null) {
throw new MissingRequiredPropertyException("GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig", "ipsecPfs");
}
this.ipsecPfs = ipsecPfs;
return this;
}
public GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig build() {
final var _resultValue = new GetConnectionsConnectionTunnelOptionsSpecificationTunnelIpsecConfig();
_resultValue.ipsecAuthAlg = ipsecAuthAlg;
_resultValue.ipsecEncAlg = ipsecEncAlg;
_resultValue.ipsecLifetime = ipsecLifetime;
_resultValue.ipsecPfs = ipsecPfs;
return _resultValue;
}
}
}