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.GenericModelThe createReservation options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateReservationOptions.AffinityPolicyThe affinity policy to use for this reservation: - `restricted`: The reservation must be manually requested.static classCreateReservationOptions.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaffinityPolicy()Gets the affinityPolicy.ReservationCapacityPrototypecapacity()Gets the capacity.ReservationCommittedUsePrototypecommittedUse()Gets the committedUse.Stringname()Gets the name.CreateReservationOptions.BuildernewBuilder()New builder.ReservationProfilePrototypeprofile()Gets the profile.ResourceGroupIdentityresourceGroup()Gets the resourceGroup.ZoneIdentityzone()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
-
-