Record Class ManagedHostedResources.Bundle

java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedHostedResources.Bundle
Record Components:
artifactDigest - host-verified lowercase SHA-256 of the complete deployed artifact
semanticConfiguration - immutable deterministic configuration snapshot
Enclosing class:
ManagedHostedResources

public static record ManagedHostedResources.Bundle(String artifactDigest, Map<String,String> semanticConfiguration) extends Record
Verified immutable program identity; no field is an application authorization assertion.
  • Constructor Details

    • Bundle

      public Bundle(String artifactDigest, Map<String,String> semanticConfiguration)
      Validates the verified identity and bounds/copies configuration without logging values.
      Parameters:
      artifactDigest - exact verified artifact hash
      semanticConfiguration - at most256 entries and65536 total characters
      Throws:
      IllegalArgumentException - for malformed digest or excessive configuration
      NullPointerException - for null configuration members
  • Method Details

    • toString

      public String toString()
      Returns a diagnostic omitting configuration values.
      Specified by:
      toString in class Record
      Returns:
      fixed safe label
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • artifactDigest

      public String artifactDigest()
      Returns the value of the artifactDigest record component.
      Returns:
      the value of the artifactDigest record component
    • semanticConfiguration

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