Package com.adobe.testing.s3mock.dto
Record Class GetObjectAttributesOutput
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.GetObjectAttributesOutput
public record GetObjectAttributesOutput(Checksum checksum, String etag, List<GetObjectAttributesParts> objectParts, Long objectSize, StorageClass storageClass)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGetObjectAttributesOutput(Checksum checksum, String etag, List<GetObjectAttributesParts> objectParts, Long objectSize, StorageClass storageClass) Creates an instance of aGetObjectAttributesOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchecksum()Returns the value of thechecksumrecord component.final booleanIndicates whether some other object is "equal to" this one.etag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectPartsrecord component.Returns the value of theobjectSizerecord component.Returns the value of thestorageClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GetObjectAttributesOutput
public GetObjectAttributesOutput(Checksum checksum, String etag, List<GetObjectAttributesParts> objectParts, Long objectSize, StorageClass storageClass) Creates an instance of aGetObjectAttributesOutputrecord class.- Parameters:
checksum- the value for thechecksumrecord componentetag- the value for theetagrecord componentobjectParts- the value for theobjectPartsrecord componentobjectSize- the value for theobjectSizerecord componentstorageClass- the value for thestorageClassrecord 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). -
checksum
Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-
etag
Returns the value of theetagrecord component.- Returns:
- the value of the
etagrecord component
-
objectParts
Returns the value of theobjectPartsrecord component.- Returns:
- the value of the
objectPartsrecord component
-
objectSize
Returns the value of theobjectSizerecord component.- Returns:
- the value of the
objectSizerecord component
-
storageClass
Returns the value of thestorageClassrecord component.- Returns:
- the value of the
storageClassrecord component
-