Record Class LocationReplicaRegistration
java.lang.Object
java.lang.Record
org.openwms.common.location.api.commands.LocationReplicaRegistration
- All Implemented Interfaces:
Serializable
public record LocationReplicaRegistration(@NotBlank String applicationName, String requestRemovalEndpoint, String removeEndpoint)
extends Record
implements Serializable
A LocationReplicaRegistration.
- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocationReplicaRegistration(@NotBlank String applicationName, String requestRemovalEndpoint, String removeEndpoint) Creates an instance of aLocationReplicaRegistrationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank StringReturns the value of theapplicationNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theremoveEndpointrecord component.Returns the value of therequestRemovalEndpointrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
applicationName
The field for theapplicationNamerecord component. -
requestRemovalEndpoint
The field for therequestRemovalEndpointrecord component. -
removeEndpoint
The field for theremoveEndpointrecord component.
-
-
Constructor Details
-
LocationReplicaRegistration
public LocationReplicaRegistration(@NotBlank @NotBlank String applicationName, String requestRemovalEndpoint, String removeEndpoint) Creates an instance of aLocationReplicaRegistrationrecord class.- Parameters:
applicationName- the value for theapplicationNamerecord componentrequestRemovalEndpoint- the value for therequestRemovalEndpointrecord componentremoveEndpoint- the value for theremoveEndpointrecord 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). -
applicationName
Returns the value of theapplicationNamerecord component.- Returns:
- the value of the
applicationNamerecord component
-
requestRemovalEndpoint
Returns the value of therequestRemovalEndpointrecord component.- Returns:
- the value of the
requestRemovalEndpointrecord component
-
removeEndpoint
Returns the value of theremoveEndpointrecord component.- Returns:
- the value of the
removeEndpointrecord component
-