Package com.adobe.testing.s3mock.dto
Record Class GetObjectAttributesParts
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.GetObjectAttributesParts
public record GetObjectAttributesParts(int maxParts, boolean isTruncated, int nextPartNumberMarker, int partNumberMarker, int totalPartsCount, List<ObjectPart> parts)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGetObjectAttributesParts(int maxParts, boolean isTruncated, int nextPartNumberMarker, int partNumberMarker, int totalPartsCount, List<ObjectPart> parts) Creates an instance of aGetObjectAttributesPartsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisTruncatedrecord component.intmaxParts()Returns the value of themaxPartsrecord component.intReturns the value of thenextPartNumberMarkerrecord component.intReturns the value of thepartNumberMarkerrecord component.parts()Returns the value of thepartsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalPartsCountrecord component.
-
Constructor Details
-
GetObjectAttributesParts
public GetObjectAttributesParts(int maxParts, boolean isTruncated, int nextPartNumberMarker, int partNumberMarker, int totalPartsCount, List<ObjectPart> parts) Creates an instance of aGetObjectAttributesPartsrecord class.- Parameters:
maxParts- the value for themaxPartsrecord componentisTruncated- the value for theisTruncatedrecord componentnextPartNumberMarker- the value for thenextPartNumberMarkerrecord componentpartNumberMarker- the value for thepartNumberMarkerrecord componenttotalPartsCount- the value for thetotalPartsCountrecord componentparts- the value for thepartsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
maxParts
public int maxParts()Returns the value of themaxPartsrecord component.- Returns:
- the value of the
maxPartsrecord component
-
isTruncated
public boolean isTruncated()Returns the value of theisTruncatedrecord component.- Returns:
- the value of the
isTruncatedrecord component
-
nextPartNumberMarker
public int nextPartNumberMarker()Returns the value of thenextPartNumberMarkerrecord component.- Returns:
- the value of the
nextPartNumberMarkerrecord component
-
partNumberMarker
public int partNumberMarker()Returns the value of thepartNumberMarkerrecord component.- Returns:
- the value of the
partNumberMarkerrecord component
-
totalPartsCount
public int totalPartsCount()Returns the value of thetotalPartsCountrecord component.- Returns:
- the value of the
totalPartsCountrecord component
-
parts
Returns the value of thepartsrecord component.- Returns:
- the value of the
partsrecord component
-