Record Class ContainerRecord

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

public record ContainerRecord(String name, String image, @Nullable List<EnvVarRecord> env, @Nullable List<String> args, @Nullable List<ContainerPortRecord> ports, @Nullable ResourceRequirementsRecord resources, @Nullable ProbeRecord livenessProbe, @Nullable ProbeRecord readinessProbe, @Nullable ProbeRecord startupProbe, @Nullable List<VolumeMountRecord> volumeMounts, @Nullable String imagePullPolicy, @Nullable List<EnvFromSourceRecord> envFrom) extends Record
  • Constructor Details

    • ContainerRecord

      public ContainerRecord(String name, String image, @Nullable List<EnvVarRecord> env, @Nullable List<String> args, @Nullable List<ContainerPortRecord> ports, @Nullable ResourceRequirementsRecord resources, @Nullable ProbeRecord livenessProbe, @Nullable ProbeRecord readinessProbe, @Nullable ProbeRecord startupProbe, @Nullable List<VolumeMountRecord> volumeMounts, @Nullable String imagePullPolicy)
    • ContainerRecord

      public ContainerRecord(String name, String image, @Nullable List<EnvVarRecord> env, @Nullable List<String> args, @Nullable List<ContainerPortRecord> ports, @Nullable ResourceRequirementsRecord resources, @Nullable ProbeRecord livenessProbe, @Nullable ProbeRecord readinessProbe, @Nullable ProbeRecord startupProbe, @Nullable List<VolumeMountRecord> volumeMounts, @Nullable String imagePullPolicy, @Nullable List<EnvFromSourceRecord> envFrom)
      Creates an instance of a ContainerRecord record class.
      Parameters:
      name - the value for the name record component
      image - the value for the image record component
      env - the value for the env record component
      args - the value for the args record component
      ports - the value for the ports record component
      resources - the value for the resources record component
      livenessProbe - the value for the livenessProbe record component
      readinessProbe - the value for the readinessProbe record component
      startupProbe - the value for the startupProbe record component
      volumeMounts - the value for the volumeMounts record component
      imagePullPolicy - the value for the imagePullPolicy record component
      envFrom - the value for the envFrom 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • image

      public String image()
      Returns the value of the image record component.
      Returns:
      the value of the image record component
    • env

      public @Nullable List<EnvVarRecord> env()
      Returns the value of the env record component.
      Returns:
      the value of the env record component
    • args

      public @Nullable List<String> args()
      Returns the value of the args record component.
      Returns:
      the value of the args record component
    • ports

      public @Nullable List<ContainerPortRecord> ports()
      Returns the value of the ports record component.
      Returns:
      the value of the ports record component
    • resources

      public @Nullable ResourceRequirementsRecord resources()
      Returns the value of the resources record component.
      Returns:
      the value of the resources record component
    • livenessProbe

      public @Nullable ProbeRecord livenessProbe()
      Returns the value of the livenessProbe record component.
      Returns:
      the value of the livenessProbe record component
    • readinessProbe

      public @Nullable ProbeRecord readinessProbe()
      Returns the value of the readinessProbe record component.
      Returns:
      the value of the readinessProbe record component
    • startupProbe

      public @Nullable ProbeRecord startupProbe()
      Returns the value of the startupProbe record component.
      Returns:
      the value of the startupProbe record component
    • volumeMounts

      public @Nullable List<VolumeMountRecord> volumeMounts()
      Returns the value of the volumeMounts record component.
      Returns:
      the value of the volumeMounts record component
    • imagePullPolicy

      public @Nullable String imagePullPolicy()
      Returns the value of the imagePullPolicy record component.
      Returns:
      the value of the imagePullPolicy record component
    • envFrom

      public @Nullable List<EnvFromSourceRecord> envFrom()
      Returns the value of the envFrom record component.
      Returns:
      the value of the envFrom record component