Package com.ibm.cloud.is.vpc.v1.model
Class CreateInstanceVolumeAttachmentOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateInstanceVolumeAttachmentOptions.Builder
-
- Enclosing class:
- CreateInstanceVolumeAttachmentOptions
public static class CreateInstanceVolumeAttachmentOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String instanceId, VolumeAttachmentPrototypeVolume volume)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateInstanceVolumeAttachmentOptions
build()
Builds a CreateInstanceVolumeAttachmentOptions.CreateInstanceVolumeAttachmentOptions.Builder
deleteVolumeOnInstanceDelete(Boolean deleteVolumeOnInstanceDelete)
Set the deleteVolumeOnInstanceDelete.CreateInstanceVolumeAttachmentOptions.Builder
instanceId(String instanceId)
Set the instanceId.CreateInstanceVolumeAttachmentOptions.Builder
name(String name)
Set the name.CreateInstanceVolumeAttachmentOptions.Builder
volume(VolumeAttachmentPrototypeVolume volume)
Set the volume.CreateInstanceVolumeAttachmentOptions.Builder
volumeAttachmentPrototype(VolumeAttachmentPrototype volumeAttachmentPrototype)
Set the volumeAttachmentPrototype.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String instanceId, VolumeAttachmentPrototypeVolume volume)
Instantiates a new builder with required properties.- Parameters:
instanceId
- the instanceIdvolume
- the volume
-
-
Method Detail
-
build
public CreateInstanceVolumeAttachmentOptions build()
Builds a CreateInstanceVolumeAttachmentOptions.- Returns:
- the new CreateInstanceVolumeAttachmentOptions instance
-
instanceId
public CreateInstanceVolumeAttachmentOptions.Builder instanceId(String instanceId)
Set the instanceId.- Parameters:
instanceId
- the instanceId- Returns:
- the CreateInstanceVolumeAttachmentOptions builder
-
volume
public CreateInstanceVolumeAttachmentOptions.Builder volume(VolumeAttachmentPrototypeVolume 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
public CreateInstanceVolumeAttachmentOptions.Builder name(String 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
-
-