Package com.ibm.cloud.is.vpc.v1.model
Class CreateInstanceVolumeAttachmentOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.CreateInstanceVolumeAttachmentOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateInstanceVolumeAttachmentOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe createInstanceVolumeAttachment options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateInstanceVolumeAttachmentOptions.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleandeleteVolumeOnInstanceDelete()Gets the deleteVolumeOnInstanceDelete.StringinstanceId()Gets the instanceId.Stringname()Gets the name.CreateInstanceVolumeAttachmentOptions.BuildernewBuilder()New builder.VolumeAttachmentPrototypeVolumevolume()Gets the volume.
-
-
-
Method Detail
-
newBuilder
public CreateInstanceVolumeAttachmentOptions.Builder newBuilder()
New builder.- Returns:
- a CreateInstanceVolumeAttachmentOptions builder
-
instanceId
public String instanceId()
Gets the instanceId. The virtual server instance identifier.- Returns:
- the instanceId
-
volume
public VolumeAttachmentPrototypeVolume volume()
Gets the volume. An existing volume to attach to the instance, or a prototype object for a new volume.- Returns:
- the volume
-
deleteVolumeOnInstanceDelete
public Boolean deleteVolumeOnInstanceDelete()
Gets the deleteVolumeOnInstanceDelete. Indicates whether deleting the instance will also delete the attached volume.- Returns:
- the deleteVolumeOnInstanceDelete
-
name
public String name()
Gets the name. The name for this volume attachment. The name must not be used by another volume attachment on the instance. If unspecified, the name will be a hyphenated list of randomly-selected words.- Returns:
- the name
-
-