Record Class VaultConnectionConfig
java.lang.Object
java.lang.Record
de.otto.kafka.messaging.e2ee.vault.VaultConnectionConfig
public record VaultConnectionConfig(String address, String token, VaultConnectionConfig.VaultAppRole appRole)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Constructor Summary
ConstructorsConstructorDescriptionVaultConnectionConfig(String address, String token, VaultConnectionConfig.VaultAppRole appRole) Creates an instance of aVaultConnectionConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.appRole()Returns the value of theappRolerecord component.builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VaultConnectionConfig
public VaultConnectionConfig(String address, String token, VaultConnectionConfig.VaultAppRole appRole) Creates an instance of aVaultConnectionConfigrecord class.- Parameters:
address- the value for theaddressrecord componenttoken- the value for thetokenrecord componentappRole- the value for theappRolerecord component
-
-
Method Details
-
builder
-
createRenewableVault
- Throws:
io.github.jopenlibs.vault.VaultException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
appRole
Returns the value of theappRolerecord component.- Returns:
- the value of the
appRolerecord component
-