@Generated(value="io.sphere.sdk.annotations.processors.generators.HasBuilderGenerator", comments="Generated from: io.sphere.sdk.shippingmethods.PriceFunction") public final class PriceFunctionBuilder extends Base implements Builder<PriceFunction>
PriceFunction.| Modifier and Type | Method and Description |
|---|---|
PriceFunction |
build()
Creates a new instance of
PriceFunction with the values of this builder. |
PriceFunctionBuilder |
currencyCode(String currencyCode)
Sets the
currencyCode property of this builder. |
PriceFunctionBuilder |
function(String function)
Sets the
function property of this builder. |
static PriceFunctionBuilder |
of(PriceFunction template)
Creates a new object initialized with the fields of the template parameter.
|
static PriceFunctionBuilder |
of(String currencyCode,
String function)
Creates a new object initialized with the given values.
|
public PriceFunctionBuilder currencyCode(String currencyCode)
currencyCode property of this builder.currencyCode - the value for PriceFunction.getCurrencyCode()public PriceFunctionBuilder function(String function)
function property of this builder.function - the value for PriceFunction.getFunction()public PriceFunction build()
PriceFunction with the values of this builder.build in interface Builder<PriceFunction>public static PriceFunctionBuilder of(String currencyCode, String function)
currencyCode - initial value for the PriceFunction.getCurrencyCode() propertyfunction - initial value for the PriceFunction.getFunction() propertypublic static PriceFunctionBuilder of(PriceFunction template)
template - the template