Class CreateReservationOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateReservationOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(ReservationCapacityPrototype capacity, ReservationCommittedUsePrototype committedUse, ReservationProfilePrototype profile, ZoneIdentity zone) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionaffinityPolicy
(String affinityPolicy) Set the affinityPolicy.build()
Builds a CreateReservationOptions.capacity
(ReservationCapacityPrototype capacity) Set the capacity.committedUse
(ReservationCommittedUsePrototype committedUse) Set the committedUse.Set the name.profile
(ReservationProfilePrototype profile) Set the profile.resourceGroup
(ResourceGroupIdentity resourceGroup) Set the resourceGroup.zone
(ZoneIdentity zone) Set the zone.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
public Builder(ReservationCapacityPrototype capacity, ReservationCommittedUsePrototype committedUse, ReservationProfilePrototype profile, ZoneIdentity zone) Instantiates a new builder with required properties.- Parameters:
capacity
- the capacitycommittedUse
- the committedUseprofile
- the profilezone
- the zone
-
-
Method Details
-
build
Builds a CreateReservationOptions.- Returns:
- the new CreateReservationOptions instance
-
capacity
Set the capacity.- Parameters:
capacity
- the capacity- Returns:
- the CreateReservationOptions builder
-
committedUse
Set the committedUse.- Parameters:
committedUse
- the committedUse- Returns:
- the CreateReservationOptions builder
-
profile
Set the profile.- Parameters:
profile
- the profile- Returns:
- the CreateReservationOptions builder
-
zone
Set the zone.- Parameters:
zone
- the zone- Returns:
- the CreateReservationOptions builder
-
affinityPolicy
Set the affinityPolicy.- Parameters:
affinityPolicy
- the affinityPolicy- Returns:
- the CreateReservationOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateReservationOptions builder
-
resourceGroup
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateReservationOptions builder
-