Class CdsIsdaCreditCurveNode.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIsdaCreditCurveNode>
-
- com.opengamma.strata.market.curve.node.CdsIsdaCreditCurveNode.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<CdsIsdaCreditCurveNode>
- Enclosing class:
- CdsIsdaCreditCurveNode
public static final class CdsIsdaCreditCurveNode.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIsdaCreditCurveNode>
The bean-builder forCdsIsdaCreditCurveNode
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CdsIsdaCreditCurveNode
build()
CdsIsdaCreditCurveNode.Builder
fixedRate(Double fixedRate)
Sets the fixed coupon rate.Object
get(String propertyName)
CdsIsdaCreditCurveNode.Builder
label(String label)
Sets the label to use for the node.CdsIsdaCreditCurveNode.Builder
legalEntityId(StandardId legalEntityId)
Sets the legal entity identifier.CdsIsdaCreditCurveNode.Builder
observableId(ObservableId observableId)
Sets the identifier of the market data value that provides the quoted value.CdsIsdaCreditCurveNode.Builder
quoteConvention(CdsQuoteConvention quoteConvention)
Sets the market quote convention.CdsIsdaCreditCurveNode.Builder
set(String propertyName, Object newValue)
CdsIsdaCreditCurveNode.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
CdsIsdaCreditCurveNode.Builder
template(CdsTemplate template)
Sets the template for the CDS associated with this node.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<CdsIsdaCreditCurveNode>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIsdaCreditCurveNode>
-
set
public CdsIsdaCreditCurveNode.Builder set(String propertyName, Object newValue)
-
set
public CdsIsdaCreditCurveNode.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<CdsIsdaCreditCurveNode>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIsdaCreditCurveNode>
-
build
public CdsIsdaCreditCurveNode build()
-
template
public CdsIsdaCreditCurveNode.Builder template(CdsTemplate template)
Sets the template for the CDS associated with this node.- Parameters:
template
- the new value, not null- Returns:
- this, for chaining, not null
-
label
public CdsIsdaCreditCurveNode.Builder label(String label)
Sets the label to use for the node.When building, this will default based on
template
if not specified.- Parameters:
label
- the new value, not empty- Returns:
- this, for chaining, not null
-
observableId
public CdsIsdaCreditCurveNode.Builder observableId(ObservableId observableId)
Sets the identifier of the market data value that provides the quoted value.- Parameters:
observableId
- the new value, not null- Returns:
- this, for chaining, not null
-
legalEntityId
public CdsIsdaCreditCurveNode.Builder legalEntityId(StandardId legalEntityId)
Sets the legal entity identifier.This identifier is used for the reference legal entity of the CDS.
- Parameters:
legalEntityId
- the new value, not null- Returns:
- this, for chaining, not null
-
quoteConvention
public CdsIsdaCreditCurveNode.Builder quoteConvention(CdsQuoteConvention quoteConvention)
Sets the market quote convention.The CDS is quoted in par spread, points upfront or quoted spread. See
CdsQuoteConvention
for detail.- Parameters:
quoteConvention
- the new value, not null- Returns:
- this, for chaining, not null
-
fixedRate
public CdsIsdaCreditCurveNode.Builder fixedRate(Double fixedRate)
Sets the fixed coupon rate.This must be represented in decimal form.
- Parameters:
fixedRate
- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIsdaCreditCurveNode>
-
-