Record Class ResourceDrift
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.plan.ResourceDrift
- Record Components:
key- the logical keykind- the element kindname- the planned namestatus- the verdictliveUuid- the uuid of the matched live resource, ornullmatchedBy- how the live resource was matched (checkpoint,marker,name,type), ornulldifferences- the differing fields (empty unlessPRESENT_DIFFERENT)note- an explanation, ornull
public record ResourceDrift(String key, ResourceKind kind, String name, DriftStatus status, String liveUuid, String matchedBy, List<FieldDifference> differences, String note)
extends Record
The drift verdict for one planned resource.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceDrift(String key, ResourceKind kind, String name, DriftStatus status, String liveUuid, String matchedBy, List<FieldDifference> differences, String note) Makesdifferencesimmutable and non-null. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedifferencesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanWhether every difference can be patched in place.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.kind()Returns the value of thekindrecord component.liveUuid()Returns the value of theliveUuidrecord component.Returns the value of thematchedByrecord component.name()Returns the value of thenamerecord component.note()Returns the value of thenoterecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceDrift
public ResourceDrift(String key, ResourceKind kind, String name, DriftStatus status, String liveUuid, String matchedBy, List<FieldDifference> differences, String note) Makesdifferencesimmutable and non-null.
-
-
Method Details
-
fullyPatchable
public boolean fullyPatchable()Whether every difference can be patched in place.- Returns:
truewhen there is at least one difference and all are patchable
-
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). -
key
-
kind
-
name
-
status
-
liveUuid
-
matchedBy
-
differences
Returns the value of thedifferencesrecord component.- Returns:
- the value of the
differencesrecord component
-
note
-