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.
  • Method Details

    • newBuilder

      New builder.
      Returns:
      a CreateInstanceVolumeAttachmentOptions builder
    • instanceId

      public String instanceId()
      Gets the instanceId. The virtual server instance identifier.
      Returns:
      the instanceId
    • volume

      Gets the volume. The volume to use for this attachment. This can be specified as an existing unattached volume, 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