Package com.ibm.cloud.is.vpc.v1.model
Class VPNServerPatch.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.VPNServerPatch.Builder
-
- Enclosing class:
- VPNServerPatch
public static class VPNServerPatch.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VPNServerPatch.Builder
addClientAuthentication(VPNServerAuthenticationPrototype clientAuthentication)
Adds a new element to clientAuthentication.VPNServerPatch.Builder
addClientDnsServerIps(IP clientDnsServerIps)
Adds a new element to clientDnsServerIps.VPNServerPatch.Builder
addSubnets(SubnetIdentity subnets)
Adds a new element to subnets.VPNServerPatch
build()
Builds a VPNServerPatch.VPNServerPatch.Builder
certificate(CertificateInstanceIdentity certificate)
Set the certificate.VPNServerPatch.Builder
clientAuthentication(List<VPNServerAuthenticationPrototype> clientAuthentication)
Set the clientAuthentication.VPNServerPatch.Builder
clientDnsServerIps(List<IP> clientDnsServerIps)
Set the clientDnsServerIps.VPNServerPatch.Builder
clientIdleTimeout(long clientIdleTimeout)
Set the clientIdleTimeout.VPNServerPatch.Builder
clientIpPool(String clientIpPool)
Set the clientIpPool.VPNServerPatch.Builder
enableSplitTunneling(Boolean enableSplitTunneling)
Set the enableSplitTunneling.VPNServerPatch.Builder
name(String name)
Set the name.VPNServerPatch.Builder
port(long port)
Set the port.VPNServerPatch.Builder
protocol(String protocol)
Set the protocol.VPNServerPatch.Builder
subnets(List<SubnetIdentity> subnets)
Set the subnets.
-
-
-
Method Detail
-
build
public VPNServerPatch build()
Builds a VPNServerPatch.- Returns:
- the new VPNServerPatch instance
-
addClientAuthentication
public VPNServerPatch.Builder addClientAuthentication(VPNServerAuthenticationPrototype clientAuthentication)
Adds a new element to clientAuthentication.- Parameters:
clientAuthentication
- the new element to be added- Returns:
- the VPNServerPatch builder
-
addClientDnsServerIps
public VPNServerPatch.Builder addClientDnsServerIps(IP clientDnsServerIps)
Adds a new element to clientDnsServerIps.- Parameters:
clientDnsServerIps
- the new element to be added- Returns:
- the VPNServerPatch builder
-
addSubnets
public VPNServerPatch.Builder addSubnets(SubnetIdentity subnets)
Adds a new element to subnets.- Parameters:
subnets
- the new element to be added- Returns:
- the VPNServerPatch builder
-
certificate
public VPNServerPatch.Builder certificate(CertificateInstanceIdentity certificate)
Set the certificate.- Parameters:
certificate
- the certificate- Returns:
- the VPNServerPatch builder
-
clientAuthentication
public VPNServerPatch.Builder clientAuthentication(List<VPNServerAuthenticationPrototype> clientAuthentication)
Set the clientAuthentication. Existing clientAuthentication will be replaced.- Parameters:
clientAuthentication
- the clientAuthentication- Returns:
- the VPNServerPatch builder
-
clientDnsServerIps
public VPNServerPatch.Builder clientDnsServerIps(List<IP> clientDnsServerIps)
Set the clientDnsServerIps. Existing clientDnsServerIps will be replaced.- Parameters:
clientDnsServerIps
- the clientDnsServerIps- Returns:
- the VPNServerPatch builder
-
clientIdleTimeout
public VPNServerPatch.Builder clientIdleTimeout(long clientIdleTimeout)
Set the clientIdleTimeout.- Parameters:
clientIdleTimeout
- the clientIdleTimeout- Returns:
- the VPNServerPatch builder
-
clientIpPool
public VPNServerPatch.Builder clientIpPool(String clientIpPool)
Set the clientIpPool.- Parameters:
clientIpPool
- the clientIpPool- Returns:
- the VPNServerPatch builder
-
enableSplitTunneling
public VPNServerPatch.Builder enableSplitTunneling(Boolean enableSplitTunneling)
Set the enableSplitTunneling.- Parameters:
enableSplitTunneling
- the enableSplitTunneling- Returns:
- the VPNServerPatch builder
-
name
public VPNServerPatch.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the VPNServerPatch builder
-
port
public VPNServerPatch.Builder port(long port)
Set the port.- Parameters:
port
- the port- Returns:
- the VPNServerPatch builder
-
protocol
public VPNServerPatch.Builder protocol(String protocol)
Set the protocol.- Parameters:
protocol
- the protocol- Returns:
- the VPNServerPatch builder
-
subnets
public VPNServerPatch.Builder subnets(List<SubnetIdentity> subnets)
Set the subnets. Existing subnets will be replaced.- Parameters:
subnets
- the subnets- Returns:
- the VPNServerPatch builder
-
-