Record Class S3UploadRequest
java.lang.Object
java.lang.Record
inha.dayoook_e.utils.s3.dto.request.S3UploadRequest
-
Constructor Summary
ConstructorsConstructorDescriptionS3UploadRequest
(Integer userId, String dirName) Creates an instance of aS3UploadRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptiondirName()
Returns the value of thedirName
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.final String
toString()
Returns a string representation of this record class.userId()
Returns the value of theuserId
record component.
-
Constructor Details
-
S3UploadRequest
Creates an instance of aS3UploadRequest
record class.- Parameters:
userId
- the value for theuserId
record componentdirName
- the value for thedirName
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)
. -
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-
dirName
Returns the value of thedirName
record component.- Returns:
- the value of the
dirName
record component
-