Record Class LocalStackCapabilitySnapshot
java.lang.Object
java.lang.Record
com.cloudforge.core.local.LocalStackCapabilitySnapshot
public record LocalStackCapabilitySnapshot(boolean healthy, URI endpoint, LocalStackTierProfile tierProfile, String edition, String version, Set<LocalStackServiceCapability> capabilities, Map<String,Object> details)
extends Record
Snapshot of LocalStack health, edition, and service availability for adapt/deploy decisions.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalStackCapabilitySnapshot(boolean healthy, URI endpoint, LocalStackTierProfile tierProfile, String edition, String version, Set<LocalStackServiceCapability> capabilities, Map<String, Object> details) Creates an instance of aLocalStackCapabilitySnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.details()Returns the value of thedetailsrecord component.edition()Returns the value of theeditionrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhealthy()Returns the value of thehealthyrecord component.booleanbooleanbooleansupports(LocalStackServiceCapability capability) booleanbooleanbooleanReturns the value of thetierProfilerecord component.final StringtoString()Returns a string representation of this record class.static LocalStackCapabilitySnapshotunavailable(URI endpoint, String reason) version()Returns the value of theversionrecord component.
-
Constructor Details
-
LocalStackCapabilitySnapshot
public LocalStackCapabilitySnapshot(boolean healthy, URI endpoint, LocalStackTierProfile tierProfile, String edition, String version, Set<LocalStackServiceCapability> capabilities, Map<String, Object> details) Creates an instance of aLocalStackCapabilitySnapshotrecord class.- Parameters:
healthy- the value for thehealthyrecord componentendpoint- the value for theendpointrecord componenttierProfile- the value for thetierProfilerecord componentedition- the value for theeditionrecord componentversion- the value for theversionrecord componentcapabilities- the value for thecapabilitiesrecord componentdetails- the value for thedetailsrecord component
-
-
Method Details
-
supports
-
supportsFargatePath
public boolean supportsFargatePath() -
supportsRdsPath
public boolean supportsRdsPath() -
supportsEc2RuntimePath
public boolean supportsEc2RuntimePath() -
keepEfsResources
public boolean keepEfsResources() -
keepBackupResources
public boolean keepBackupResources() -
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. -
healthy
public boolean healthy()Returns the value of thehealthyrecord component.- Returns:
- the value of the
healthyrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
tierProfile
Returns the value of thetierProfilerecord component.- Returns:
- the value of the
tierProfilerecord component
-
edition
Returns the value of theeditionrecord component.- Returns:
- the value of the
editionrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
details
-