public static final class FxVanillaOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>
FxVanillaOptionTrade.| Modifier and Type | Method and 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(org.joda.beans.MetaProperty<?> property,
Object value) |
FxVanillaOptionTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<FxVanillaOptionTrade>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>public FxVanillaOptionTrade.Builder set(String propertyName, Object newValue)
public FxVanillaOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<FxVanillaOptionTrade>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>public FxVanillaOptionTrade build()
public FxVanillaOptionTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
info - the new value, not nullpublic FxVanillaOptionTrade.Builder product(FxVanillaOption product)
The product captures the contracted financial details of the trade.
product - the new value, not nullpublic FxVanillaOptionTrade.Builder premium(AdjustablePayment premium)
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.
premium - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOptionTrade>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.