public static final class ResolvedCds.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCds>
ResolvedCds.| Modifier and Type | Method and Description |
|---|---|
ResolvedCds |
build() |
ResolvedCds.Builder |
buySell(BuySell buySell)
Sets whether the CDS is buy or sell.
|
ResolvedCds.Builder |
dayCount(DayCount dayCount)
Sets the day count convention.
|
Object |
get(String propertyName) |
ResolvedCds.Builder |
legalEntityId(StandardId legalEntityId)
Sets the legal entity identifier.
|
ResolvedCds.Builder |
paymentOnDefault(PaymentOnDefault paymentOnDefault)
Sets the payment on default.
|
ResolvedCds.Builder |
paymentPeriods(CreditCouponPaymentPeriod... paymentPeriods)
Sets the
paymentPeriods property in the builder
from an array of objects. |
ResolvedCds.Builder |
paymentPeriods(List<CreditCouponPaymentPeriod> paymentPeriods)
Sets the periodic payments based on the fixed rate.
|
ResolvedCds.Builder |
protectionEndDate(LocalDate protectionEndDate)
Sets the protection end date.
|
ResolvedCds.Builder |
protectionStart(ProtectionStartOfDay protectionStart)
Sets the protection start of the day.
|
ResolvedCds.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedCds.Builder |
set(String propertyName,
Object newValue) |
ResolvedCds.Builder |
settlementDateOffset(DaysAdjustment settlementDateOffset)
Sets the number of days between valuation date and settlement date.
|
ResolvedCds.Builder |
stepinDateOffset(DaysAdjustment stepinDateOffset)
Sets the number of days between valuation date and step-in date.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedCds>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCds>public ResolvedCds.Builder set(String propertyName, Object newValue)
public ResolvedCds.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedCds>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCds>public ResolvedCds build()
public ResolvedCds.Builder buySell(BuySell buySell)
A value of 'Buy' implies buying protection, where the fixed coupon is paid and the protection is received in the event of default. A value of 'Sell' implies selling protection, where the fixed coupon is received and the protection is paid in the event of default.
buySell - the new value, not nullpublic ResolvedCds.Builder legalEntityId(StandardId legalEntityId)
This identifier is used for the reference legal entity of the CDS.
legalEntityId - the new value, not nullpublic ResolvedCds.Builder paymentPeriods(List<CreditCouponPaymentPeriod> paymentPeriods)
Each payment period represents part of the life-time of the leg. In most cases, the periods do not overlap. However, since each payment period is essentially independent the data model allows overlapping periods.
paymentPeriods - the new value, not emptypublic ResolvedCds.Builder paymentPeriods(CreditCouponPaymentPeriod... paymentPeriods)
paymentPeriods property in the builder
from an array of objects.paymentPeriods - the new value, not emptypublic ResolvedCds.Builder protectionEndDate(LocalDate protectionEndDate)
This may be different from the accrual end date of the last payment period in periodicPayments.
protectionEndDate - the new value, not nullpublic ResolvedCds.Builder dayCount(DayCount dayCount)
This is used to convert dates to a numerical value.
dayCount - the new value, not nullpublic ResolvedCds.Builder paymentOnDefault(PaymentOnDefault paymentOnDefault)
Whether the accrued premium is paid in the event of a default.
paymentOnDefault - the new value, not nullpublic ResolvedCds.Builder protectionStart(ProtectionStartOfDay protectionStart)
When the protection starts on the start date.
protectionStart - the new value, not nullpublic ResolvedCds.Builder stepinDateOffset(DaysAdjustment stepinDateOffset)
The step-in date is also called protection effective date. It is usually 1 calendar day for standardized CDS contracts.
stepinDateOffset - the new value, not nullpublic ResolvedCds.Builder settlementDateOffset(DaysAdjustment settlementDateOffset)
It is usually 3 business days for standardized CDS contracts.
settlementDateOffset - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCds>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.