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.GenericModel
The createInstanceVolumeAttachment options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateInstanceVolumeAttachmentOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
deleteVolumeOnInstanceDelete()
Gets the deleteVolumeOnInstanceDelete.String
instanceId()
Gets the instanceId.String
name()
Gets the name.CreateInstanceVolumeAttachmentOptions.Builder
newBuilder()
New builder.VolumeAttachmentPrototypeVolume
volume()
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
-
-