Class CreateReservationOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.CreateReservationOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateReservationOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createReservation options.
-
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.static class
Builder. -
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a CreateReservationOptions builder
-
capacity
Gets the capacity. The capacity reservation configuration to use.- Returns:
- the capacity
-
committedUse
Gets the committedUse. The committed use configuration to use for this reservation.- Returns:
- the committedUse
-
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
-
zone
-
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.- Returns:
- the affinityPolicy
-
name
Gets the name. The name for this reservation. The name must not be used by another reservation in the region. If unspecified, the name will be a hyphenated list of randomly-selected words.- Returns:
- the name
-
resourceGroup
Gets the resourceGroup. The resource group to use. If unspecified, the account's [default resource group](https://cloud.ibm.com/apidocs/resource-manager#introduction) will be used.- Returns:
- the resourceGroup
-