Class FxVanillaOptionTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>
-
- com.opengamma.strata.product.fxopt.FxVanillaOptionTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FxVanillaOptionTrade>
- Enclosing class:
- FxVanillaOptionTrade
public static final class FxVanillaOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>
The bean-builder forFxVanillaOptionTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxVanillaOptionTrade
build()
Object
get(String propertyName)
FxVanillaOptionTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.FxVanillaOptionTrade.Builder
premium(AdjustablePayment premium)
Sets the premium of the FX option.FxVanillaOptionTrade.Builder
product(FxVanillaOption product)
Sets the FX option product that was agreed when the trade occurred.FxVanillaOptionTrade.Builder
set(String propertyName, Object newValue)
FxVanillaOptionTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<FxVanillaOptionTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>
-
set
public FxVanillaOptionTrade.Builder set(String propertyName, Object newValue)
-
set
public FxVanillaOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<FxVanillaOptionTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>
-
build
public FxVanillaOptionTrade build()
-
info
public FxVanillaOptionTrade.Builder info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.This allows additional information to be attached to the trade.
- Parameters:
info
- the new value, not null- Returns:
- this, for chaining, not null
-
product
public FxVanillaOptionTrade.Builder product(FxVanillaOption product)
Sets the FX option product that was agreed when the trade occurred.The product captures the contracted financial details of the trade.
- Parameters:
product
- the new value, not null- Returns:
- this, for chaining, not null
-
premium
public FxVanillaOptionTrade.Builder premium(AdjustablePayment premium)
Sets the premium of the FX option.The premium sign should be compatible with the product Long/Short flag. This means that the premium is negative for long and positive for short.
- Parameters:
premium
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>
-
-