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 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 a LocalStackCapabilitySnapshot record class.
      Parameters:
      healthy - the value for the healthy record component
      endpoint - the value for the endpoint record component
      tierProfile - the value for the tierProfile record component
      edition - the value for the edition record component
      version - the value for the version record component
      capabilities - the value for the capabilities record component
      details - the value for the details record component
  • Method Details

    • supports

      public boolean supports(LocalStackServiceCapability capability)
    • supportsFargatePath

      public boolean supportsFargatePath()
    • supportsRdsPath

      public boolean supportsRdsPath()
    • supportsEc2RuntimePath

      public boolean supportsEc2RuntimePath()
    • keepEfsResources

      public boolean keepEfsResources()
    • keepBackupResources

      public boolean keepBackupResources()
    • unavailable

      public static LocalStackCapabilitySnapshot unavailable(URI endpoint, String reason)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • healthy

      public boolean healthy()
      Returns the value of the healthy record component.
      Returns:
      the value of the healthy record component
    • endpoint

      public URI endpoint()
      Returns the value of the endpoint record component.
      Returns:
      the value of the endpoint record component
    • tierProfile

      public LocalStackTierProfile tierProfile()
      Returns the value of the tierProfile record component.
      Returns:
      the value of the tierProfile record component
    • edition

      public String edition()
      Returns the value of the edition record component.
      Returns:
      the value of the edition record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • capabilities

      public Set<LocalStackServiceCapability> capabilities()
      Returns the value of the capabilities record component.
      Returns:
      the value of the capabilities record component
    • details

      public Map<String,Object> details()
      Returns the value of the details record component.
      Returns:
      the value of the details record component