Record Class StatefulSetRecord
java.lang.Object
java.lang.Record
org.infosmid.stream.kubernetes.StatefulSetRecord
-
Constructor Summary
ConstructorsConstructorDescriptionStatefulSetRecord(String name, int replicas, String serviceName, Map<String, String> labels, Map<String, String> podLabels, Map<String, String> podAnnotations, PodSpecRecord podSpec, List<PersistentVolumeClaimRecord> volumeClaimTemplates) Creates an instance of aStatefulSetRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.labels()Returns the value of thelabelsrecord component.name()Returns the value of thenamerecord component.Returns the value of thepodAnnotationsrecord component.Returns the value of thepodLabelsrecord component.podSpec()Returns the value of thepodSpecrecord component.intreplicas()Returns the value of thereplicasrecord component.Returns the value of theserviceNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevolumeClaimTemplatesrecord component.
-
Constructor Details
-
StatefulSetRecord
public StatefulSetRecord(String name, int replicas, String serviceName, Map<String, String> labels, Map<String, String> podLabels, Map<String, String> podAnnotations, PodSpecRecord podSpec, List<PersistentVolumeClaimRecord> volumeClaimTemplates) Creates an instance of aStatefulSetRecordrecord class.- Parameters:
name- the value for thenamerecord componentreplicas- the value for thereplicasrecord componentserviceName- the value for theserviceNamerecord componentlabels- the value for thelabelsrecord componentpodLabels- the value for thepodLabelsrecord componentpodAnnotations- the value for thepodAnnotationsrecord componentpodSpec- the value for thepodSpecrecord componentvolumeClaimTemplates- the value for thevolumeClaimTemplatesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
replicas
public int replicas()Returns the value of thereplicasrecord component.- Returns:
- the value of the
replicasrecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
labels
-
podLabels
-
podAnnotations
-
podSpec
Returns the value of thepodSpecrecord component.- Returns:
- the value of the
podSpecrecord component
-
volumeClaimTemplates
Returns the value of thevolumeClaimTemplatesrecord component.- Returns:
- the value of the
volumeClaimTemplatesrecord component
-