Class CreateInstanceVolumeAttachmentOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateInstanceVolumeAttachmentOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(String instanceId, VolumeAttachmentPrototypeVolume volume) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a CreateInstanceVolumeAttachmentOptions.deleteVolumeOnInstanceDelete
(Boolean deleteVolumeOnInstanceDelete) Set the deleteVolumeOnInstanceDelete.instanceId
(String instanceId) Set the instanceId.Set the name.Set the volume.volumeAttachmentPrototype
(VolumeAttachmentPrototype volumeAttachmentPrototype) Set the volumeAttachmentPrototype.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
instanceId
- the instanceIdvolume
- the volume
-
-
Method Details
-
build
Builds a CreateInstanceVolumeAttachmentOptions.- Returns:
- the new CreateInstanceVolumeAttachmentOptions instance
-
instanceId
Set the instanceId.- Parameters:
instanceId
- the instanceId- Returns:
- the CreateInstanceVolumeAttachmentOptions builder
-
volume
Set the volume.- Parameters:
volume
- the volume- Returns:
- the CreateInstanceVolumeAttachmentOptions builder
-
deleteVolumeOnInstanceDelete
public CreateInstanceVolumeAttachmentOptions.Builder deleteVolumeOnInstanceDelete(Boolean deleteVolumeOnInstanceDelete) Set the deleteVolumeOnInstanceDelete.- Parameters:
deleteVolumeOnInstanceDelete
- the deleteVolumeOnInstanceDelete- Returns:
- the CreateInstanceVolumeAttachmentOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateInstanceVolumeAttachmentOptions builder
-
volumeAttachmentPrototype
public CreateInstanceVolumeAttachmentOptions.Builder volumeAttachmentPrototype(VolumeAttachmentPrototype volumeAttachmentPrototype) Set the volumeAttachmentPrototype.- Parameters:
volumeAttachmentPrototype
- the volumeAttachmentPrototype- Returns:
- the CreateInstanceVolumeAttachmentOptions builder
-