Class CdsIndexIsdaCreditCurveNode.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
-
- com.opengamma.strata.market.curve.node.CdsIndexIsdaCreditCurveNode.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<CdsIndexIsdaCreditCurveNode>
- Enclosing class:
- CdsIndexIsdaCreditCurveNode
public static final class CdsIndexIsdaCreditCurveNode.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
The bean-builder forCdsIndexIsdaCreditCurveNode
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CdsIndexIsdaCreditCurveNode
build()
CdsIndexIsdaCreditCurveNode.Builder
cdsIndexId(StandardId cdsIndexId)
Sets the CDS index identifier.CdsIndexIsdaCreditCurveNode.Builder
fixedRate(Double fixedRate)
Sets the fixed coupon rate.Object
get(String propertyName)
CdsIndexIsdaCreditCurveNode.Builder
label(String label)
Sets the label to use for the node.CdsIndexIsdaCreditCurveNode.Builder
legalEntityIds(StandardId... legalEntityIds)
Sets thelegalEntityIds
property in the builder from an array of objects.CdsIndexIsdaCreditCurveNode.Builder
legalEntityIds(List<StandardId> legalEntityIds)
Sets the legal entity identifiers.CdsIndexIsdaCreditCurveNode.Builder
observableId(ObservableId observableId)
Sets the identifier of the market data value that provides the quoted value.CdsIndexIsdaCreditCurveNode.Builder
quoteConvention(CdsQuoteConvention quoteConvention)
Sets the market quote convention.CdsIndexIsdaCreditCurveNode.Builder
set(String propertyName, Object newValue)
CdsIndexIsdaCreditCurveNode.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
CdsIndexIsdaCreditCurveNode.Builder
template(CdsTemplate template)
Sets the template for the single names associated with this node.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<CdsIndexIsdaCreditCurveNode>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
-
set
public CdsIndexIsdaCreditCurveNode.Builder set(String propertyName, Object newValue)
-
set
public CdsIndexIsdaCreditCurveNode.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<CdsIndexIsdaCreditCurveNode>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
-
build
public CdsIndexIsdaCreditCurveNode build()
-
template
public CdsIndexIsdaCreditCurveNode.Builder template(CdsTemplate template)
Sets the template for the single names associated with this node.- Parameters:
template
- the new value, not null- Returns:
- this, for chaining, not null
-
label
public CdsIndexIsdaCreditCurveNode.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 CdsIndexIsdaCreditCurveNode.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
-
cdsIndexId
public CdsIndexIsdaCreditCurveNode.Builder cdsIndexId(StandardId cdsIndexId)
Sets the CDS index identifier.This identifier is used to refer this CDS index product.
- Parameters:
cdsIndexId
- the new value, not null- Returns:
- this, for chaining, not null
-
legalEntityIds
public CdsIndexIsdaCreditCurveNode.Builder legalEntityIds(List<StandardId> legalEntityIds)
Sets the legal entity identifiers.These identifiers refer to the reference legal entities of the CDS index.
- Parameters:
legalEntityIds
- the new value, not null- Returns:
- this, for chaining, not null
-
legalEntityIds
public CdsIndexIsdaCreditCurveNode.Builder legalEntityIds(StandardId... legalEntityIds)
Sets thelegalEntityIds
property in the builder from an array of objects.- Parameters:
legalEntityIds
- the new value, not null- Returns:
- this, for chaining, not null
-
quoteConvention
public CdsIndexIsdaCreditCurveNode.Builder quoteConvention(CdsQuoteConvention quoteConvention)
Sets the market quote convention.The CDS index 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 CdsIndexIsdaCreditCurveNode.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<CdsIndexIsdaCreditCurveNode>
-
-