Record Class PreflightResult
java.lang.Object
java.lang.Record
com.cloudforge.core.local.PreflightResult
public record PreflightResult(DeploymentTarget target, List<PreflightViolation> violations)
extends Record
Outcome of a local emulator deploy preflight check.
-
Constructor Summary
ConstructorsConstructorDescriptionPreflightResult(DeploymentTarget target, List<PreflightViolation> violations) Creates an instance of aPreflightResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PreflightResultallowed(DeploymentTarget target) booleanallowed(PreflightMode mode) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.merge(PreflightResult other) static PreflightResultof(DeploymentTarget target, List<PreflightViolation> violations) target()Returns the value of thetargetrecord component.voidthrowIfBlocked(PreflightMode mode) final StringtoString()Returns a string representation of this record class.Returns the value of theviolationsrecord component.warnings()
-
Constructor Details
-
PreflightResult
Creates an instance of aPreflightResultrecord class.- Parameters:
target- the value for thetargetrecord componentviolations- the value for theviolationsrecord component
-
-
Method Details
-
allowed
-
of
-
allowed
-
blockingViolations
-
warnings
-
merge
-
throwIfBlocked
- Throws:
IOException
-
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). -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
violations
Returns the value of theviolationsrecord component.- Returns:
- the value of the
violationsrecord component
-