Record Class EnvFromSourceRecord
java.lang.Object
java.lang.Record
org.infosmid.stream.kubernetes.EnvFromSourceRecord
public record EnvFromSourceRecord(@Nullable SecretEnvSourceRecord secretRef, @Nullable ConfigMapEnvSourceRecord configMapRef)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEnvFromSourceRecord(@Nullable SecretEnvSourceRecord secretRef, @Nullable ConfigMapEnvSourceRecord configMapRef) Creates an instance of aEnvFromSourceRecordrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ConfigMapEnvSourceRecordReturns the value of theconfigMapRefrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static EnvFromSourceRecordofConfigMap(String name) static EnvFromSourceRecord@Nullable SecretEnvSourceRecordReturns the value of thesecretRefrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnvFromSourceRecord
public EnvFromSourceRecord(@Nullable SecretEnvSourceRecord secretRef, @Nullable ConfigMapEnvSourceRecord configMapRef) Creates an instance of aEnvFromSourceRecordrecord class.- Parameters:
secretRef- the value for thesecretRefrecord componentconfigMapRef- the value for theconfigMapRefrecord component
-
-
Method Details
-
ofSecret
-
ofConfigMap
-
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). -
secretRef
Returns the value of thesecretRefrecord component.- Returns:
- the value of the
secretRefrecord component
-
configMapRef
Returns the value of theconfigMapRefrecord component.- Returns:
- the value of the
configMapRefrecord component
-