Package com.amazonaws.services.s3.model
Class InitiateMultipartUploadResult
java.lang.Object
com.amazonaws.services.s3.internal.SSEResultBase
com.amazonaws.services.s3.model.InitiateMultipartUploadResult
- All Implemented Interfaces:
com.amazonaws.services.s3.internal.S3RequesterChargedResult
,com.amazonaws.services.s3.internal.ServerSideEncryptionResult
,Serializable
public class InitiateMultipartUploadResult
extends com.amazonaws.services.s3.internal.SSEResultBase
implements com.amazonaws.services.s3.internal.S3RequesterChargedResult, Serializable
Contains the results of initiating a multipart upload, particularly the
unique ID of the new multipart upload.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDate when multipart upload will become eligible for abort operation by lifecycle.Id of the lifecycle rule that makes a multipart upload eligible for abort operation.Returns the name of the bucket in which the new multipart upload was initiated.getKey()
Returns the object key for which the multipart upload was initiated.Returns the initiated multipart upload ID.boolean
Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.void
setAbortDate
(Date abortDate) Date when multipart upload will become eligible for abort operation by lifecycle.void
setAbortRuleId
(String abortRuleId) Id of the lifecycle rule that makes a multipart upload eligible for abort operation.void
setBucketName
(String bucketName) Sets the name of the bucket in which the new multipart upload was initiated.void
Sets the object key for which the multipart upload was initiated.void
setRequesterCharged
(boolean isRequesterCharged) Used for conducting this operation from a Requester Pays Bucket.void
setUploadId
(String uploadId) Sets the initiated multipart upload ID.Methods inherited from class com.amazonaws.services.s3.internal.SSEResultBase
getServerSideEncryption, getSSEAlgorithm, getSSECustomerAlgorithm, getSSECustomerKeyMd5, setSSEAlgorithm, setSSECustomerAlgorithm, setSSECustomerKeyMd5
-
Constructor Details
-
InitiateMultipartUploadResult
public InitiateMultipartUploadResult()
-
-
Method Details
-
getBucketName
Returns the name of the bucket in which the new multipart upload was initiated.- Returns:
- The name of the bucket in which the new multipart upload was initiated.
-
setBucketName
Sets the name of the bucket in which the new multipart upload was initiated.- Parameters:
bucketName
- The name of the bucket in which the new multipart upload was initiated.
-
getKey
Returns the object key for which the multipart upload was initiated.- Returns:
- The object key for which the multipart upload was initiated.
-
setKey
Sets the object key for which the multipart upload was initiated.- Parameters:
key
- The object key for which the multipart upload was initiated.
-
getUploadId
Returns the initiated multipart upload ID.- Returns:
- the initiated multipart upload ID.
-
setUploadId
Sets the initiated multipart upload ID.- Parameters:
uploadId
- The initiated multipart upload ID.
-
getAbortDate
Date when multipart upload will become eligible for abort operation by lifecycle.- Returns:
- The date when the upload will be eligible for abort.
-
setAbortDate
Date when multipart upload will become eligible for abort operation by lifecycle.- Parameters:
abortDate
- The date when the upload will be eligible for abort.
-
getAbortRuleId
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.- Returns:
- Rule ID
-
setAbortRuleId
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.- Parameters:
abortRuleId
- Rule ID
-
isRequesterCharged
public boolean isRequesterCharged()Description copied from interface:com.amazonaws.services.s3.internal.S3RequesterChargedResult
Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.
Enabling Requester Pays disables the ability to have anonymous access to this bucket
- Specified by:
isRequesterCharged
in interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult
- Returns:
- true if the user has enabled Requester Pays option for conducting this operation from Requester Pays Bucket.
-
setRequesterCharged
public void setRequesterCharged(boolean isRequesterCharged) Description copied from interface:com.amazonaws.services.s3.internal.S3RequesterChargedResult
Used for conducting this operation from a Requester Pays Bucket. If set the requester is charged for conducting the operation from the bucket.If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.
- Specified by:
setRequesterCharged
in interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult
- Parameters:
isRequesterCharged
- Indicates requester is charged for this operation.
-