Record Class NotificationProfile.Result
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.notification.NotificationProfile.Result
- Enclosing interface:
NotificationProfile
public static record NotificationProfile.Result(String href, String filename, long size, String body, AcquisitionNotification notification)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(String href, String filename, long size, String body, AcquisitionNotification notification) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.href()Returns the value of thehrefrecord component.Returns the value of thenotificationrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(String href, String filename, long size, String body, AcquisitionNotification notification) Creates an instance of aResultrecord class.- Parameters:
href- the value for thehrefrecord componentfilename- the value for thefilenamerecord componentsize- the value for thesizerecord componentbody- the value for thebodyrecord componentnotification- the value for thenotificationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
notification
Returns the value of thenotificationrecord component.- Returns:
- the value of the
notificationrecord component
-