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
-
Constructor Summary
ConstructorDescriptionLocationReplicaRegistration
(@NotBlank String applicationName, String requestRemovalEndpoint, String removeEndpoint) Creates an instance of aLocationReplicaRegistration
record class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank String
Returns the value of theapplicationName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theremoveEndpoint
record component.Returns the value of therequestRemovalEndpoint
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
applicationName
The field for theapplicationName
record component. -
requestRemovalEndpoint
The field for therequestRemovalEndpoint
record component. -
removeEndpoint
The field for theremoveEndpoint
record component.
-
-
Constructor Details
-
LocationReplicaRegistration
public LocationReplicaRegistration(@NotBlank @NotBlank String applicationName, String requestRemovalEndpoint, String removeEndpoint) Creates an instance of aLocationReplicaRegistration
record class.- Parameters:
applicationName
- the value for theapplicationName
record componentrequestRemovalEndpoint
- the value for therequestRemovalEndpoint
record componentremoveEndpoint
- the value for theremoveEndpoint
record 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 theapplicationName
record component.- Returns:
- the value of the
applicationName
record component
-
requestRemovalEndpoint
Returns the value of therequestRemovalEndpoint
record component.- Returns:
- the value of the
requestRemovalEndpoint
record component
-
removeEndpoint
Returns the value of theremoveEndpoint
record component.- Returns:
- the value of the
removeEndpoint
record component
-