Class VolumePatch

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class VolumePatch
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    VolumePatch.
    • Method Detail

      • newBuilder

        public VolumePatch.Builder newBuilder()
        New builder.
        Returns:
        a VolumePatch builder
      • capacity

        public Long capacity()
        Gets the capacity. The capacity to use for the volume (in gigabytes). The volume must be attached to a running virtual server instance, and the specified value must not be less than the current capacity. Additionally, if the volume is attached as a boot volume, the maximum value is 250 gigabytes. The minimum and maximum limits for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.
        Returns:
        the capacity
      • iops

        public Long iops()
        Gets the iops. The maximum I/O operations per second (IOPS) to use for this volume. Applicable only to volumes using a profile `family` of `custom`. The volume must be attached as a data volume to a running virtual server instance.
        Returns:
        the iops
      • name

        public String name()
        Gets the name. The name for this volume. The name must not be used by another volume in the region.
        Returns:
        the name
      • profile

        public VolumeProfileIdentity profile()
        Gets the profile. The profile to use for this volume. The requested profile must be in the same `family` as the current profile. The volume must be attached as a data volume to a running virtual server instance, and must have a `capacity` within the range supported by the specified profile.
        Returns:
        the profile
      • userTags

        public List<String> userTags()
        Gets the userTags. The [user tags](https://cloud.ibm.com/apidocs/tagging#types-of-tags) associated with this volume.
        Returns:
        the userTags
      • asPatch

        public Map<String,​Object> asPatch()
        Construct a JSON merge-patch from the VolumePatch. Note that properties of the VolumePatch 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 VolumePatch