Record Class DeploymentRecord
java.lang.Object
java.lang.Record
org.infosmid.stream.kubernetes.DeploymentRecord
-
Constructor Summary
Constructors -
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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeploymentRecord
public DeploymentRecord(String name, int replicas, Map<String, String> labels, Map<String, String> podLabels, Map<String, String> podAnnotations, PodSpecRecord podSpec) Creates an instance of aDeploymentRecordrecord class.- Parameters:
name- the value for thenamerecord componentreplicas- the value for thereplicasrecord componentlabels- the value for thelabelsrecord componentpodLabels- the value for thepodLabelsrecord componentpodAnnotations- the value for thepodAnnotationsrecord componentpodSpec- the value for thepodSpecrecord 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
-
labels
-
podLabels
-
podAnnotations
-
podSpec
Returns the value of thepodSpecrecord component.- Returns:
- the value of the
podSpecrecord component
-