Package com.ibm.cloud.is.vpc.v1.model
Class CreateVirtualNetworkInterfaceOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateVirtualNetworkInterfaceOptions.Builder
-
- Enclosing class:
- CreateVirtualNetworkInterfaceOptions
public static class CreateVirtualNetworkInterfaceOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
-
-
-
Method Detail
-
build
public CreateVirtualNetworkInterfaceOptions build()
Builds a CreateVirtualNetworkInterfaceOptions.- Returns:
- the new CreateVirtualNetworkInterfaceOptions instance
-
addIps
public CreateVirtualNetworkInterfaceOptions.Builder addIps(VirtualNetworkInterfaceIPPrototype ips)
Adds a new element to ips.- Parameters:
ips
- the new element to be added- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
addSecurityGroups
public CreateVirtualNetworkInterfaceOptions.Builder addSecurityGroups(SecurityGroupIdentity securityGroups)
Adds a new element to securityGroups.- Parameters:
securityGroups
- the new element to be added- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
allowIpSpoofing
public CreateVirtualNetworkInterfaceOptions.Builder allowIpSpoofing(Boolean allowIpSpoofing)
Set the allowIpSpoofing.- Parameters:
allowIpSpoofing
- the allowIpSpoofing- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
autoDelete
public CreateVirtualNetworkInterfaceOptions.Builder autoDelete(Boolean autoDelete)
Set the autoDelete.- Parameters:
autoDelete
- the autoDelete- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
enableInfrastructureNat
public CreateVirtualNetworkInterfaceOptions.Builder enableInfrastructureNat(Boolean enableInfrastructureNat)
Set the enableInfrastructureNat.- Parameters:
enableInfrastructureNat
- the enableInfrastructureNat- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
ips
public CreateVirtualNetworkInterfaceOptions.Builder ips(List<VirtualNetworkInterfaceIPPrototype> ips)
Set the ips. Existing ips will be replaced.- Parameters:
ips
- the ips- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
name
public CreateVirtualNetworkInterfaceOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
primaryIp
public CreateVirtualNetworkInterfaceOptions.Builder primaryIp(VirtualNetworkInterfacePrimaryIPPrototype primaryIp)
Set the primaryIp.- Parameters:
primaryIp
- the primaryIp- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
protocolStateFilteringMode
public CreateVirtualNetworkInterfaceOptions.Builder protocolStateFilteringMode(String protocolStateFilteringMode)
Set the protocolStateFilteringMode.- Parameters:
protocolStateFilteringMode
- the protocolStateFilteringMode- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
resourceGroup
public CreateVirtualNetworkInterfaceOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
securityGroups
public CreateVirtualNetworkInterfaceOptions.Builder securityGroups(List<SecurityGroupIdentity> securityGroups)
Set the securityGroups. Existing securityGroups will be replaced.- Parameters:
securityGroups
- the securityGroups- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
subnet
public CreateVirtualNetworkInterfaceOptions.Builder subnet(SubnetIdentity subnet)
Set the subnet.- Parameters:
subnet
- the subnet- Returns:
- the CreateVirtualNetworkInterfaceOptions builder
-
-