Record Class AegisConfig
java.lang.Object
java.lang.Record
com.cockroachlabs.crdb.spi.AegisConfig
- Record Components:
enabled- whether Aegis integration is enabledendpoint- the Aegis API endpoint;null/blank selects the simulated in-memory backendtoken- bearer token for the Aegis API (may benull)
-
Constructor Summary
ConstructorsConstructorDescriptionAegisConfig(boolean enabled, String endpoint, String token) Creates an instance of aAegisConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AegisConfigdefaults()Disabled by default: selects the simulated backend, emits nothing remote.booleanenabled()Returns the value of theenabledrecord component.endpoint()Returns the value of theendpointrecord component.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.booleanWhether the simulated backend should be used (disabled or no endpoint).
-
Constructor Details
-
AegisConfig
-
-
Method Details
-
defaults
Disabled by default: selects the simulated backend, emits nothing remote. -
useSimulated
public boolean useSimulated()Whether the simulated backend should be used (disabled or no endpoint). -
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. -
enabled
-
endpoint
-
token
-