Record Class EnvVarSourceRecord
java.lang.Object
java.lang.Record
org.infosmid.stream.kubernetes.EnvVarSourceRecord
public record EnvVarSourceRecord(@Nullable SecretKeySelectorRecord secretKeyRef, @Nullable ConfigMapKeySelectorRecord configMapKeyRef)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEnvVarSourceRecord(@Nullable SecretKeySelectorRecord secretKeyRef, @Nullable ConfigMapKeySelectorRecord configMapKeyRef) Creates an instance of aEnvVarSourceRecordrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ConfigMapKeySelectorRecordReturns the value of theconfigMapKeyRefrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static EnvVarSourceRecordofConfigMapKey(String name, String key) static EnvVarSourceRecordofSecretKey(String name, String key) @Nullable SecretKeySelectorRecordReturns the value of thesecretKeyRefrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnvVarSourceRecord
public EnvVarSourceRecord(@Nullable SecretKeySelectorRecord secretKeyRef, @Nullable ConfigMapKeySelectorRecord configMapKeyRef) Creates an instance of aEnvVarSourceRecordrecord class.- Parameters:
secretKeyRef- the value for thesecretKeyRefrecord componentconfigMapKeyRef- the value for theconfigMapKeyRefrecord component
-
-
Method Details
-
ofSecretKey
-
ofConfigMapKey
-
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). -
secretKeyRef
Returns the value of thesecretKeyRefrecord component.- Returns:
- the value of the
secretKeyRefrecord component
-
configMapKeyRef
Returns the value of theconfigMapKeyRefrecord component.- Returns:
- the value of the
configMapKeyRefrecord component
-