Class ImagePatch

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

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

      • newBuilder

        public ImagePatch.Builder newBuilder()
        New builder.
        Returns:
        a ImagePatch builder
      • deprecationAt

        public Date deprecationAt()
        Gets the deprecationAt. The deprecation date and time to set for this image. This cannot be set if the image has a `status` of `failed` or `deleting`, or if `catalog_offering.managed` is `true`. The date and time must not be in the past, and must be earlier than `obsolescence_at` (if `obsolescence_at` is set). Additionally, if the image status is currently `deprecated`, the value cannot be changed (but may be removed). Specify `null` to remove an existing deprecation date and time. If the image status is currently `deprecated`, it will become `available`. If the deprecation date and time is reached while the image has a status of `pending`, the image's status will transition to `deprecated` upon its successful creation (or `obsolete` if the obsolescence date and time was also reached).
        Returns:
        the deprecationAt
      • name

        public String name()
        Gets the name. The name for this image. The name must not be used by another image in the region. Names starting with `ibm-` are reserved for system-provided images, and are not allowed.
        Returns:
        the name
      • obsolescenceAt

        public Date obsolescenceAt()
        Gets the obsolescenceAt. The obsolescence date and time to set for this image. This cannot be set if the image has a `status` of `failed` or `deleting`, or if `catalog_offering.managed` is `true`. The date and time must not be in the past, and must be later than `deprecation_at` (if `deprecation_at` is set). Additionally, if the image status is currently `obsolete`, the value cannot be changed (but may be removed). Specify `null` to remove an existing obsolescence date and time. If the image status is currently `obsolete`, it will become `deprecated` if `deprecation_at` is in the past. Otherwise, it will become `available`. If the obsolescence date and time is reached while the image has a status of `pending`, the image's status will transition to `obsolete` upon its successful creation.
        Returns:
        the obsolescenceAt
      • asPatch

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