Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static class
ReservationPatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asPatch()
Construct a JSON merge-patch from the ReservationPatch.ReservationCapacityPatch
capacity()
Gets the capacity.ReservationCommittedUsePatch
committedUse()
Gets the committedUse.String
name()
Gets the name.ReservationPatch.Builder
newBuilder()
New builder.ReservationProfilePatch
profile()
Gets the profile.
-
-
-
Method Detail
-
newBuilder
public ReservationPatch.Builder newBuilder()
New builder.- Returns:
- a ReservationPatch builder
-
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
-
-