| GET | /v1/coverage/surge/preview |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CoverageSurgePreviewRequest
{
public Date ScopeDate = null;
public Date getScopeDate() { return ScopeDate; }
public CoverageSurgePreviewRequest setScopeDate(Date value) { this.ScopeDate = value; return this; }
}
public static class CoverageSurgePreviewResponse
{
public String Banner = null;
public String Title = null;
public String Sub = null;
public ArrayList<CoverageSurgeGap> Items = new ArrayList<CoverageSurgeGap>();
public Integer PoolCount = null;
public ArrayList<CoverageEffect> Conseq = new ArrayList<CoverageEffect>();
public String GuardLine = null;
public ResponseStatus ResponseStatus = null;
public String getBanner() { return Banner; }
public CoverageSurgePreviewResponse setBanner(String value) { this.Banner = value; return this; }
public String getTitle() { return Title; }
public CoverageSurgePreviewResponse setTitle(String value) { this.Title = value; return this; }
public String getSub() { return Sub; }
public CoverageSurgePreviewResponse setSub(String value) { this.Sub = value; return this; }
public ArrayList<CoverageSurgeGap> getItems() { return Items; }
public CoverageSurgePreviewResponse setItems(ArrayList<CoverageSurgeGap> value) { this.Items = value; return this; }
public Integer getPoolCount() { return PoolCount; }
public CoverageSurgePreviewResponse setPoolCount(Integer value) { this.PoolCount = value; return this; }
public ArrayList<CoverageEffect> getConseq() { return Conseq; }
public CoverageSurgePreviewResponse setConseq(ArrayList<CoverageEffect> value) { this.Conseq = value; return this; }
public String getGuardLine() { return GuardLine; }
public CoverageSurgePreviewResponse setGuardLine(String value) { this.GuardLine = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CoverageSurgePreviewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class CoverageSurgeGap
{
public Integer CoverageGapId = null;
public String Label = null;
public String Note = null;
public String Track = null;
public Integer getCoverageGapId() { return CoverageGapId; }
public CoverageSurgeGap setCoverageGapId(Integer value) { this.CoverageGapId = value; return this; }
public String getLabel() { return Label; }
public CoverageSurgeGap setLabel(String value) { this.Label = value; return this; }
public String getNote() { return Note; }
public CoverageSurgeGap setNote(String value) { this.Note = value; return this; }
public String getTrack() { return Track; }
public CoverageSurgeGap setTrack(String value) { this.Track = value; return this; }
}
public static class CoverageEffect
{
public String Icon = null;
public String Text = null;
public String RuleId = null;
public CoverageExplanation Expl = null;
public String getIcon() { return Icon; }
public CoverageEffect setIcon(String value) { this.Icon = value; return this; }
public String getText() { return Text; }
public CoverageEffect setText(String value) { this.Text = value; return this; }
public String getRuleId() { return RuleId; }
public CoverageEffect setRuleId(String value) { this.RuleId = value; return this; }
public CoverageExplanation getExpl() { return Expl; }
public CoverageEffect setExpl(CoverageExplanation value) { this.Expl = value; return this; }
}
public static class CoverageExplanation
{
public String PlainSentence = null;
public String RuleId = null;
public String RuleName = null;
public String Demand = null;
public CoverageExplanationSource Source = null;
public String Kind = null;
public String WhyItExists = null;
public String WhatWouldChangeIt = null;
public CoverageExplanationOverride Override = null;
public String Drill = null;
public String getPlainSentence() { return PlainSentence; }
public CoverageExplanation setPlainSentence(String value) { this.PlainSentence = value; return this; }
public String getRuleId() { return RuleId; }
public CoverageExplanation setRuleId(String value) { this.RuleId = value; return this; }
public String getRuleName() { return RuleName; }
public CoverageExplanation setRuleName(String value) { this.RuleName = value; return this; }
public String getDemand() { return Demand; }
public CoverageExplanation setDemand(String value) { this.Demand = value; return this; }
public CoverageExplanationSource getSource() { return Source; }
public CoverageExplanation setSource(CoverageExplanationSource value) { this.Source = value; return this; }
public String getKind() { return Kind; }
public CoverageExplanation setKind(String value) { this.Kind = value; return this; }
public String getWhyItExists() { return WhyItExists; }
public CoverageExplanation setWhyItExists(String value) { this.WhyItExists = value; return this; }
public String getWhatWouldChangeIt() { return WhatWouldChangeIt; }
public CoverageExplanation setWhatWouldChangeIt(String value) { this.WhatWouldChangeIt = value; return this; }
public CoverageExplanationOverride getOverride() { return Override; }
public CoverageExplanation setOverride(CoverageExplanationOverride value) { this.Override = value; return this; }
public String getDrill() { return Drill; }
public CoverageExplanation setDrill(String value) { this.Drill = value; return this; }
}
public static class CoverageExplanationSource
{
public String PolicyName = null;
public String CascadeLevel = null;
public String getPolicyName() { return PolicyName; }
public CoverageExplanationSource setPolicyName(String value) { this.PolicyName = value; return this; }
public String getCascadeLevel() { return CascadeLevel; }
public CoverageExplanationSource setCascadeLevel(String value) { this.CascadeLevel = value; return this; }
}
public static class CoverageExplanationOverride
{
public String Who = null;
public String Consequence = null;
public String getWho() { return Who; }
public CoverageExplanationOverride setWho(String value) { this.Who = value; return this; }
public String getConsequence() { return Consequence; }
public CoverageExplanationOverride setConsequence(String value) { this.Consequence = value; return this; }
}
}
Java CoverageSurgePreviewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/coverage/surge/preview HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Banner: String,
Title: String,
Sub: String,
Items:
[
{
CoverageGapId: 0,
Label: String,
Note: String,
Track: String
}
],
PoolCount: 0,
Conseq:
[
{
Icon: String,
Text: String,
RuleId: String,
Expl:
{
PlainSentence: String,
RuleId: String,
RuleName: String,
Demand: String,
Source:
{
PolicyName: String,
CascadeLevel: String
},
Kind: String,
WhyItExists: String,
WhatWouldChangeIt: String,
Override:
{
Who: String,
Consequence: String
},
Drill: String
}
}
],
GuardLine: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}