Class ReservationPatch

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.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 Details

    • newBuilder

      public ReservationPatch.Builder newBuilder()
      New builder.
      Returns:
      a ReservationPatch builder
    • affinityPolicy

      public String affinityPolicy()
      Gets the affinityPolicy. The affinity policy to use for this reservation: - `automatic`: The reservation will be automatically selected - `restricted`: The reservation must be manually requested The affinity policy can only be changed for a reservation with a `status` of `inactive`.
      Returns:
      the affinityPolicy
    • 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 [instance profile](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles) or [bare metal server profile](https://cloud.ibm.com/docs/vpc?topic=vpc-bare-metal-servers-profile) 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