@Generated(value="software.amazon.awssdk:codegen") public final class ListPartsResponse extends S3Response implements ToCopyableBuilder<ListPartsResponse.Builder,ListPartsResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
ListPartsResponse.Builder |
Modifier and Type | Method and Description |
---|---|
Instant |
abortDate()
If the bucket has a lifecycle rule configured with an action to abort incomplete multipart uploads and the prefix
in the lifecycle rule matches the object name in the request, then the response includes this header indicating
when the initiated multipart upload will become eligible for abort operation.
|
String |
abortRuleId()
This header is returned along with the
x-amz-abort-date header. |
String |
bucket()
Name of the bucket to which the multipart upload was initiated.
|
static ListPartsResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParts()
Returns true if the Parts property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Initiator |
initiator()
Container element that identifies who initiated the multipart upload.
|
Boolean |
isTruncated()
Indicates whether the returned list of parts is truncated.
|
String |
key()
Object key for which the multipart upload was initiated.
|
Integer |
maxParts()
Maximum number of parts that were allowed in the response.
|
Integer |
nextPartNumberMarker()
When a list is truncated, this element specifies the last part in the list, as well as the value to use for the
part-number-marker request parameter in a subsequent request.
|
Owner |
owner()
Container element that identifies the object owner, after the object is created.
|
Integer |
partNumberMarker()
When a list is truncated, this element specifies the last part in the list, as well as the value to use for the
part-number-marker request parameter in a subsequent request.
|
List<Part> |
parts()
Container for elements related to a particular part.
|
RequestCharged |
requestCharged()
Returns the value of the RequestCharged property for this object.
|
String |
requestChargedAsString()
Returns the value of the RequestCharged property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ListPartsResponse.Builder> |
serializableBuilderClass() |
StorageClass |
storageClass()
Class of storage (STANDARD or REDUCED_REDUNDANCY) used to store the uploaded object.
|
String |
storageClassAsString()
Class of storage (STANDARD or REDUCED_REDUNDANCY) used to store the uploaded object.
|
ListPartsResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
uploadId()
Upload ID identifying the multipart upload whose parts are being listed.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public Instant abortDate()
If the bucket has a lifecycle rule configured with an action to abort incomplete multipart uploads and the prefix in the lifecycle rule matches the object name in the request, then the response includes this header indicating when the initiated multipart upload will become eligible for abort operation. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy.
The response will also include the x-amz-abort-rule-id
header that will provide the ID of the
lifecycle configuration rule that defines this action.
The response will also include the x-amz-abort-rule-id
header that will provide the ID of
the lifecycle configuration rule that defines this action.
public String abortRuleId()
This header is returned along with the x-amz-abort-date
header. It identifies applicable lifecycle
configuration rule that defines the action to abort incomplete multipart uploads.
x-amz-abort-date
header. It identifies applicable
lifecycle configuration rule that defines the action to abort incomplete multipart uploads.public String bucket()
Name of the bucket to which the multipart upload was initiated.
public String key()
Object key for which the multipart upload was initiated.
public String uploadId()
Upload ID identifying the multipart upload whose parts are being listed.
public Integer partNumberMarker()
When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request.
public Integer nextPartNumberMarker()
When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request.
public Integer maxParts()
Maximum number of parts that were allowed in the response.
public Boolean isTruncated()
Indicates whether the returned list of parts is truncated. A true value indicates that the list was truncated. A list can be truncated if the number of parts exceeds the limit returned in the MaxParts element.
public boolean hasParts()
public List<Part> parts()
Container for elements related to a particular part. A response can contain zero or more Part
elements.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasParts()
to see if a value was sent in this field.
Part
elements.public Initiator initiator()
Container element that identifies who initiated the multipart upload. If the initiator is an AWS account, this
element provides the same information as the Owner
element. If the initiator is an IAM User, this
element provides the user ARN and display name.
Owner
element. If the initiator is an IAM
User, this element provides the user ARN and display name.public Owner owner()
Container element that identifies the object owner, after the object is created. If multipart upload is initiated by an IAM user, this element provides the parent account ID and display name.
public StorageClass storageClass()
Class of storage (STANDARD or REDUCED_REDUNDANCY) used to store the uploaded object.
If the service returns an enum value that is not available in the current SDK version, storageClass
will
return StorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
storageClassAsString()
.
StorageClass
public String storageClassAsString()
Class of storage (STANDARD or REDUCED_REDUNDANCY) used to store the uploaded object.
If the service returns an enum value that is not available in the current SDK version, storageClass
will
return StorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
storageClassAsString()
.
StorageClass
public RequestCharged requestCharged()
If the service returns an enum value that is not available in the current SDK version, requestCharged
will return RequestCharged.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from requestChargedAsString()
.
RequestCharged
public String requestChargedAsString()
If the service returns an enum value that is not available in the current SDK version, requestCharged
will return RequestCharged.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from requestChargedAsString()
.
RequestCharged
public ListPartsResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ListPartsResponse.Builder,ListPartsResponse>
toBuilder
in class AwsResponse
public static ListPartsResponse.Builder builder()
public static Class<? extends ListPartsResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsResponse
public boolean equals(Object obj)
equals
in class AwsResponse
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2020. All rights reserved.