Class Amount.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.global_catalog.v1.model.Amount.Builder
-
- Enclosing class:
- Amount
public static class Amount.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 Amount.BuilderaddPrices(Price prices)Adds a new element to prices.Amountbuild()Builds a Amount.Amount.Buildercountry(java.lang.String country)Set the country.Amount.Buildercurrency(java.lang.String currency)Set the currency.Amount.Builderprices(java.util.List<Price> prices)Set the prices.
-
-
-
Method Detail
-
build
public Amount build()
Builds a Amount.- Returns:
- the new Amount instance
-
addPrices
public Amount.Builder addPrices(Price prices)
Adds a new element to prices.- Parameters:
prices- the new element to be added- Returns:
- the Amount builder
-
country
public Amount.Builder country(java.lang.String country)
Set the country.- Parameters:
country- the country- Returns:
- the Amount builder
-
currency
public Amount.Builder currency(java.lang.String currency)
Set the currency.- Parameters:
currency- the currency- Returns:
- the Amount builder
-
prices
public Amount.Builder prices(java.util.List<Price> prices)
Set the prices. Existing prices will be replaced.- Parameters:
prices- the prices- Returns:
- the Amount builder
-
-