Record Class PodSpecRecord

java.lang.Object
java.lang.Record
org.infosmid.stream.kubernetes.PodSpecRecord

public record PodSpecRecord(List<ContainerRecord> containers, List<VolumeRecord> volumes, List<String> imagePullSecrets, String restartPolicy, String serviceAccountName, Long terminationGracePeriodSeconds) extends Record
  • Constructor Details

    • PodSpecRecord

      public PodSpecRecord(List<ContainerRecord> containers, List<VolumeRecord> volumes, List<String> imagePullSecrets, String restartPolicy, String serviceAccountName, Long terminationGracePeriodSeconds)
      Creates an instance of a PodSpecRecord record class.
      Parameters:
      containers - the value for the containers record component
      volumes - the value for the volumes record component
      imagePullSecrets - the value for the imagePullSecrets record component
      restartPolicy - the value for the restartPolicy record component
      serviceAccountName - the value for the serviceAccountName record component
      terminationGracePeriodSeconds - the value for the terminationGracePeriodSeconds record component
  • Method Details

    • 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. 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.
    • containers

      public List<ContainerRecord> containers()
      Returns the value of the containers record component.
      Returns:
      the value of the containers record component
    • volumes

      public List<VolumeRecord> volumes()
      Returns the value of the volumes record component.
      Returns:
      the value of the volumes record component
    • imagePullSecrets

      public List<String> imagePullSecrets()
      Returns the value of the imagePullSecrets record component.
      Returns:
      the value of the imagePullSecrets record component
    • restartPolicy

      public String restartPolicy()
      Returns the value of the restartPolicy record component.
      Returns:
      the value of the restartPolicy record component
    • serviceAccountName

      public String serviceAccountName()
      Returns the value of the serviceAccountName record component.
      Returns:
      the value of the serviceAccountName record component
    • terminationGracePeriodSeconds

      public Long terminationGracePeriodSeconds()
      Returns the value of the terminationGracePeriodSeconds record component.
      Returns:
      the value of the terminationGracePeriodSeconds record component