Class ReservationPatch

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

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

      • capacity

        public ReservationCapacityPatch capacity()
        Gets the capacity. The capacity reservation configuration to use. The configuration can only be changed for reservations with a `status` of `inactive`.
        Returns:
        the capacity
      • committedUse

        public ReservationCommittedUsePatch committedUse()
        Gets the committedUse. The committed use configuration to use for this reservation.
        Returns:
        the committedUse
      • name

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

        public ReservationProfilePatch profile()
        Gets the profile. The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles) to use for this reservation.
        Returns:
        the profile
      • asPatch

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