Class StartingPrice.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.global_catalog.v1.model.StartingPrice.Builder
-
- Enclosing class:
- StartingPrice
public static class StartingPrice.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StartingPrice.BuilderaddAmount(Amount amount)Adds a new element to amount.StartingPrice.Builderamount(java.util.List<Amount> amount)Set the amount.StartingPricebuild()Builds a StartingPrice.StartingPrice.BuilderdeploymentId(java.lang.String deploymentId)Set the deploymentId.StartingPrice.BuilderplanId(java.lang.String planId)Set the planId.StartingPrice.Builderunit(java.lang.String unit)Set the unit.
-
-
-
Method Detail
-
build
public StartingPrice build()
Builds a StartingPrice.- Returns:
- the new StartingPrice instance
-
addAmount
public StartingPrice.Builder addAmount(Amount amount)
Adds a new element to amount.- Parameters:
amount- the new element to be added- Returns:
- the StartingPrice builder
-
planId
public StartingPrice.Builder planId(java.lang.String planId)
Set the planId.- Parameters:
planId- the planId- Returns:
- the StartingPrice builder
-
deploymentId
public StartingPrice.Builder deploymentId(java.lang.String deploymentId)
Set the deploymentId.- Parameters:
deploymentId- the deploymentId- Returns:
- the StartingPrice builder
-
unit
public StartingPrice.Builder unit(java.lang.String unit)
Set the unit.- Parameters:
unit- the unit- Returns:
- the StartingPrice builder
-
amount
public StartingPrice.Builder amount(java.util.List<Amount> amount)
Set the amount. Existing amount will be replaced.- Parameters:
amount- the amount- Returns:
- the StartingPrice builder
-
-