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