Class 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.
    • Method Detail

      • 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