Package com.avoka.tm.vo.v1
Record Class ServiceDefinition
java.lang.Object
java.lang.Record
com.avoka.tm.vo.v1.ServiceDefinition
- Record Components:
serviceName- service nameserviceType- service typeserviceVersion- service versionclientCode- client code
public record ServiceDefinition(String serviceName, String serviceType, String serviceVersion, String clientCode)
extends Record
ServiceDefinition Object Model
- Since:
- 24.10.0
-
Constructor Summary
ConstructorsConstructorDescriptionServiceDefinition(com.avoka.fc.core.entity.ServiceDefinition serviceDefinition) ServiceDefinition(String serviceName, String serviceType, String serviceVersion, String clientCode) Creates an instance of aServiceDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientCoderecord 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 theserviceNamerecord component.Returns the value of theserviceTyperecord component.Returns the value of theserviceVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServiceDefinition
public ServiceDefinition(com.avoka.fc.core.entity.ServiceDefinition serviceDefinition) -
ServiceDefinition
public ServiceDefinition(String serviceName, String serviceType, String serviceVersion, String clientCode) Creates an instance of aServiceDefinitionrecord class.- Parameters:
serviceName- the value for theserviceNamerecord componentserviceType- the value for theserviceTyperecord componentserviceVersion- the value for theserviceVersionrecord componentclientCode- the value for theclientCoderecord 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). -
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
serviceType
Returns the value of theserviceTyperecord component.- Returns:
- the value of the
serviceTyperecord component
-
serviceVersion
Returns the value of theserviceVersionrecord component.- Returns:
- the value of the
serviceVersionrecord component
-
clientCode
Returns the value of theclientCoderecord component.- Returns:
- the value of the
clientCoderecord component
-