Package com.ibm.cloud.is.vpc.v1.model
Class CreateInstanceNetworkInterfaceOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateInstanceNetworkInterfaceOptions.Builder
-
- Enclosing class:
- CreateInstanceNetworkInterfaceOptions
public static class CreateInstanceNetworkInterfaceOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String instanceId, SubnetIdentity subnet)
Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String instanceId, SubnetIdentity subnet)
Instantiates a new builder with required properties.- Parameters:
instanceId
- the instanceIdsubnet
- the subnet
-
-
Method Detail
-
build
public CreateInstanceNetworkInterfaceOptions build()
Builds a CreateInstanceNetworkInterfaceOptions.- Returns:
- the new CreateInstanceNetworkInterfaceOptions instance
-
addSecurityGroups
public CreateInstanceNetworkInterfaceOptions.Builder addSecurityGroups(SecurityGroupIdentity securityGroups)
Adds a new element to securityGroups.- Parameters:
securityGroups
- the new element to be added- Returns:
- the CreateInstanceNetworkInterfaceOptions builder
-
instanceId
public CreateInstanceNetworkInterfaceOptions.Builder instanceId(String instanceId)
Set the instanceId.- Parameters:
instanceId
- the instanceId- Returns:
- the CreateInstanceNetworkInterfaceOptions builder
-
subnet
public CreateInstanceNetworkInterfaceOptions.Builder subnet(SubnetIdentity subnet)
Set the subnet.- Parameters:
subnet
- the subnet- Returns:
- the CreateInstanceNetworkInterfaceOptions builder
-
allowIpSpoofing
public CreateInstanceNetworkInterfaceOptions.Builder allowIpSpoofing(Boolean allowIpSpoofing)
Set the allowIpSpoofing.- Parameters:
allowIpSpoofing
- the allowIpSpoofing- Returns:
- the CreateInstanceNetworkInterfaceOptions builder
-
name
public CreateInstanceNetworkInterfaceOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateInstanceNetworkInterfaceOptions builder
-
primaryIp
public CreateInstanceNetworkInterfaceOptions.Builder primaryIp(NetworkInterfaceIPPrototype primaryIp)
Set the primaryIp.- Parameters:
primaryIp
- the primaryIp- Returns:
- the CreateInstanceNetworkInterfaceOptions builder
-
securityGroups
public CreateInstanceNetworkInterfaceOptions.Builder securityGroups(List<SecurityGroupIdentity> securityGroups)
Set the securityGroups. Existing securityGroups will be replaced.- Parameters:
securityGroups
- the securityGroups- Returns:
- the CreateInstanceNetworkInterfaceOptions builder
-
networkInterfacePrototype
public CreateInstanceNetworkInterfaceOptions.Builder networkInterfacePrototype(NetworkInterfacePrototype networkInterfacePrototype)
Set the networkInterfacePrototype.- Parameters:
networkInterfacePrototype
- the networkInterfacePrototype- Returns:
- the CreateInstanceNetworkInterfaceOptions builder
-
-