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 Summary
ConstructorsConstructorDescriptionPodSpecRecord(List<ContainerRecord> containers, List<VolumeRecord> volumes, List<String> imagePullSecrets, String restartPolicy, String serviceAccountName, Long terminationGracePeriodSeconds) Creates an instance of aPodSpecRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimagePullSecretsrecord component.Returns the value of therestartPolicyrecord component.Returns the value of theserviceAccountNamerecord component.Returns the value of theterminationGracePeriodSecondsrecord component.final StringtoString()Returns a string representation of this record class.volumes()Returns the value of thevolumesrecord component.
-
Constructor Details
-
PodSpecRecord
public PodSpecRecord(List<ContainerRecord> containers, List<VolumeRecord> volumes, List<String> imagePullSecrets, String restartPolicy, String serviceAccountName, Long terminationGracePeriodSeconds) Creates an instance of aPodSpecRecordrecord class.- Parameters:
containers- the value for thecontainersrecord componentvolumes- the value for thevolumesrecord componentimagePullSecrets- the value for theimagePullSecretsrecord componentrestartPolicy- the value for therestartPolicyrecord componentserviceAccountName- the value for theserviceAccountNamerecord componentterminationGracePeriodSeconds- the value for theterminationGracePeriodSecondsrecord 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). -
containers
Returns the value of thecontainersrecord component.- Returns:
- the value of the
containersrecord component
-
volumes
Returns the value of thevolumesrecord component.- Returns:
- the value of the
volumesrecord component
-
imagePullSecrets
-
restartPolicy
Returns the value of therestartPolicyrecord component.- Returns:
- the value of the
restartPolicyrecord component
-
serviceAccountName
Returns the value of theserviceAccountNamerecord component.- Returns:
- the value of the
serviceAccountNamerecord component
-
terminationGracePeriodSeconds
Returns the value of theterminationGracePeriodSecondsrecord component.- Returns:
- the value of the
terminationGracePeriodSecondsrecord component
-