Class ResolvedCdsTrade.Builder

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

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

      • get

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

        public ResolvedCdsTrade.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 ResolvedCdsTrade.Builder product​(ResolvedCds product)
        Sets the resolved CDS product.

        The product captures the contracted financial details of the trade.

        Parameters:
        product - the new value, not null
        Returns:
        this, for chaining, not null
      • upfrontFee

        public ResolvedCdsTrade.Builder upfrontFee​(Payment upfrontFee)
        Sets the upfront fee of the product.

        This specifies a single amount payable by the buyer to the seller Thus the sign must be compatible with the product Pay/Receive flag.

        Some CDSs, especially legacy products, are traded at par and the upfront fee is not paid.

        Parameters:
        upfrontFee - the new value
        Returns:
        this, for chaining, not null
      • toString

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