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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
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`.static class
Builder. -
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
-
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
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
Gets the committedUse. The committed use configuration to use for this reservation.- Returns:
- the committedUse
-
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
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
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
-