Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static interface
CreateReservationOptions.AffinityPolicy
The affinity policy to use for this reservation: - `restricted`: The reservation must be manually requested.static class
CreateReservationOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
affinityPolicy()
Gets the affinityPolicy.ReservationCapacityPrototype
capacity()
Gets the capacity.ReservationCommittedUsePrototype
committedUse()
Gets the committedUse.String
name()
Gets the name.CreateReservationOptions.Builder
newBuilder()
New builder.ReservationProfilePrototype
profile()
Gets the profile.ResourceGroupIdentity
resourceGroup()
Gets the resourceGroup.ZoneIdentity
zone()
Gets the zone.
-
-
-
Method Detail
-
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 [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
-
-