Class CreateInstanceNetworkAttachmentOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateInstanceNetworkAttachmentOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Instantiates a new builder.Builder(String instanceId, InstanceNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a CreateInstanceNetworkAttachmentOptions.instanceId(String instanceId) Set the instanceId.instanceNetworkAttachmentPrototype(InstanceNetworkAttachmentPrototype instanceNetworkAttachmentPrototype) Set the instanceNetworkAttachmentPrototype.Set the name.virtualNetworkInterface(InstanceNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface) Set the virtualNetworkInterface.
-
Constructor Details
-
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 Details
-
build
Builds a CreateInstanceNetworkAttachmentOptions.- Returns:
- the new CreateInstanceNetworkAttachmentOptions instance
-
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
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
-