/* Options: Date: 2026-08-01 03:06:47 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CoveragePolicySaveRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/v1/coverage/policies/{CoveragePolicyId}", Verbs="POST") public static class CoveragePolicySaveRequest implements IReturn { public Integer CoveragePolicyId = null; public CoveragePolicyDoc Doc = null; public String ChangeNote = null; public Integer getCoveragePolicyId() { return CoveragePolicyId; } public CoveragePolicySaveRequest setCoveragePolicyId(Integer value) { this.CoveragePolicyId = value; return this; } public CoveragePolicyDoc getDoc() { return Doc; } public CoveragePolicySaveRequest setDoc(CoveragePolicyDoc value) { this.Doc = value; return this; } public String getChangeNote() { return ChangeNote; } public CoveragePolicySaveRequest setChangeNote(String value) { this.ChangeNote = value; return this; } private static Object responseType = CoverageCascadeResponse.class; public Object getResponseType() { return responseType; } } public static class CoverageCascadeResponse { public CoveragePolicy Policy = null; public CoveragePolicyDoc Doc = null; public Integer VersionNumber = null; public ArrayList Versions = new ArrayList(); public ResponseStatus ResponseStatus = null; public CoveragePolicy getPolicy() { return Policy; } public CoverageCascadeResponse setPolicy(CoveragePolicy value) { this.Policy = value; return this; } public CoveragePolicyDoc getDoc() { return Doc; } public CoverageCascadeResponse setDoc(CoveragePolicyDoc value) { this.Doc = value; return this; } public Integer getVersionNumber() { return VersionNumber; } public CoverageCascadeResponse setVersionNumber(Integer value) { this.VersionNumber = value; return this; } public ArrayList getVersions() { return Versions; } public CoverageCascadeResponse setVersions(ArrayList value) { this.Versions = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public CoverageCascadeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class CoveragePolicyDoc { public String Intro = null; public String LockLine = null; public String TemplateName = null; public CoveragePolicyPrefs Prefs = null; public ArrayList Rules = new ArrayList(); public String getIntro() { return Intro; } public CoveragePolicyDoc setIntro(String value) { this.Intro = value; return this; } public String getLockLine() { return LockLine; } public CoveragePolicyDoc setLockLine(String value) { this.LockLine = value; return this; } public String getTemplateName() { return TemplateName; } public CoveragePolicyDoc setTemplateName(String value) { this.TemplateName = value; return this; } public CoveragePolicyPrefs getPrefs() { return Prefs; } public CoveragePolicyDoc setPrefs(CoveragePolicyPrefs value) { this.Prefs = value; return this; } public ArrayList getRules() { return Rules; } public CoveragePolicyDoc setRules(ArrayList value) { this.Rules = value; return this; } } public static class CoveragePolicy { public Integer CoveragePolicyId = null; public UUID CoveragePolicyUID = null; public String Name = null; public String ScopeLevel = null; public UUID BranchId = null; public String BranchName = null; public String WorkTypeKey = null; public Integer JobID = null; public String JobName = null; public Integer CurrentVersion = null; public Boolean IsActive = null; public Date CreatedAt = null; public Date UpdatedAt = null; public Integer getCoveragePolicyId() { return CoveragePolicyId; } public CoveragePolicy setCoveragePolicyId(Integer value) { this.CoveragePolicyId = value; return this; } public UUID getCoveragePolicyUID() { return CoveragePolicyUID; } public CoveragePolicy setCoveragePolicyUID(UUID value) { this.CoveragePolicyUID = value; return this; } public String getName() { return Name; } public CoveragePolicy setName(String value) { this.Name = value; return this; } public String getScopeLevel() { return ScopeLevel; } public CoveragePolicy setScopeLevel(String value) { this.ScopeLevel = value; return this; } public UUID getBranchId() { return BranchId; } public CoveragePolicy setBranchId(UUID value) { this.BranchId = value; return this; } public String getBranchName() { return BranchName; } public CoveragePolicy setBranchName(String value) { this.BranchName = value; return this; } public String getWorkTypeKey() { return WorkTypeKey; } public CoveragePolicy setWorkTypeKey(String value) { this.WorkTypeKey = value; return this; } public Integer getJobID() { return JobID; } public CoveragePolicy setJobID(Integer value) { this.JobID = value; return this; } public String getJobName() { return JobName; } public CoveragePolicy setJobName(String value) { this.JobName = value; return this; } public Integer getCurrentVersion() { return CurrentVersion; } public CoveragePolicy setCurrentVersion(Integer value) { this.CurrentVersion = value; return this; } public Boolean getIsActive() { return IsActive; } public CoveragePolicy setIsActive(Boolean value) { this.IsActive = value; return this; } public Date getCreatedAt() { return CreatedAt; } public CoveragePolicy setCreatedAt(Date value) { this.CreatedAt = value; return this; } public Date getUpdatedAt() { return UpdatedAt; } public CoveragePolicy setUpdatedAt(Date value) { this.UpdatedAt = value; return this; } } public static class CoveragePolicyVersionInfo { public Integer CoveragePolicyVersionId = null; public Integer CoveragePolicyId = null; public Integer VersionNumber = null; public String ChangeNote = null; public String ChangedByName = null; public Date CreatedAtUtc = null; public CoveragePolicyDoc Doc = null; public Integer getCoveragePolicyVersionId() { return CoveragePolicyVersionId; } public CoveragePolicyVersionInfo setCoveragePolicyVersionId(Integer value) { this.CoveragePolicyVersionId = value; return this; } public Integer getCoveragePolicyId() { return CoveragePolicyId; } public CoveragePolicyVersionInfo setCoveragePolicyId(Integer value) { this.CoveragePolicyId = value; return this; } public Integer getVersionNumber() { return VersionNumber; } public CoveragePolicyVersionInfo setVersionNumber(Integer value) { this.VersionNumber = value; return this; } public String getChangeNote() { return ChangeNote; } public CoveragePolicyVersionInfo setChangeNote(String value) { this.ChangeNote = value; return this; } public String getChangedByName() { return ChangedByName; } public CoveragePolicyVersionInfo setChangedByName(String value) { this.ChangedByName = value; return this; } public Date getCreatedAtUtc() { return CreatedAtUtc; } public CoveragePolicyVersionInfo setCreatedAtUtc(Date value) { this.CreatedAtUtc = value; return this; } public CoveragePolicyDoc getDoc() { return Doc; } public CoveragePolicyVersionInfo setDoc(CoveragePolicyDoc value) { this.Doc = value; return this; } } public static class CoveragePolicyPrefs { public String AssignmentMode = null; public Integer RestHours = null; public Integer OtThresholdHours = null; public Integer RingWaitMinutes = null; public String QuietStart = null; public String QuietEnd = null; public Boolean RescheduleAllowed = null; public String QuietMode = null; public ArrayList Rings = new ArrayList(); public String getAssignmentMode() { return AssignmentMode; } public CoveragePolicyPrefs setAssignmentMode(String value) { this.AssignmentMode = value; return this; } public Integer getRestHours() { return RestHours; } public CoveragePolicyPrefs setRestHours(Integer value) { this.RestHours = value; return this; } public Integer getOtThresholdHours() { return OtThresholdHours; } public CoveragePolicyPrefs setOtThresholdHours(Integer value) { this.OtThresholdHours = value; return this; } public Integer getRingWaitMinutes() { return RingWaitMinutes; } public CoveragePolicyPrefs setRingWaitMinutes(Integer value) { this.RingWaitMinutes = value; return this; } public String getQuietStart() { return QuietStart; } public CoveragePolicyPrefs setQuietStart(String value) { this.QuietStart = value; return this; } public String getQuietEnd() { return QuietEnd; } public CoveragePolicyPrefs setQuietEnd(String value) { this.QuietEnd = value; return this; } public Boolean isRescheduleAllowed() { return RescheduleAllowed; } public CoveragePolicyPrefs setRescheduleAllowed(Boolean value) { this.RescheduleAllowed = value; return this; } public String getQuietMode() { return QuietMode; } public CoveragePolicyPrefs setQuietMode(String value) { this.QuietMode = value; return this; } public ArrayList getRings() { return Rings; } public CoveragePolicyPrefs setRings(ArrayList value) { this.Rings = value; return this; } } public static class CoverageRuleDef { public String RuleId = null; public String Name = null; public String Kind = null; public String Demand = null; public String SourcePolicyName = null; public String CascadeLevel = null; public String Why = null; public String Change = null; public String OverrideWho = null; public String OverrideConsequence = null; public String NoNote = null; public HashMap Params = new HashMap(); public ArrayList Doc = new ArrayList(); public CoverageRuleTune Tune = null; public String getRuleId() { return RuleId; } public CoverageRuleDef setRuleId(String value) { this.RuleId = value; return this; } public String getName() { return Name; } public CoverageRuleDef setName(String value) { this.Name = value; return this; } public String getKind() { return Kind; } public CoverageRuleDef setKind(String value) { this.Kind = value; return this; } public String getDemand() { return Demand; } public CoverageRuleDef setDemand(String value) { this.Demand = value; return this; } public String getSourcePolicyName() { return SourcePolicyName; } public CoverageRuleDef setSourcePolicyName(String value) { this.SourcePolicyName = value; return this; } public String getCascadeLevel() { return CascadeLevel; } public CoverageRuleDef setCascadeLevel(String value) { this.CascadeLevel = value; return this; } public String getWhy() { return Why; } public CoverageRuleDef setWhy(String value) { this.Why = value; return this; } public String getChange() { return Change; } public CoverageRuleDef setChange(String value) { this.Change = value; return this; } public String getOverrideWho() { return OverrideWho; } public CoverageRuleDef setOverrideWho(String value) { this.OverrideWho = value; return this; } public String getOverrideConsequence() { return OverrideConsequence; } public CoverageRuleDef setOverrideConsequence(String value) { this.OverrideConsequence = value; return this; } public String getNoNote() { return NoNote; } public CoverageRuleDef setNoNote(String value) { this.NoNote = value; return this; } public HashMap getParams() { return Params; } public CoverageRuleDef setParams(HashMap value) { this.Params = value; return this; } public ArrayList getDoc() { return Doc; } public CoverageRuleDef setDoc(ArrayList value) { this.Doc = value; return this; } public CoverageRuleTune getTune() { return Tune; } public CoverageRuleDef setTune(CoverageRuleTune value) { this.Tune = value; return this; } } public static class CoverageRingDef { public String Key = null; public String Label = null; public String Sub = null; public Integer WaitMinutes = null; public Boolean Enabled = null; public String getKey() { return Key; } public CoverageRingDef setKey(String value) { this.Key = value; return this; } public String getLabel() { return Label; } public CoverageRingDef setLabel(String value) { this.Label = value; return this; } public String getSub() { return Sub; } public CoverageRingDef setSub(String value) { this.Sub = value; return this; } public Integer getWaitMinutes() { return WaitMinutes; } public CoverageRingDef setWaitMinutes(Integer value) { this.WaitMinutes = value; return this; } public Boolean isEnabled() { return Enabled; } public CoverageRingDef setEnabled(Boolean value) { this.Enabled = value; return this; } } public static class CoverageRuleDocSection { public String H = null; public String T = null; public String getH() { return H; } public CoverageRuleDocSection setH(String value) { this.H = value; return this; } public String getT() { return T; } public CoverageRuleDocSection setT(String value) { this.T = value; return this; } } public static class CoverageRuleTune { public String Intro = null; public ArrayList Options = new ArrayList(); public String getIntro() { return Intro; } public CoverageRuleTune setIntro(String value) { this.Intro = value; return this; } public ArrayList getOptions() { return Options; } public CoverageRuleTune setOptions(ArrayList value) { this.Options = value; return this; } } public static class CoverageRuleTuneOption { public String Label = null; public String Sub = null; public String getLabel() { return Label; } public CoverageRuleTuneOption setLabel(String value) { this.Label = value; return this; } public String getSub() { return Sub; } public CoverageRuleTuneOption setSub(String value) { this.Sub = value; return this; } } }