Class ResolvedCmsTrade.Builder

  • All Implemented Interfaces:
    org.joda.beans.BeanBuilder<ResolvedCmsTrade>
    Enclosing class:
    ResolvedCmsTrade

    public static final class ResolvedCmsTrade.Builder
    extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsTrade>
    The bean-builder for ResolvedCmsTrade.
    • Method Detail

      • get

        public Object get​(String propertyName)
        Specified by:
        get in interface org.joda.beans.BeanBuilder<ResolvedCmsTrade>
        Overrides:
        get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsTrade>
      • info

        public ResolvedCmsTrade.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 ResolvedCmsTrade.Builder product​(ResolvedCms product)
        Sets the resolved CMS product.

        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 ResolvedCmsTrade.Builder premium​(Payment 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
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsTrade>