Class CreateVpnServerOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateVpnServerOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(CertificateInstanceIdentity certificate, List<VPNServerAuthenticationPrototype> clientAuthentication, String clientIpPool, List<SubnetIdentity> subnets) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionaddClientAuthentication
(VPNServerAuthenticationPrototype clientAuthentication) Adds a new element to clientAuthentication.addClientDnsServerIps
(IP clientDnsServerIps) Adds a new element to clientDnsServerIps.addSecurityGroups
(SecurityGroupIdentity securityGroups) Adds a new element to securityGroups.addSubnets
(SubnetIdentity subnets) Adds a new element to subnets.build()
Builds a CreateVpnServerOptions.certificate
(CertificateInstanceIdentity certificate) Set the certificate.clientAuthentication
(List<VPNServerAuthenticationPrototype> clientAuthentication) Set the clientAuthentication.clientDnsServerIps
(List<IP> clientDnsServerIps) Set the clientDnsServerIps.clientIdleTimeout
(long clientIdleTimeout) Set the clientIdleTimeout.clientIpPool
(String clientIpPool) Set the clientIpPool.enableSplitTunneling
(Boolean enableSplitTunneling) Set the enableSplitTunneling.Set the name.port
(long port) Set the port.Set the protocol.resourceGroup
(ResourceGroupIdentity resourceGroup) Set the resourceGroup.securityGroups
(List<SecurityGroupIdentity> securityGroups) Set the securityGroups.subnets
(List<SubnetIdentity> subnets) Set the subnets.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
public Builder(CertificateInstanceIdentity certificate, List<VPNServerAuthenticationPrototype> clientAuthentication, String clientIpPool, List<SubnetIdentity> subnets) Instantiates a new builder with required properties.- Parameters:
certificate
- the certificateclientAuthentication
- the clientAuthenticationclientIpPool
- the clientIpPoolsubnets
- the subnets
-
-
Method Details
-
build
Builds a CreateVpnServerOptions.- Returns:
- the new CreateVpnServerOptions instance
-
addClientAuthentication
public CreateVpnServerOptions.Builder addClientAuthentication(VPNServerAuthenticationPrototype clientAuthentication) Adds a new element to clientAuthentication.- Parameters:
clientAuthentication
- the new element to be added- Returns:
- the CreateVpnServerOptions builder
-
addSubnets
Adds a new element to subnets.- Parameters:
subnets
- the new element to be added- Returns:
- the CreateVpnServerOptions builder
-
addClientDnsServerIps
Adds a new element to clientDnsServerIps.- Parameters:
clientDnsServerIps
- the new element to be added- Returns:
- the CreateVpnServerOptions builder
-
addSecurityGroups
Adds a new element to securityGroups.- Parameters:
securityGroups
- the new element to be added- Returns:
- the CreateVpnServerOptions builder
-
certificate
Set the certificate.- Parameters:
certificate
- the certificate- Returns:
- the CreateVpnServerOptions builder
-
clientAuthentication
public CreateVpnServerOptions.Builder clientAuthentication(List<VPNServerAuthenticationPrototype> clientAuthentication) Set the clientAuthentication. Existing clientAuthentication will be replaced.- Parameters:
clientAuthentication
- the clientAuthentication- Returns:
- the CreateVpnServerOptions builder
-
clientIpPool
Set the clientIpPool.- Parameters:
clientIpPool
- the clientIpPool- Returns:
- the CreateVpnServerOptions builder
-
subnets
Set the subnets. Existing subnets will be replaced.- Parameters:
subnets
- the subnets- Returns:
- the CreateVpnServerOptions builder
-
clientDnsServerIps
Set the clientDnsServerIps. Existing clientDnsServerIps will be replaced.- Parameters:
clientDnsServerIps
- the clientDnsServerIps- Returns:
- the CreateVpnServerOptions builder
-
clientIdleTimeout
Set the clientIdleTimeout.- Parameters:
clientIdleTimeout
- the clientIdleTimeout- Returns:
- the CreateVpnServerOptions builder
-
enableSplitTunneling
Set the enableSplitTunneling.- Parameters:
enableSplitTunneling
- the enableSplitTunneling- Returns:
- the CreateVpnServerOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateVpnServerOptions builder
-
port
Set the port.- Parameters:
port
- the port- Returns:
- the CreateVpnServerOptions builder
-
protocol
Set the protocol.- Parameters:
protocol
- the protocol- Returns:
- the CreateVpnServerOptions builder
-
resourceGroup
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateVpnServerOptions builder
-
securityGroups
Set the securityGroups. Existing securityGroups will be replaced.- Parameters:
securityGroups
- the securityGroups- Returns:
- the CreateVpnServerOptions builder
-