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.
  • Method Details

    • newBuilder

      public CreateReservationOptions.Builder newBuilder()
      New builder.
      Returns:
      a CreateReservationOptions builder
    • capacity

      public ReservationCapacityPrototype capacity()
      Gets the capacity. The capacity reservation configuration to use.
      Returns:
      the capacity
    • committedUse

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

      public ReservationProfilePrototype 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

      public ZoneIdentity zone()
      Gets the zone. The zone to use for this reservation.
      Returns:
      the zone
    • 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.
      Returns:
      the affinityPolicy
    • name

      public String 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

      public ResourceGroupIdentity 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