Nephila RiskStore

<back to all web services

RollupRequest

General
Requires Authentication
Requires any of the roles:Riskstore.Write, Riskstore.Admin
The following routes are available for this service:
POST/api/riskstore/rollupRollup RequestRollup Request
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class RollupRequest implements IPost, IHasVersion
    {
        @DataMember(Order=1)
        @ApiMember(IsRequired=true)
        public Analysis analysis = null;

        @DataMember(Order=2)
        @ApiMember()
        public Integer version = null;
        
        public Analysis getAnalysis() { return analysis; }
        public RollupRequest setAnalysis(Analysis value) { this.analysis = value; return this; }
        public Integer getVersion() { return version; }
        public RollupRequest setVersion(Integer value) { this.version = value; return this; }
    }

    @DataContract
    public static class Analysis implements IObjectWithId
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public String name = null;

        @DataMember(Order=3)
        public Date modelAsOfDate = null;

        @DataMember(Order=4)
        public Integer perspectiveId = null;

        @DataMember(Order=5)
        public ArrayList<AnalysisConfiguration> configurations = null;

        @DataMember(Order=6)
        public ArrayList<AnalysisDeal> deals = null;

        @DataMember(Order=7)
        public ArrayList<AnalysisEventIdFilter> eventIdFilters = null;

        @DataMember(Order=8)
        public String createdBy = null;

        @DataMember(Order=9)
        public Date createdDateUtc = null;

        @DataMember(Order=10)
        public Date completedDateUtc = null;

        @DataMember(Order=11)
        public Long legacyAnalysisId = null;

        @DataMember(Order=12)
        public ArrayList<MessageTracking> resultPersistenceTracking = null;

        @DataMember(Order=13)
        public ProcessingStatus processingStatus = null;

        @DataMember(Order=14)
        public Boolean saveResults = null;

        @DataMember(Order=15)
        public String eventSourceSystem = null;

        @DataMember(Order=16)
        public Date updatedDateUtc = null;

        @DataMember(Order=17)
        public Boolean isExpired = null;

        @DataMember(Order=18)
        public UUID rowIdentifier = null;

        @DataMember(Order=19)
        public String errorMessage = null;

        /**
        * Take the minimum simulation count when we have different simulations between event sets
        */
        @DataMember(Order=20)
        @ApiMember(DataType="boolean", Description="Take the minimum simulation count when we have different simulations between event sets")
        public Boolean ignoreSimulationCountMismatch = null;

        @DataMember(Order=21)
        @Ignore()
        public ProcessingStatus finalStatus = null;
        
        public Long getId() { return id; }
        public Analysis setId(Long value) { this.id = value; return this; }
        public String getName() { return name; }
        public Analysis setName(String value) { this.name = value; return this; }
        public Date getModelAsOfDate() { return modelAsOfDate; }
        public Analysis setModelAsOfDate(Date value) { this.modelAsOfDate = value; return this; }
        public Integer getPerspectiveId() { return perspectiveId; }
        public Analysis setPerspectiveId(Integer value) { this.perspectiveId = value; return this; }
        public ArrayList<AnalysisConfiguration> getConfigurations() { return configurations; }
        public Analysis setConfigurations(ArrayList<AnalysisConfiguration> value) { this.configurations = value; return this; }
        public ArrayList<AnalysisDeal> getDeals() { return deals; }
        public Analysis setDeals(ArrayList<AnalysisDeal> value) { this.deals = value; return this; }
        public ArrayList<AnalysisEventIdFilter> getEventIdFilters() { return eventIdFilters; }
        public Analysis setEventIdFilters(ArrayList<AnalysisEventIdFilter> value) { this.eventIdFilters = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public Analysis setCreatedBy(String value) { this.createdBy = value; return this; }
        public Date getCreatedDateUtc() { return createdDateUtc; }
        public Analysis setCreatedDateUtc(Date value) { this.createdDateUtc = value; return this; }
        public Date getCompletedDateUtc() { return completedDateUtc; }
        public Analysis setCompletedDateUtc(Date value) { this.completedDateUtc = value; return this; }
        public Long getLegacyAnalysisId() { return legacyAnalysisId; }
        public Analysis setLegacyAnalysisId(Long value) { this.legacyAnalysisId = value; return this; }
        public ArrayList<MessageTracking> getResultPersistenceTracking() { return resultPersistenceTracking; }
        public Analysis setResultPersistenceTracking(ArrayList<MessageTracking> value) { this.resultPersistenceTracking = value; return this; }
        public ProcessingStatus getProcessingStatus() { return processingStatus; }
        public Analysis setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
        public Boolean isSaveResults() { return saveResults; }
        public Analysis setSaveResults(Boolean value) { this.saveResults = value; return this; }
        public String getEventSourceSystem() { return eventSourceSystem; }
        public Analysis setEventSourceSystem(String value) { this.eventSourceSystem = value; return this; }
        public Date getUpdatedDateUtc() { return updatedDateUtc; }
        public Analysis setUpdatedDateUtc(Date value) { this.updatedDateUtc = value; return this; }
        public Boolean getIsExpired() { return isExpired; }
        public Analysis setIsExpired(Boolean value) { this.isExpired = value; return this; }
        public UUID getRowIdentifier() { return rowIdentifier; }
        public Analysis setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
        public String getErrorMessage() { return errorMessage; }
        public Analysis setErrorMessage(String value) { this.errorMessage = value; return this; }
        public Boolean isIgnoreSimulationCountMismatch() { return ignoreSimulationCountMismatch; }
        public Analysis setIgnoreSimulationCountMismatch(Boolean value) { this.ignoreSimulationCountMismatch = value; return this; }
        public ProcessingStatus getFinalStatus() { return finalStatus; }
        public Analysis setFinalStatus(ProcessingStatus value) { this.finalStatus = value; return this; }
    }

    @DataContract
    public static class AnalysisConfiguration implements IObjectWithId, IHasAnalysisId
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public Long analysisId = null;

        @DataMember(Order=3)
        public Date windowStartDate = null;

        @DataMember(Order=4)
        public Date windowEndDate = null;

        @DataMember(Order=5)
        public Boolean standardEnabled = null;

        @DataMember(Order=6)
        public Boolean runOffEnabled = null;

        @DataMember(Order=7)
        public Boolean aggregateEnabled = null;

        @DataMember(Order=8)
        public Boolean occurrenceEnabled = null;

        @DataMember(Order=9)
        public Boolean nettEnabled = null;

        @DataMember(Order=10)
        public Boolean grossEnabled = null;

        @DataMember(Order=11)
        public BigDecimal tailIntensityPercentageStart = null;

        @DataMember(Order=12)
        public BigDecimal tailIntensityPercentageEnd = null;

        @DataMember(Order=13)
        public Integer metaRiskId = null;

        @DataMember(Order=14)
        public ResultOutputLevel outputLevel = null;

        @DataMember(Order=15)
        public ProcessingStatus processingStatus = null;

        @DataMember(Order=16)
        public BigDecimal eventLossFloorStartRange = null;

        @DataMember(Order=17)
        public BigDecimal eventLossFloorEndRange = null;

        @DataMember(Order=18)
        public ArrayList<AnalysisPortfolioEventSetConfiguration> analysisPortfolioEventSetConfigurations = null;

        @DataMember(Order=19)
        public UUID rowIdentifier = null;
        
        public Long getId() { return id; }
        public AnalysisConfiguration setId(Long value) { this.id = value; return this; }
        public Long getAnalysisId() { return analysisId; }
        public AnalysisConfiguration setAnalysisId(Long value) { this.analysisId = value; return this; }
        public Date getWindowStartDate() { return windowStartDate; }
        public AnalysisConfiguration setWindowStartDate(Date value) { this.windowStartDate = value; return this; }
        public Date getWindowEndDate() { return windowEndDate; }
        public AnalysisConfiguration setWindowEndDate(Date value) { this.windowEndDate = value; return this; }
        public Boolean isStandardEnabled() { return standardEnabled; }
        public AnalysisConfiguration setStandardEnabled(Boolean value) { this.standardEnabled = value; return this; }
        public Boolean isRunOffEnabled() { return runOffEnabled; }
        public AnalysisConfiguration setRunOffEnabled(Boolean value) { this.runOffEnabled = value; return this; }
        public Boolean isAggregateEnabled() { return aggregateEnabled; }
        public AnalysisConfiguration setAggregateEnabled(Boolean value) { this.aggregateEnabled = value; return this; }
        public Boolean isOccurrenceEnabled() { return occurrenceEnabled; }
        public AnalysisConfiguration setOccurrenceEnabled(Boolean value) { this.occurrenceEnabled = value; return this; }
        public Boolean isNettEnabled() { return nettEnabled; }
        public AnalysisConfiguration setNettEnabled(Boolean value) { this.nettEnabled = value; return this; }
        public Boolean isGrossEnabled() { return grossEnabled; }
        public AnalysisConfiguration setGrossEnabled(Boolean value) { this.grossEnabled = value; return this; }
        public BigDecimal getTailIntensityPercentageStart() { return tailIntensityPercentageStart; }
        public AnalysisConfiguration setTailIntensityPercentageStart(BigDecimal value) { this.tailIntensityPercentageStart = value; return this; }
        public BigDecimal getTailIntensityPercentageEnd() { return tailIntensityPercentageEnd; }
        public AnalysisConfiguration setTailIntensityPercentageEnd(BigDecimal value) { this.tailIntensityPercentageEnd = value; return this; }
        public Integer getMetaRiskId() { return metaRiskId; }
        public AnalysisConfiguration setMetaRiskId(Integer value) { this.metaRiskId = value; return this; }
        public ResultOutputLevel getOutputLevel() { return outputLevel; }
        public AnalysisConfiguration setOutputLevel(ResultOutputLevel value) { this.outputLevel = value; return this; }
        public ProcessingStatus getProcessingStatus() { return processingStatus; }
        public AnalysisConfiguration setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
        public BigDecimal getEventLossFloorStartRange() { return eventLossFloorStartRange; }
        public AnalysisConfiguration setEventLossFloorStartRange(BigDecimal value) { this.eventLossFloorStartRange = value; return this; }
        public BigDecimal getEventLossFloorEndRange() { return eventLossFloorEndRange; }
        public AnalysisConfiguration setEventLossFloorEndRange(BigDecimal value) { this.eventLossFloorEndRange = value; return this; }
        public ArrayList<AnalysisPortfolioEventSetConfiguration> getAnalysisPortfolioEventSetConfigurations() { return analysisPortfolioEventSetConfigurations; }
        public AnalysisConfiguration setAnalysisPortfolioEventSetConfigurations(ArrayList<AnalysisPortfolioEventSetConfiguration> value) { this.analysisPortfolioEventSetConfigurations = value; return this; }
        public UUID getRowIdentifier() { return rowIdentifier; }
        public AnalysisConfiguration setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
    }

    public static enum ResultOutputLevel
    {
        NotSet,
        PortfolioMetrics,
        Curve,
        Ylt,
        TailIntensity,
        DealYlt,
        DealElt,
        DealEltWithIndustryLoss,
        PortfolioElt,
        PortfolioEltWithIndustryLoss,
        EventSetGeneration,
        PortfolioRaps,
        DealRaps,
        PortfolioSepyIndustryLoss,
        DealSepyIndustryLoss;
    }

    public static enum ProcessingStatus
    {
        New(0),
        Processing(1),
        Failed(10),
        Successful(20);

        private final int value;
        ProcessingStatus(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class AnalysisPortfolioEventSetConfiguration implements IObjectWithId, IHasAnalysisId
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public Long analysisId = null;

        @DataMember(Order=3)
        public Long analysisConfigurationId = null;

        @DataMember(Order=4)
        public String portfolioName = null;

        @DataMember(Order=5)
        public String modelId = null;

        @DataMember(Order=6)
        public UUID rowIdentifier = null;
        
        public Long getId() { return id; }
        public AnalysisPortfolioEventSetConfiguration setId(Long value) { this.id = value; return this; }
        public Long getAnalysisId() { return analysisId; }
        public AnalysisPortfolioEventSetConfiguration setAnalysisId(Long value) { this.analysisId = value; return this; }
        public Long getAnalysisConfigurationId() { return analysisConfigurationId; }
        public AnalysisPortfolioEventSetConfiguration setAnalysisConfigurationId(Long value) { this.analysisConfigurationId = value; return this; }
        public String getPortfolioName() { return portfolioName; }
        public AnalysisPortfolioEventSetConfiguration setPortfolioName(String value) { this.portfolioName = value; return this; }
        public String getModelId() { return modelId; }
        public AnalysisPortfolioEventSetConfiguration setModelId(String value) { this.modelId = value; return this; }
        public UUID getRowIdentifier() { return rowIdentifier; }
        public AnalysisPortfolioEventSetConfiguration setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
    }

    @DataContract
    public static class AnalysisDeal implements IObjectWithId, IHasAnalysisId
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public Long analysisId = null;

        @DataMember(Order=3)
        public String sourceDealId = null;

        @DataMember(Order=4)
        public String dealRef = null;

        @DataMember(Order=5)
        public String sourceDealSystem = null;

        @DataMember(Order=6)
        public Long eventSetId = null;

        @DataMember(Order=7)
        public Double rol = null;

        @DataMember(Order=8)
        public Double limit = null;

        @DataMember(Order=9)
        public Date inceptionDate = null;

        @DataMember(Order=10)
        public Date expiryDate = null;

        @DataMember(Order=11)
        public TransactionType transactionType = null;

        @DataMember(Order=12)
        public ArrayList<AnalysisPortfolioAllocation> allocations = null;

        @DataMember(Order=13)
        public Integer perspectiveIdOverride = null;

        @DataMember(Order=14)
        public Long eventSetIdOverride = null;

        @DataMember(Order=15)
        public Date modelAsOfDateOverride = null;

        @DataMember(Order=16)
        public String sourceModelSystemOverride = null;

        @DataMember(Order=17)
        public String sourceModelIdOverride = null;

        @DataMember(Order=18)
        public String sourceEventSetIdOverride = null;

        @DataMember(Order=19)
        public String eventSourceSystemOverride = null;

        @DataMember(Order=20)
        public UUID rowIdentifier = null;
        
        public Long getId() { return id; }
        public AnalysisDeal setId(Long value) { this.id = value; return this; }
        public Long getAnalysisId() { return analysisId; }
        public AnalysisDeal setAnalysisId(Long value) { this.analysisId = value; return this; }
        public String getSourceDealId() { return sourceDealId; }
        public AnalysisDeal setSourceDealId(String value) { this.sourceDealId = value; return this; }
        public String getDealRef() { return dealRef; }
        public AnalysisDeal setDealRef(String value) { this.dealRef = value; return this; }
        public String getSourceDealSystem() { return sourceDealSystem; }
        public AnalysisDeal setSourceDealSystem(String value) { this.sourceDealSystem = value; return this; }
        public Long getEventSetId() { return eventSetId; }
        public AnalysisDeal setEventSetId(Long value) { this.eventSetId = value; return this; }
        public Double getRol() { return rol; }
        public AnalysisDeal setRol(Double value) { this.rol = value; return this; }
        public Double getLimit() { return limit; }
        public AnalysisDeal setLimit(Double value) { this.limit = value; return this; }
        public Date getInceptionDate() { return inceptionDate; }
        public AnalysisDeal setInceptionDate(Date value) { this.inceptionDate = value; return this; }
        public Date getExpiryDate() { return expiryDate; }
        public AnalysisDeal setExpiryDate(Date value) { this.expiryDate = value; return this; }
        public TransactionType getTransactionType() { return transactionType; }
        public AnalysisDeal setTransactionType(TransactionType value) { this.transactionType = value; return this; }
        public ArrayList<AnalysisPortfolioAllocation> getAllocations() { return allocations; }
        public AnalysisDeal setAllocations(ArrayList<AnalysisPortfolioAllocation> value) { this.allocations = value; return this; }
        public Integer getPerspectiveIdOverride() { return perspectiveIdOverride; }
        public AnalysisDeal setPerspectiveIdOverride(Integer value) { this.perspectiveIdOverride = value; return this; }
        public Long getEventSetIdOverride() { return eventSetIdOverride; }
        public AnalysisDeal setEventSetIdOverride(Long value) { this.eventSetIdOverride = value; return this; }
        public Date getModelAsOfDateOverride() { return modelAsOfDateOverride; }
        public AnalysisDeal setModelAsOfDateOverride(Date value) { this.modelAsOfDateOverride = value; return this; }
        public String getSourceModelSystemOverride() { return sourceModelSystemOverride; }
        public AnalysisDeal setSourceModelSystemOverride(String value) { this.sourceModelSystemOverride = value; return this; }
        public String getSourceModelIdOverride() { return sourceModelIdOverride; }
        public AnalysisDeal setSourceModelIdOverride(String value) { this.sourceModelIdOverride = value; return this; }
        public String getSourceEventSetIdOverride() { return sourceEventSetIdOverride; }
        public AnalysisDeal setSourceEventSetIdOverride(String value) { this.sourceEventSetIdOverride = value; return this; }
        public String getEventSourceSystemOverride() { return eventSourceSystemOverride; }
        public AnalysisDeal setEventSourceSystemOverride(String value) { this.eventSourceSystemOverride = value; return this; }
        public UUID getRowIdentifier() { return rowIdentifier; }
        public AnalysisDeal setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
    }

    public static enum TransactionType
    {
        NotSet,
        S,
        B;
    }

    @DataContract
    public static class AnalysisPortfolioAllocation implements IObjectWithId
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public Long analysisDealId = null;

        @DataMember(Order=3)
        @Validate(Validator="NotEmpty", Message="PortfolioName is mandatory")
        public String portfolioName = null;

        @DataMember(Order=4)
        public Double allocationPercentage = null;

        @DataMember(Order=5)
        public UUID rowIdentifier = null;
        
        public Long getId() { return id; }
        public AnalysisPortfolioAllocation setId(Long value) { this.id = value; return this; }
        public Long getAnalysisDealId() { return analysisDealId; }
        public AnalysisPortfolioAllocation setAnalysisDealId(Long value) { this.analysisDealId = value; return this; }
        public String getPortfolioName() { return portfolioName; }
        public AnalysisPortfolioAllocation setPortfolioName(String value) { this.portfolioName = value; return this; }
        public Double getAllocationPercentage() { return allocationPercentage; }
        public AnalysisPortfolioAllocation setAllocationPercentage(Double value) { this.allocationPercentage = value; return this; }
        public UUID getRowIdentifier() { return rowIdentifier; }
        public AnalysisPortfolioAllocation setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
    }

    @DataContract
    public static class AnalysisEventIdFilter implements IObjectWithId, IHasAnalysisId
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public Long analysisId = null;

        @DataMember(Order=3)
        public Integer eventSourceId = null;

        @DataMember(Order=4)
        public Long eventId = null;

        @DataMember(Order=5)
        public UUID rowIdentifier = null;
        
        public Long getId() { return id; }
        public AnalysisEventIdFilter setId(Long value) { this.id = value; return this; }
        public Long getAnalysisId() { return analysisId; }
        public AnalysisEventIdFilter setAnalysisId(Long value) { this.analysisId = value; return this; }
        public Integer getEventSourceId() { return eventSourceId; }
        public AnalysisEventIdFilter setEventSourceId(Integer value) { this.eventSourceId = value; return this; }
        public Long getEventId() { return eventId; }
        public AnalysisEventIdFilter setEventId(Long value) { this.eventId = value; return this; }
        public UUID getRowIdentifier() { return rowIdentifier; }
        public AnalysisEventIdFilter setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
    }

    @DataContract
    public static class MessageTracking
    {
        @DataMember(Order=1)
        public UUID id = null;

        @DataMember(Order=2)
        public Long analysisId = null;

        @DataMember(Order=3)
        public ProcessingStatus processingStatus = null;

        @DataMember(Order=4)
        public MessageType messageType = null;

        @DataMember(Order=5)
        public Date createdDateUtc = null;

        @DataMember(Order=6)
        public Date updatedDateUtc = null;
        
        public UUID getId() { return id; }
        public MessageTracking setId(UUID value) { this.id = value; return this; }
        public Long getAnalysisId() { return analysisId; }
        public MessageTracking setAnalysisId(Long value) { this.analysisId = value; return this; }
        public ProcessingStatus getProcessingStatus() { return processingStatus; }
        public MessageTracking setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
        public MessageType getMessageType() { return messageType; }
        public MessageTracking setMessageType(MessageType value) { this.messageType = value; return this; }
        public Date getCreatedDateUtc() { return createdDateUtc; }
        public MessageTracking setCreatedDateUtc(Date value) { this.createdDateUtc = value; return this; }
        public Date getUpdatedDateUtc() { return updatedDateUtc; }
        public MessageTracking setUpdatedDateUtc(Date value) { this.updatedDateUtc = value; return this; }
    }

    public static enum MessageType
    {
        NotSet,
        Persistence,
        Archival;
    }

    public static class RollupResponse
    {
        public Analysis analysis = null;
        public ArrayList<AnalysisPortfolioMetric> portfolioMetrics = null;
        public ArrayList<AnalysisResult> results = null;
        public ResponseStatus responseStatus = null;
        public ArrayList<String> unresolvedDealIds = null;
        public ArrayList<ValueTuple<String,String>> unlinkedDealIds = null;
        public String message = null;
        
        public Analysis getAnalysis() { return analysis; }
        public RollupResponse setAnalysis(Analysis value) { this.analysis = value; return this; }
        public ArrayList<AnalysisPortfolioMetric> getPortfolioMetrics() { return portfolioMetrics; }
        public RollupResponse setPortfolioMetrics(ArrayList<AnalysisPortfolioMetric> value) { this.portfolioMetrics = value; return this; }
        public ArrayList<AnalysisResult> getResults() { return results; }
        public RollupResponse setResults(ArrayList<AnalysisResult> value) { this.results = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public RollupResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public ArrayList<String> getUnresolvedDealIds() { return unresolvedDealIds; }
        public RollupResponse setUnresolvedDealIds(ArrayList<String> value) { this.unresolvedDealIds = value; return this; }
        public ArrayList<ValueTuple<String,String>> getUnlinkedDealIds() { return unlinkedDealIds; }
        public RollupResponse setUnlinkedDealIds(ArrayList<ValueTuple<String,String>> value) { this.unlinkedDealIds = value; return this; }
        public String getMessage() { return message; }
        public RollupResponse setMessage(String value) { this.message = value; return this; }
    }

    public static class AnalysisPortfolioMetric implements IHasAnalysisResultId
    {
        public AnalysisType analysisType = null;
        public SimulationLossPerspective simulationLossPerspective = null;
        public ReinsurancePremiumLossType reinsurancePremiumLossType = null;
        public String metricDescription = null;
        public String portfolioName = null;
        public Double metric = null;
        public Integer metaRiskId = null;
        public Integer simulation = null;
        public Long analysisResultId = null;
        
        public AnalysisType getAnalysisType() { return analysisType; }
        public AnalysisPortfolioMetric setAnalysisType(AnalysisType value) { this.analysisType = value; return this; }
        public SimulationLossPerspective getSimulationLossPerspective() { return simulationLossPerspective; }
        public AnalysisPortfolioMetric setSimulationLossPerspective(SimulationLossPerspective value) { this.simulationLossPerspective = value; return this; }
        public ReinsurancePremiumLossType getReinsurancePremiumLossType() { return reinsurancePremiumLossType; }
        public AnalysisPortfolioMetric setReinsurancePremiumLossType(ReinsurancePremiumLossType value) { this.reinsurancePremiumLossType = value; return this; }
        public String getMetricDescription() { return metricDescription; }
        public AnalysisPortfolioMetric setMetricDescription(String value) { this.metricDescription = value; return this; }
        public String getPortfolioName() { return portfolioName; }
        public AnalysisPortfolioMetric setPortfolioName(String value) { this.portfolioName = value; return this; }
        public Double getMetric() { return metric; }
        public AnalysisPortfolioMetric setMetric(Double value) { this.metric = value; return this; }
        public Integer getMetaRiskId() { return metaRiskId; }
        public AnalysisPortfolioMetric setMetaRiskId(Integer value) { this.metaRiskId = value; return this; }
        public Integer getSimulation() { return simulation; }
        public AnalysisPortfolioMetric setSimulation(Integer value) { this.simulation = value; return this; }
        public Long getAnalysisResultId() { return analysisResultId; }
        public AnalysisPortfolioMetric setAnalysisResultId(Long value) { this.analysisResultId = value; return this; }
    }

    public static enum AnalysisType
    {
        NotSet,
        Standard,
        RunOff;
    }

    public static enum SimulationLossPerspective
    {
        NotSet,
        Agg,
        Occ;
    }

    public static enum ReinsurancePremiumLossType
    {
        NotSet,
        Net,
        Gross;
    }

    @DataContract
    public static class AnalysisResult implements IObjectWithId
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public Long analysisId = null;

        @DataMember(Order=3)
        public Long analysisConfigurationId = null;

        @DataMember(Order=4)
        public String container = null;

        @DataMember(Order=5)
        public String blobName = null;

        @DataMember(Order=6)
        public String resultTableName = null;

        @DataMember(Order=7)
        public AnalysisType analysisType = null;

        @DataMember(Order=8)
        public SimulationLossPerspective simulationLossPerspective = null;

        @DataMember(Order=9)
        public ReinsurancePremiumLossType reinsurancePremiumLossType = null;

        @DataMember(Order=10)
        public ResultOutputLevel outputLevel = null;

        @DataMember(Order=11)
        public Integer metaRiskId = null;

        @DataMember(Order=12)
        public ArrayList<AnalysisPortfolioEventSetResult> analysisPortfolioEventSetResults = null;

        @DataMember(Order=13)
        public UUID rowIdentifier = null;
        
        public Long getId() { return id; }
        public AnalysisResult setId(Long value) { this.id = value; return this; }
        public Long getAnalysisId() { return analysisId; }
        public AnalysisResult setAnalysisId(Long value) { this.analysisId = value; return this; }
        public Long getAnalysisConfigurationId() { return analysisConfigurationId; }
        public AnalysisResult setAnalysisConfigurationId(Long value) { this.analysisConfigurationId = value; return this; }
        public String getContainer() { return container; }
        public AnalysisResult setContainer(String value) { this.container = value; return this; }
        public String getBlobName() { return blobName; }
        public AnalysisResult setBlobName(String value) { this.blobName = value; return this; }
        public String getResultTableName() { return resultTableName; }
        public AnalysisResult setResultTableName(String value) { this.resultTableName = value; return this; }
        public AnalysisType getAnalysisType() { return analysisType; }
        public AnalysisResult setAnalysisType(AnalysisType value) { this.analysisType = value; return this; }
        public SimulationLossPerspective getSimulationLossPerspective() { return simulationLossPerspective; }
        public AnalysisResult setSimulationLossPerspective(SimulationLossPerspective value) { this.simulationLossPerspective = value; return this; }
        public ReinsurancePremiumLossType getReinsurancePremiumLossType() { return reinsurancePremiumLossType; }
        public AnalysisResult setReinsurancePremiumLossType(ReinsurancePremiumLossType value) { this.reinsurancePremiumLossType = value; return this; }
        public ResultOutputLevel getOutputLevel() { return outputLevel; }
        public AnalysisResult setOutputLevel(ResultOutputLevel value) { this.outputLevel = value; return this; }
        public Integer getMetaRiskId() { return metaRiskId; }
        public AnalysisResult setMetaRiskId(Integer value) { this.metaRiskId = value; return this; }
        public ArrayList<AnalysisPortfolioEventSetResult> getAnalysisPortfolioEventSetResults() { return analysisPortfolioEventSetResults; }
        public AnalysisResult setAnalysisPortfolioEventSetResults(ArrayList<AnalysisPortfolioEventSetResult> value) { this.analysisPortfolioEventSetResults = value; return this; }
        public UUID getRowIdentifier() { return rowIdentifier; }
        public AnalysisResult setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
    }

    public static class AnalysisPortfolioEventSetResult implements IObjectWithId, IHasAnalysisId
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public Long analysisId = null;

        @DataMember(Order=3)
        public Long analysisPortfolioEventSetConfigurationId = null;

        @DataMember(Order=4)
        public Long analysisResultId = null;

        @DataMember(Order=5)
        public String portfolioName = null;

        @DataMember(Order=6)
        public UUID rowIdentifier = null;
        
        public Long getId() { return id; }
        public AnalysisPortfolioEventSetResult setId(Long value) { this.id = value; return this; }
        public Long getAnalysisId() { return analysisId; }
        public AnalysisPortfolioEventSetResult setAnalysisId(Long value) { this.analysisId = value; return this; }
        public Long getAnalysisPortfolioEventSetConfigurationId() { return analysisPortfolioEventSetConfigurationId; }
        public AnalysisPortfolioEventSetResult setAnalysisPortfolioEventSetConfigurationId(Long value) { this.analysisPortfolioEventSetConfigurationId = value; return this; }
        public Long getAnalysisResultId() { return analysisResultId; }
        public AnalysisPortfolioEventSetResult setAnalysisResultId(Long value) { this.analysisResultId = value; return this; }
        public String getPortfolioName() { return portfolioName; }
        public AnalysisPortfolioEventSetResult setPortfolioName(String value) { this.portfolioName = value; return this; }
        public UUID getRowIdentifier() { return rowIdentifier; }
        public AnalysisPortfolioEventSetResult setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
    }

}

Java RollupRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/riskstore/rollup HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	analysis: 
	{
		id: 0,
		name: String,
		modelAsOfDate: 0001-01-01,
		perspectiveId: 0,
		configurations: 
		[
			{
				id: 0,
				analysisId: 0,
				windowStartDate: 0001-01-01,
				windowEndDate: 0001-01-01,
				standardEnabled: False,
				runOffEnabled: False,
				aggregateEnabled: False,
				occurrenceEnabled: False,
				nettEnabled: False,
				grossEnabled: False,
				tailIntensityPercentageStart: 0,
				tailIntensityPercentageEnd: 0,
				metaRiskId: 0,
				outputLevel: NotSet,
				processingStatus: New,
				eventLossFloorStartRange: 0,
				eventLossFloorEndRange: 0,
				analysisPortfolioEventSetConfigurations: 
				[
					{
						id: 0,
						analysisId: 0,
						analysisConfigurationId: 0,
						portfolioName: String,
						modelId: String,
						rowIdentifier: 00000000000000000000000000000000
					}
				],
				rowIdentifier: 00000000000000000000000000000000
			}
		],
		deals: 
		[
			{
				id: 0,
				analysisId: 0,
				sourceDealId: String,
				dealRef: String,
				sourceDealSystem: String,
				eventSetId: 0,
				rol: 0,
				limit: 0,
				inceptionDate: 0001-01-01,
				expiryDate: 0001-01-01,
				transactionType: NotSet,
				allocations: 
				[
					{
						id: 0,
						analysisDealId: 0,
						portfolioName: String,
						allocationPercentage: 0,
						rowIdentifier: 00000000000000000000000000000000
					}
				],
				perspectiveIdOverride: 0,
				eventSetIdOverride: 0,
				modelAsOfDateOverride: 0001-01-01,
				sourceModelSystemOverride: String,
				sourceModelIdOverride: String,
				sourceEventSetIdOverride: String,
				eventSourceSystemOverride: String,
				rowIdentifier: 00000000000000000000000000000000
			}
		],
		eventIdFilters: 
		[
			{
				id: 0,
				analysisId: 0,
				eventSourceId: 0,
				eventId: 0,
				rowIdentifier: 00000000000000000000000000000000
			}
		],
		createdBy: String,
		createdDateUtc: 0001-01-01,
		completedDateUtc: 0001-01-01,
		legacyAnalysisId: 0,
		resultPersistenceTracking: 
		[
			{
				id: 00000000000000000000000000000000,
				analysisId: 0,
				processingStatus: New,
				messageType: NotSet,
				createdDateUtc: 0001-01-01,
				updatedDateUtc: 0001-01-01
			}
		],
		processingStatus: New,
		saveResults: False,
		eventSourceSystem: String,
		updatedDateUtc: 0001-01-01,
		isExpired: False,
		rowIdentifier: 00000000000000000000000000000000,
		errorMessage: String,
		ignoreSimulationCountMismatch: False,
		finalStatus: New
	},
	version: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	analysis: 
	{
		id: 0,
		name: String,
		modelAsOfDate: 0001-01-01,
		perspectiveId: 0,
		configurations: 
		[
			{
				id: 0,
				analysisId: 0,
				windowStartDate: 0001-01-01,
				windowEndDate: 0001-01-01,
				standardEnabled: False,
				runOffEnabled: False,
				aggregateEnabled: False,
				occurrenceEnabled: False,
				nettEnabled: False,
				grossEnabled: False,
				tailIntensityPercentageStart: 0,
				tailIntensityPercentageEnd: 0,
				metaRiskId: 0,
				outputLevel: NotSet,
				processingStatus: New,
				eventLossFloorStartRange: 0,
				eventLossFloorEndRange: 0,
				analysisPortfolioEventSetConfigurations: 
				[
					{
						id: 0,
						analysisId: 0,
						analysisConfigurationId: 0,
						portfolioName: String,
						modelId: String,
						rowIdentifier: 00000000000000000000000000000000
					}
				],
				rowIdentifier: 00000000000000000000000000000000
			}
		],
		deals: 
		[
			{
				id: 0,
				analysisId: 0,
				sourceDealId: String,
				dealRef: String,
				sourceDealSystem: String,
				eventSetId: 0,
				rol: 0,
				limit: 0,
				inceptionDate: 0001-01-01,
				expiryDate: 0001-01-01,
				transactionType: NotSet,
				allocations: 
				[
					{
						id: 0,
						analysisDealId: 0,
						portfolioName: String,
						allocationPercentage: 0,
						rowIdentifier: 00000000000000000000000000000000
					}
				],
				perspectiveIdOverride: 0,
				eventSetIdOverride: 0,
				modelAsOfDateOverride: 0001-01-01,
				sourceModelSystemOverride: String,
				sourceModelIdOverride: String,
				sourceEventSetIdOverride: String,
				eventSourceSystemOverride: String,
				rowIdentifier: 00000000000000000000000000000000
			}
		],
		eventIdFilters: 
		[
			{
				id: 0,
				analysisId: 0,
				eventSourceId: 0,
				eventId: 0,
				rowIdentifier: 00000000000000000000000000000000
			}
		],
		createdBy: String,
		createdDateUtc: 0001-01-01,
		completedDateUtc: 0001-01-01,
		legacyAnalysisId: 0,
		resultPersistenceTracking: 
		[
			{
				id: 00000000000000000000000000000000,
				analysisId: 0,
				processingStatus: New,
				messageType: NotSet,
				createdDateUtc: 0001-01-01,
				updatedDateUtc: 0001-01-01
			}
		],
		processingStatus: New,
		saveResults: False,
		eventSourceSystem: String,
		updatedDateUtc: 0001-01-01,
		isExpired: False,
		rowIdentifier: 00000000000000000000000000000000,
		errorMessage: String,
		ignoreSimulationCountMismatch: False,
		finalStatus: New
	},
	portfolioMetrics: 
	[
		{
			analysisType: NotSet,
			simulationLossPerspective: NotSet,
			reinsurancePremiumLossType: NotSet,
			metricDescription: String,
			portfolioName: String,
			metric: 0,
			metaRiskId: 0,
			simulation: 0,
			analysisResultId: 0
		}
	],
	results: 
	[
		{
			id: 0,
			analysisId: 0,
			analysisConfigurationId: 0,
			container: String,
			blobName: String,
			resultTableName: String,
			analysisType: NotSet,
			simulationLossPerspective: NotSet,
			reinsurancePremiumLossType: NotSet,
			outputLevel: NotSet,
			metaRiskId: 0,
			analysisPortfolioEventSetResults: 
			[
				{
					id: 0,
					analysisId: 0,
					analysisPortfolioEventSetConfigurationId: 0,
					analysisResultId: 0,
					portfolioName: String,
					rowIdentifier: 00000000000000000000000000000000
				}
			],
			rowIdentifier: 00000000000000000000000000000000
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	},
	unresolvedDealIds: 
	[
		String
	],
	unlinkedDealIds: 
	[
		"(, )"
	],
	message: String
}