Package com.opengamma.strata.product.cms
Class CmsTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CmsTrade>
-
- com.opengamma.strata.product.cms.CmsTrade.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsTrade
build()
Object
get(String propertyName)
CmsTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.CmsTrade.Builder
premium(AdjustablePayment premium)
Sets the optional premium of the product.CmsTrade.Builder
product(Cms product)
Sets the CMS product that was agreed when the trade occurred.CmsTrade.Builder
set(String propertyName, Object newValue)
CmsTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
set
public CmsTrade.Builder set(String propertyName, Object newValue)
-
set
public CmsTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public CmsTrade build()
-
info
public CmsTrade.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 CmsTrade.Builder product(Cms product)
Sets the CMS 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 CmsTrade.Builder premium(AdjustablePayment premium)
Sets the optional premium of the product.For certain CMS products, a premium is paid upfront. This typically occurs instead of periodic payments based on fixed or Ibor rates over the lifetime of the product.
The premium sign must be compatible with the product Pay/Receive flag.
- Parameters:
premium
- the new value- Returns:
- this, for chaining, not null
-
-