Record Class TemplateAdaptationResult
java.lang.Object
java.lang.Record
com.cloudforge.core.local.TemplateAdaptationResult
public record TemplateAdaptationResult(com.fasterxml.jackson.databind.node.ObjectNode template, List<TemplateAdaptation> adaptations)
extends Record
Adapted CloudFormation template plus an explicit adaptation audit trail.
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateAdaptationResult(com.fasterxml.jackson.databind.node.ObjectNode template, List<TemplateAdaptation> adaptations) Creates an instance of aTemplateAdaptationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadaptationsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.outputValue(String outputKey) com.fasterxml.jackson.databind.node.ObjectNodetemplate()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemplateAdaptationResult
public TemplateAdaptationResult(com.fasterxml.jackson.databind.node.ObjectNode template, List<TemplateAdaptation> adaptations) Creates an instance of aTemplateAdaptationResultrecord class.- Parameters:
template- the value for thetemplaterecord componentadaptations- the value for theadaptationsrecord component
-
-
Method Details
-
hasAdaptations
public boolean hasAdaptations() -
outputValue
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
template
public com.fasterxml.jackson.databind.node.ObjectNode template()Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
adaptations
Returns the value of theadaptationsrecord component.- Returns:
- the value of the
adaptationsrecord component
-