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 Summary
ConstructorsConstructorDescriptionContainerRecord(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(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 aContainerRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.@Nullable List<EnvVarRecord> env()Returns the value of theenvrecord component.@Nullable List<EnvFromSourceRecord> envFrom()Returns the value of theenvFromrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.@Nullable StringReturns the value of theimagePullPolicyrecord component.@Nullable ProbeRecordReturns the value of thelivenessProberecord component.name()Returns the value of thenamerecord component.@Nullable List<ContainerPortRecord> ports()Returns the value of theportsrecord component.@Nullable ProbeRecordReturns the value of thereadinessProberecord component.@Nullable ResourceRequirementsRecordReturns the value of theresourcesrecord component.@Nullable ProbeRecordReturns the value of thestartupProberecord component.final StringtoString()Returns a string representation of this record class.@Nullable List<VolumeMountRecord> Returns the value of thevolumeMountsrecord component.
-
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 aContainerRecordrecord class.- Parameters:
name- the value for thenamerecord componentimage- the value for theimagerecord componentenv- the value for theenvrecord componentargs- the value for theargsrecord componentports- the value for theportsrecord componentresources- the value for theresourcesrecord componentlivenessProbe- the value for thelivenessProberecord componentreadinessProbe- the value for thereadinessProberecord componentstartupProbe- the value for thestartupProberecord componentvolumeMounts- the value for thevolumeMountsrecord componentimagePullPolicy- the value for theimagePullPolicyrecord componentenvFrom- the value for theenvFromrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
args
-
ports
Returns the value of theportsrecord component.- Returns:
- the value of the
portsrecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-
livenessProbe
Returns the value of thelivenessProberecord component.- Returns:
- the value of the
livenessProberecord component
-
readinessProbe
Returns the value of thereadinessProberecord component.- Returns:
- the value of the
readinessProberecord component
-
startupProbe
Returns the value of thestartupProberecord component.- Returns:
- the value of the
startupProberecord component
-
volumeMounts
Returns the value of thevolumeMountsrecord component.- Returns:
- the value of the
volumeMountsrecord component
-
imagePullPolicy
Returns the value of theimagePullPolicyrecord component.- Returns:
- the value of the
imagePullPolicyrecord component
-
envFrom
Returns the value of theenvFromrecord component.- Returns:
- the value of the
envFromrecord component
-