Package com.ibm.cloud.is.vpc.v1.model
Class CreateReservationOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateReservationOptions.Builder
-
- Enclosing class:
- CreateReservationOptions
public static class CreateReservationOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(ReservationCapacityPrototype capacity, ReservationCommittedUsePrototype committedUse, ReservationProfilePrototype profile, ZoneIdentity zone)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateReservationOptions.Builder
affinityPolicy(String affinityPolicy)
Set the affinityPolicy.CreateReservationOptions
build()
Builds a CreateReservationOptions.CreateReservationOptions.Builder
capacity(ReservationCapacityPrototype capacity)
Set the capacity.CreateReservationOptions.Builder
committedUse(ReservationCommittedUsePrototype committedUse)
Set the committedUse.CreateReservationOptions.Builder
name(String name)
Set the name.CreateReservationOptions.Builder
profile(ReservationProfilePrototype profile)
Set the profile.CreateReservationOptions.Builder
resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.CreateReservationOptions.Builder
zone(ZoneIdentity zone)
Set the zone.
-
-
-
Constructor Detail
-
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 Detail
-
build
public CreateReservationOptions build()
Builds a CreateReservationOptions.- Returns:
- the new CreateReservationOptions instance
-
capacity
public CreateReservationOptions.Builder capacity(ReservationCapacityPrototype capacity)
Set the capacity.- Parameters:
capacity
- the capacity- Returns:
- the CreateReservationOptions builder
-
committedUse
public CreateReservationOptions.Builder committedUse(ReservationCommittedUsePrototype committedUse)
Set the committedUse.- Parameters:
committedUse
- the committedUse- Returns:
- the CreateReservationOptions builder
-
profile
public CreateReservationOptions.Builder profile(ReservationProfilePrototype profile)
Set the profile.- Parameters:
profile
- the profile- Returns:
- the CreateReservationOptions builder
-
zone
public CreateReservationOptions.Builder zone(ZoneIdentity zone)
Set the zone.- Parameters:
zone
- the zone- Returns:
- the CreateReservationOptions builder
-
affinityPolicy
public CreateReservationOptions.Builder affinityPolicy(String affinityPolicy)
Set the affinityPolicy.- Parameters:
affinityPolicy
- the affinityPolicy- Returns:
- the CreateReservationOptions builder
-
name
public CreateReservationOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateReservationOptions builder
-
resourceGroup
public CreateReservationOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateReservationOptions builder
-
-