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
ConstructorDescriptionServiceDefinition
(com.avoka.fc.core.entity.ServiceDefinition serviceDefinition) ServiceDefinition
(String serviceName, String serviceType, String serviceVersion, String clientCode) Creates an instance of aServiceDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientCode
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 theserviceName
record component.Returns the value of theserviceType
record component.Returns the value of theserviceVersion
record component.final String
toString()
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 aServiceDefinition
record class.- Parameters:
serviceName
- the value for theserviceName
record componentserviceType
- the value for theserviceType
record componentserviceVersion
- the value for theserviceVersion
record componentclientCode
- the value for theclientCode
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)
. -
serviceName
Returns the value of theserviceName
record component.- Returns:
- the value of the
serviceName
record component
-
serviceType
Returns the value of theserviceType
record component.- Returns:
- the value of the
serviceType
record component
-
serviceVersion
Returns the value of theserviceVersion
record component.- Returns:
- the value of the
serviceVersion
record component
-
clientCode
Returns the value of theclientCode
record component.- Returns:
- the value of the
clientCode
record component
-