Class VolumeAttachmentPatch

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.VolumeAttachmentPatch
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class VolumeAttachmentPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
VolumeAttachmentPatch.
  • Method Details

    • newBuilder

      public VolumeAttachmentPatch.Builder newBuilder()
      New builder.
      Returns:
      a VolumeAttachmentPatch builder
    • 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.
      Returns:
      the name
    • asPatch

      public Map<String,Object> asPatch()
      Construct a JSON merge-patch from the VolumeAttachmentPatch. Note that properties of the VolumeAttachmentPatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.
      Returns:
      a JSON merge-patch for the VolumeAttachmentPatch