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