Package com.ibm.cloud.is.vpc.v1.model
Class CreateVpnServerOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateVpnServerOptions.Builder
-
- Enclosing class:
- CreateVpnServerOptions
public static class CreateVpnServerOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(CertificateInstanceIdentity certificate, List<VPNServerAuthenticationPrototype> clientAuthentication, String clientIpPool, List<SubnetIdentity> subnets)
Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
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 Detail
-
build
public CreateVpnServerOptions 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
public CreateVpnServerOptions.Builder addSubnets(SubnetIdentity subnets)
Adds a new element to subnets.- Parameters:
subnets
- the new element to be added- Returns:
- the CreateVpnServerOptions builder
-
addClientDnsServerIps
public CreateVpnServerOptions.Builder addClientDnsServerIps(IP clientDnsServerIps)
Adds a new element to clientDnsServerIps.- Parameters:
clientDnsServerIps
- the new element to be added- Returns:
- the CreateVpnServerOptions builder
-
addSecurityGroups
public CreateVpnServerOptions.Builder addSecurityGroups(SecurityGroupIdentity securityGroups)
Adds a new element to securityGroups.- Parameters:
securityGroups
- the new element to be added- Returns:
- the CreateVpnServerOptions builder
-
certificate
public CreateVpnServerOptions.Builder certificate(CertificateInstanceIdentity 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
public CreateVpnServerOptions.Builder clientIpPool(String clientIpPool)
Set the clientIpPool.- Parameters:
clientIpPool
- the clientIpPool- Returns:
- the CreateVpnServerOptions builder
-
subnets
public CreateVpnServerOptions.Builder subnets(List<SubnetIdentity> subnets)
Set the subnets. Existing subnets will be replaced.- Parameters:
subnets
- the subnets- Returns:
- the CreateVpnServerOptions builder
-
clientDnsServerIps
public CreateVpnServerOptions.Builder clientDnsServerIps(List<IP> clientDnsServerIps)
Set the clientDnsServerIps. Existing clientDnsServerIps will be replaced.- Parameters:
clientDnsServerIps
- the clientDnsServerIps- Returns:
- the CreateVpnServerOptions builder
-
clientIdleTimeout
public CreateVpnServerOptions.Builder clientIdleTimeout(long clientIdleTimeout)
Set the clientIdleTimeout.- Parameters:
clientIdleTimeout
- the clientIdleTimeout- Returns:
- the CreateVpnServerOptions builder
-
enableSplitTunneling
public CreateVpnServerOptions.Builder enableSplitTunneling(Boolean enableSplitTunneling)
Set the enableSplitTunneling.- Parameters:
enableSplitTunneling
- the enableSplitTunneling- Returns:
- the CreateVpnServerOptions builder
-
name
public CreateVpnServerOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateVpnServerOptions builder
-
port
public CreateVpnServerOptions.Builder port(long port)
Set the port.- Parameters:
port
- the port- Returns:
- the CreateVpnServerOptions builder
-
protocol
public CreateVpnServerOptions.Builder protocol(String protocol)
Set the protocol.- Parameters:
protocol
- the protocol- Returns:
- the CreateVpnServerOptions builder
-
resourceGroup
public CreateVpnServerOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateVpnServerOptions builder
-
securityGroups
public CreateVpnServerOptions.Builder securityGroups(List<SecurityGroupIdentity> securityGroups)
Set the securityGroups. Existing securityGroups will be replaced.- Parameters:
securityGroups
- the securityGroups- Returns:
- the CreateVpnServerOptions builder
-
-