Record Class Repository
java.lang.Object
java.lang.Record
org.alfresco.hxi_connector.live_ingester.adapters.config.properties.Repository
public record Repository(@NotBlank String eventsEndpoint, String discoveryEndpoint, String versionOverride, Repository.HealthProbe healthProbe)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRepository(@NotBlank String eventsEndpoint, String discoveryEndpoint, String versionOverride, Repository.HealthProbe healthProbe) Creates an instance of aRepositoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediscoveryEndpointrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotBlank StringReturns the value of theeventsEndpointrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehealthProberecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theversionOverriderecord component.
-
Constructor Details
-
Repository
public Repository(@NotBlank @NotBlank String eventsEndpoint, String discoveryEndpoint, String versionOverride, Repository.HealthProbe healthProbe) Creates an instance of aRepositoryrecord class.- Parameters:
eventsEndpoint- the value for theeventsEndpointrecord componentdiscoveryEndpoint- the value for thediscoveryEndpointrecord componentversionOverride- the value for theversionOverriderecord componenthealthProbe- the value for thehealthProberecord component
-
-
Method Details
-
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). -
eventsEndpoint
Returns the value of theeventsEndpointrecord component.- Returns:
- the value of the
eventsEndpointrecord component
-
discoveryEndpoint
Returns the value of thediscoveryEndpointrecord component.- Returns:
- the value of the
discoveryEndpointrecord component
-
versionOverride
Returns the value of theversionOverriderecord component.- Returns:
- the value of the
versionOverriderecord component
-
healthProbe
Returns the value of thehealthProberecord component.- Returns:
- the value of the
healthProberecord component
-