Record Class SiteDriftReport
java.lang.Object
java.lang.Record
network.ike.plugin.reconcile.SiteDriftReport
- Record Components:
dimension- human-readable dimension namehasDrift- true if reconciliation would change statesummary- one-line drift summary (empty when no drift)detailLines- additional context lines (empty list ok)defaultAction- one-line description of what apply would dooptOutCommand- exact copy-paste command to skip this dimension
public record SiteDriftReport(String dimension, boolean hasDrift, String summary, List<String> detailLines, String defaultAction, String optOutCommand)
extends Record
Report from a
SiteReconciler.detect(SiteContext) call describing what (if
anything) the reconciler would change on site-publish.
The optOutCommand is rendered inline beside the
dimension in site-draft output so users can copy-paste
to opt out without first looking up the flag name elsewhere.
Parallels network.ike.plugin.ws.reconcile.DriftReport
in the workspace plugin — see SiteReconciler for why the
two are intentionally not shared.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultActionrecord component.Returns the value of thedetailLinesrecord component.Returns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhasDrift()Returns the value of thehasDriftrecord component.final inthashCode()Returns a hash code value for this object.static SiteDriftReportConvenience constructor for the "no drift" case.Returns the value of theoptOutCommandrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SiteDriftReport
public SiteDriftReport(String dimension, boolean hasDrift, String summary, List<String> detailLines, String defaultAction, String optOutCommand) Creates an instance of aSiteDriftReportrecord class.- Parameters:
dimension- the value for thedimensionrecord componenthasDrift- the value for thehasDriftrecord componentsummary- the value for thesummaryrecord componentdetailLines- the value for thedetailLinesrecord componentdefaultAction- the value for thedefaultActionrecord componentoptOutCommand- the value for theoptOutCommandrecord component
-
-
Method Details
-
noDrift
Convenience constructor for the "no drift" case.- Parameters:
dimension- the dimension name- Returns:
- a report with
hasDrift = false
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
dimension
-
hasDrift
-
summary
-
detailLines
Returns the value of thedetailLinesrecord component.- Returns:
- the value of the
detailLinesrecord component
-
defaultAction
Returns the value of thedefaultActionrecord component.- Returns:
- the value of the
defaultActionrecord component
-
optOutCommand
Returns the value of theoptOutCommandrecord component.- Returns:
- the value of the
optOutCommandrecord component
-