Record Class RecordCreateResponseVO
java.lang.Object
java.lang.Record
com.dataset.service.model.response.RecordCreateResponseVO
- Record Components:
message
- This is the success message displays after creating record.dataset
- This is name of the dataset to which the record was added.id
- This is the unique identifier assigned to newly created record.
This is the RecordCreateResponseVO class which creates a record for the provided dataset.
-
Constructor Summary
ConstructorsConstructorDescriptionRecordCreateResponseVO
(String message, String dataset, UUID id) Creates an instance of aRecordCreateResponseVO
record class. -
Method Summary
Modifier and TypeMethodDescriptiondataset()
Returns the value of thedataset
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.id()
Returns the value of theid
record component.message()
Returns the value of themessage
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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)
. -
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
dataset
Returns the value of thedataset
record component.- Returns:
- the value of the
dataset
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-