Record Class ElementEventConsumerMetadata
java.lang.Object
java.lang.Record
dev.getelements.elements.sdk.model.system.ElementEventConsumerMetadata
public record ElementEventConsumerMetadata(String serviceType, String serviceName, String eventName, String methodName)
extends Record
A DTO record for Element Event Consumer Metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionElementEventConsumerMetadata(String serviceType, String serviceName, String eventName, String methodName) Creates an instance of aElementEventConsumerMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventNamerecord component.static ElementEventConsumerMetadatafrom(ElementEventConsumerRecord<?> elementEventConsumerRecord) final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.Returns the value of theserviceNamerecord component.Returns the value of theserviceTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementEventConsumerMetadata
public ElementEventConsumerMetadata(String serviceType, String serviceName, String eventName, String methodName) Creates an instance of aElementEventConsumerMetadatarecord class.- Parameters:
serviceType- the value for theserviceTyperecord componentserviceName- the value for theserviceNamerecord componenteventName- the value for theeventNamerecord componentmethodName- the value for themethodNamerecord component
-
-
Method Details
-
from
public static ElementEventConsumerMetadata from(ElementEventConsumerRecord<?> elementEventConsumerRecord) -
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). -
serviceType
Returns the value of theserviceTyperecord component.- Returns:
- the value of the
serviceTyperecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
eventName
Returns the value of theeventNamerecord component.- Returns:
- the value of the
eventNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-