Package com.ibm.cloud.is.vpc.v1.model
Class CreateInstanceNetworkAttachmentOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateInstanceNetworkAttachmentOptions.Builder
-
- Enclosing class:
- CreateInstanceNetworkAttachmentOptions
public static class CreateInstanceNetworkAttachmentOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String instanceId, InstanceNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateInstanceNetworkAttachmentOptions
build()
Builds a CreateInstanceNetworkAttachmentOptions.CreateInstanceNetworkAttachmentOptions.Builder
instanceId(String instanceId)
Set the instanceId.CreateInstanceNetworkAttachmentOptions.Builder
instanceNetworkAttachmentPrototype(InstanceNetworkAttachmentPrototype instanceNetworkAttachmentPrototype)
Set the instanceNetworkAttachmentPrototype.CreateInstanceNetworkAttachmentOptions.Builder
name(String name)
Set the name.CreateInstanceNetworkAttachmentOptions.Builder
virtualNetworkInterface(InstanceNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface)
Set the virtualNetworkInterface.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String instanceId, InstanceNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface)
Instantiates a new builder with required properties.- Parameters:
instanceId
- the instanceIdvirtualNetworkInterface
- the virtualNetworkInterface
-
-
Method Detail
-
build
public CreateInstanceNetworkAttachmentOptions build()
Builds a CreateInstanceNetworkAttachmentOptions.- Returns:
- the new CreateInstanceNetworkAttachmentOptions instance
-
instanceId
public CreateInstanceNetworkAttachmentOptions.Builder instanceId(String instanceId)
Set the instanceId.- Parameters:
instanceId
- the instanceId- Returns:
- the CreateInstanceNetworkAttachmentOptions builder
-
virtualNetworkInterface
public CreateInstanceNetworkAttachmentOptions.Builder virtualNetworkInterface(InstanceNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface)
Set the virtualNetworkInterface.- Parameters:
virtualNetworkInterface
- the virtualNetworkInterface- Returns:
- the CreateInstanceNetworkAttachmentOptions builder
-
name
public CreateInstanceNetworkAttachmentOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateInstanceNetworkAttachmentOptions builder
-
instanceNetworkAttachmentPrototype
public CreateInstanceNetworkAttachmentOptions.Builder instanceNetworkAttachmentPrototype(InstanceNetworkAttachmentPrototype instanceNetworkAttachmentPrototype)
Set the instanceNetworkAttachmentPrototype.- Parameters:
instanceNetworkAttachmentPrototype
- the instanceNetworkAttachmentPrototype- Returns:
- the CreateInstanceNetworkAttachmentOptions builder
-
-