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.BuilderaddClientAuthentication(VPNServerAuthenticationPrototype clientAuthentication)Adds a new element to clientAuthentication.VPNServerPatch.BuilderaddClientDnsServerIps(IP clientDnsServerIps)Adds a new element to clientDnsServerIps.VPNServerPatch.BuilderaddSubnets(SubnetIdentity subnets)Adds a new element to subnets.VPNServerPatchbuild()Builds a VPNServerPatch.VPNServerPatch.Buildercertificate(CertificateInstanceIdentity certificate)Set the certificate.VPNServerPatch.BuilderclientAuthentication(List<VPNServerAuthenticationPrototype> clientAuthentication)Set the clientAuthentication.VPNServerPatch.BuilderclientDnsServerIps(List<IP> clientDnsServerIps)Set the clientDnsServerIps.VPNServerPatch.BuilderclientIdleTimeout(long clientIdleTimeout)Set the clientIdleTimeout.VPNServerPatch.BuilderclientIpPool(String clientIpPool)Set the clientIpPool.VPNServerPatch.BuilderenableSplitTunneling(Boolean enableSplitTunneling)Set the enableSplitTunneling.VPNServerPatch.Buildername(String name)Set the name.VPNServerPatch.Builderport(long port)Set the port.VPNServerPatch.Builderprotocol(String protocol)Set the protocol.VPNServerPatch.Buildersubnets(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
-
-