Class 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 Detail

      • 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 [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles) 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: - `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