public interface TOSV2 extends TOS, Closeable
abortMultipartUpload, appendObject, completeMultipartUpload, copyObject, copyObjectFrom, copyObjectTo, createBucket, createMultipartUpload, deleteBucket, deleteMultiObjects, deleteObject, getObject, getObjectAcl, headBucket, headObject, listBuckets, listMultipartUploads, listObjects, listObjectVersions, listUploadedParts, preSignedURL, putObject, putObjectAcl, setObjectMeta, uploadFile, uploadPart, uploadPartCopyCreateBucketV2Output createBucket(String bucket) throws TosException
bucket - require input's bucketName not nullCreateBucketV2OutputTosExceptionCreateBucketV2Output createBucket(CreateBucketV2Input input) throws TosException
input - require input's bucketName not nullCreateBucketV2OutputTosExceptionHeadBucketV2Output headBucket(HeadBucketV2Input input) throws TosException
input - bucket nameHeadBucketOutputTosExceptionboolean doesBucketExist(DoesBucketExistInput input) throws TosException
input - bucket nameBooleanTosExceptionboolean doesObjectExist(DoesObjectExistInput input) throws TosException
input - object nameBooleanTosExceptionDeleteBucketOutput deleteBucket(DeleteBucketInput input) throws TosException
input - bucket nameDeleteBucketOutputTosExceptionListBucketsV2Output listBuckets(ListBucketsV2Input input) throws TosException
input - no params requiredListBucketsV2OutputTosExceptionPutBucketPolicyOutput putBucketPolicy(String bucket, String policy) throws TosException
putBucketPolicy 在接口中 TOSbucket - bucket namepolicy - bucket policyTosExceptionPutBucketPolicyOutput putBucketPolicy(PutBucketPolicyInput input) throws TosException
input - set bucket name and bucket policyTosExceptionGetBucketPolicyOutput getBucketPolicy(String bucket) throws TosException
getBucketPolicy 在接口中 TOSbucket - bucket nameTosExceptionGetBucketPolicyOutput getBucketPolicy(GetBucketPolicyInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketPolicyOutput deleteBucketPolicy(String bucket) throws TosException
deleteBucketPolicy 在接口中 TOSbucket - bucket nameTosExceptionDeleteBucketPolicyOutput deleteBucketPolicy(DeleteBucketPolicyInput input) throws TosException
input - set bucket nameTosExceptionPutBucketCORSOutput putBucketCORS(PutBucketCORSInput input) throws TosException
input - set bucket name and the bucket CORS rulesTosExceptionGetBucketCORSOutput getBucketCORS(GetBucketCORSInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketCORSOutput deleteBucketCORS(DeleteBucketCORSInput input) throws TosException
input - set bucket nameTosExceptionPutBucketStorageClassOutput putBucketStorageClass(PutBucketStorageClassInput input) throws TosException
input - set bucket name and the specific storageClassTypeTosExceptionGetBucketLocationOutput getBucketLocation(GetBucketLocationInput input) throws TosException
input - set bucket nameTosExceptionPutBucketLifecycleOutput putBucketLifecycle(PutBucketLifecycleInput input) throws TosException
input - set bucket name and the bucket lifecycle rulesTosExceptionGetBucketLifecycleOutput getBucketLifecycle(GetBucketLifecycleInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketLifecycleOutput deleteBucketLifecycle(DeleteBucketLifecycleInput input) throws TosException
input - set bucket nameTosExceptionPutBucketMirrorBackOutput putBucketMirrorBack(PutBucketMirrorBackInput input) throws TosException
input - set bucket name and the bucket mirrorBack rulesTosExceptionGetBucketMirrorBackOutput getBucketMirrorBack(GetBucketMirrorBackInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketMirrorBackOutput deleteBucketMirrorBack(DeleteBucketMirrorBackInput input) throws TosException
input - set bucket nameTosExceptionPutBucketReplicationOutput putBucketReplication(PutBucketReplicationInput input) throws TosException
input - set bucket name and the bucket replication rulesTosExceptionGetBucketReplicationOutput getBucketReplication(GetBucketReplicationInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketReplicationOutput deleteBucketReplication(DeleteBucketReplicationInput input) throws TosException
input - set bucket nameTosExceptionPutBucketVersioningOutput putBucketVersioning(PutBucketVersioningInput input) throws TosException
input - set bucket name and the bucket multi-version statusTosExceptionGetBucketVersioningOutput getBucketVersioning(GetBucketVersioningInput input) throws TosException
input - set bucket nameTosExceptionPutBucketWebsiteOutput putBucketWebsite(PutBucketWebsiteInput input) throws TosException
input - set bucket name and the bucket website config rulesTosExceptionGetBucketWebsiteOutput getBucketWebsite(GetBucketWebsiteInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketWebsiteOutput deleteBucketWebsite(DeleteBucketWebsiteInput input) throws TosException
input - set bucket nameTosExceptionPutBucketNotificationOutput putBucketNotification(PutBucketNotificationInput input) throws TosException
input - set bucket name and the bucket event notification rulesTosExceptionGetBucketNotificationOutput getBucketNotification(GetBucketNotificationInput input) throws TosException
input - set bucket nameTosExceptionPutBucketNotificationType2Output putBucketNotificationType2(PutBucketNotificationType2Input input) throws TosException
input - set bucket name and the bucket event notification rulesTosExceptionGetBucketNotificationType2Output getBucketNotificationType2(GetBucketNotificationType2Input input) throws TosException
input - set bucket nameTosExceptionPutBucketCustomDomainOutput putBucketCustomDomain(PutBucketCustomDomainInput input) throws TosException
input - set bucket name and the custom domain ruleTosExceptionListBucketCustomDomainOutput listBucketCustomDomain(ListBucketCustomDomainInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketCustomDomainOutput deleteBucketCustomDomain(DeleteBucketCustomDomainInput input) throws TosException
input - set bucket nameTosExceptionPutBucketRealTimeLogOutput putBucketRealTimeLog(PutBucketRealTimeLogInput input) throws TosException
input - set bucket name and the realtime log configTosExceptionGetBucketRealTimeLogOutput getBucketRealTimeLog(GetBucketRealTimeLogInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketRealTimeLogOutput deleteBucketRealTimeLog(DeleteBucketRealTimeLogInput input) throws TosException
input - set bucket nameTosExceptionPutBucketACLOutput putBucketACL(PutBucketACLInput input) throws TosException
input - set bucket name and the bucket lifecycle rulesTosExceptionGetBucketACLOutput getBucketACL(GetBucketACLInput input) throws TosException
input - set bucket nameTosExceptionPutBucketRenameOutput putBucketRename(PutBucketRenameInput input) throws TosException
input - set bucket name and the rename-switchTosExceptionGetBucketRenameOutput getBucketRename(GetBucketRenameInput input) throws TosException
input - set bucket nameTosExceptionDeleteBucketRenameOutput deleteBucketRename(DeleteBucketRenameInput input) throws TosException
input - set bucket nameTosExceptionPutBucketEncryptionOutput putBucketEncryption(PutBucketEncryptionInput input) throws TosException
TosExceptionGetBucketEncryptionOutput getBucketEncryption(GetBucketEncryptionInput input) throws TosException
TosExceptionDeleteBucketEncryptionOutput deleteBucketEncryption(DeleteBucketEncryptionInput input) throws TosException
TosExceptionPutBucketTaggingOutput putBucketTagging(PutBucketTaggingInput input) throws TosException
TosExceptionGetBucketTaggingOutput getBucketTagging(GetBucketTaggingInput input) throws TosException
TosExceptionDeleteBucketTaggingOutput deleteBucketTagging(DeleteBucketTaggingInput input) throws TosException
TosExceptionPutBucketInventoryOutput putBucketInventory(PutBucketInventoryInput input) throws TosException
TosExceptionGetBucketInventoryOutput getBucketInventory(GetBucketInventoryInput input) throws TosException
TosExceptionListBucketInventoryOutput listBucketInventory(ListBucketInventoryInput input) throws TosException
TosExceptionDeleteBucketInventoryOutput deleteBucketInventory(DeleteBucketInventoryInput input) throws TosException
TosExceptionGetBucketInfoOutput getBucketInfo(GetBucketInfoInput input) throws TosException
TosExceptionGetObjectV2Output getObject(GetObjectV2Input input) throws TosException
input - set get object optionsGetObjectV2OutputTosExceptionGetObjectToFileOutput getObjectToFile(GetObjectToFileInput input) throws TosException
input - set get object optionsGetObjectToFileOutputTosExceptionGetFileStatusOutput getFileStatus(GetFileStatusInput input) throws TosException
input - get file status optionsGetFileStatusOutputTosExceptionUploadFileV2Output uploadFile(UploadFileV2Input input) throws TosException
TosExceptionDownloadFileOutput downloadFile(DownloadFileInput input) throws TosException
TosExceptionResumableCopyObjectOutput resumableCopyObject(ResumableCopyObjectInput input) throws TosException
TosExceptionHeadObjectV2Output headObject(HeadObjectV2Input input) throws TosException
input - set head object optionsHeadObjectV2OutputTosExceptionDeleteObjectOutput deleteObject(DeleteObjectInput input) throws TosException
input - set delete object optionsDeleteObjectOutputTosExceptionDeleteMultiObjectsV2Output deleteMultiObjects(DeleteMultiObjectsV2Input input) throws TosException
input - set delete multi objects optionsDeleteMultiObjectsV2OutputTosExceptionPutObjectOutput putObject(PutObjectInput input) throws TosException
input - set put object optionPutObjectOutputTosExceptionPutObjectFromFileOutput putObjectFromFile(PutObjectFromFileInput input) throws TosException
input - set put object optionPutObjectFromFileOutputTosExceptionAppendObjectOutput appendObject(AppendObjectInput input) throws TosException
input - set append object optionAppendObjectOutputTosExceptionSetObjectMetaOutput setObjectMeta(SetObjectMetaInput input) throws TosException
input - set setObjectMeta optionSetObjectMetaOutputTosExceptionSetObjectTimeOutput setObjectTime(SetObjectTimeInput input) throws TosException
input - setObjectTime optionSetObjectTimeOutputTosException@Deprecated ListObjectsV2Output listObjects(ListObjectsV2Input input) throws TosException
input - list object optionsListObjectsV2OutputTosExceptionListObjectsType2Output listObjectsType2(ListObjectsType2Input input) throws TosException
input - list object optionsListObjectsType2OutputTosExceptionListObjectVersionsV2Output listObjectVersions(ListObjectVersionsV2Input input) throws TosException
input - query paramsListObjectVersionsV2OutputTosExceptionCopyObjectV2Output copyObject(CopyObjectV2Input input) throws TosException
input - set copy object optionCopyObjectV2OutputTosExceptionUploadPartCopyV2Output uploadPartCopy(UploadPartCopyV2Input input) throws TosException
input - UploadPartCopyV2OutputTosExceptionPutObjectACLOutput putObjectAcl(PutObjectACLInput input) throws TosException
input - set acl option.PutObjectACLOutputTosExceptionGetObjectACLV2Output getObjectAcl(GetObjectACLV2Input input) throws TosException
input - set bucket, key and versionID.GetObjectACLV2OutputTosExceptionPutObjectTaggingOutput putObjectTagging(PutObjectTaggingInput input) throws TosException
input - set object tag set.PutObjectTaggingOutputTosExceptionGetObjectTaggingOutput getObjectTagging(GetObjectTaggingInput input) throws TosException
input - set bucket, key and versionID.GetObjectTaggingOutputTosExceptionDeleteObjectTaggingOutput deleteObjectTagging(DeleteObjectTaggingInput input) throws TosException
input - set bucket, key and versionID.DeleteObjectTaggingOutputTosExceptionFetchObjectOutput fetchObject(FetchObjectInput input) throws TosException
input - set fetch options.FetchObjectOutputTosExceptionPutFetchTaskOutput putFetchTask(PutFetchTaskInput input) throws TosException
input - set fetch options.PutFetchTaskOutputTosExceptionGetFetchTaskOutput getFetchTask(GetFetchTaskInput input) throws TosException
TosExceptionCreateMultipartUploadOutput createMultipartUpload(CreateMultipartUploadInput input) throws TosException
input - set the createMultipartUpload optionCreateMultipartUploadOutputTosExceptionUploadPartV2Output uploadPart(UploadPartV2Input input) throws TosException
input - set uploadpart optionUploadPartV2OutputTosExceptionUploadPartFromFileOutput uploadPartFromFile(UploadPartFromFileInput input) throws TosException
input - set uploadpart optionUploadPartFromFileOutputTosExceptionCompleteMultipartUploadV2Output completeMultipartUpload(CompleteMultipartUploadV2Input input) throws TosException
input - set completeMultipartUpload optionCompleteMultipartUploadV2OutputTosExceptionAbortMultipartUploadOutput abortMultipartUpload(AbortMultipartUploadInput input) throws TosException
input - set abortMultipartUpload optionAbortMultipartUploadOutputTosExceptionListPartsOutput listParts(ListPartsInput input) throws TosException
input - set listParts optionListPartsOutputTosExceptionListMultipartUploadsV2Output listMultipartUploads(ListMultipartUploadsV2Input input) throws TosException
input - ListMultipartUploadsInputListMultipartUploadsV2OutputTosExceptionRenameObjectOutput renameObject(RenameObjectInput input) throws TosException
input - set the source key to be renamed and the renamed key.RenameObjectOutputTosExceptionRestoreObjectOutput restoreObject(RestoreObjectInput input) throws TosException
input - set restoreObject options.RestoreObjectOutputTosExceptionPutSymlinkOutput putSymlink(PutSymlinkInput input) throws TosException
TosExceptionGetSymlinkOutput getSymlink(GetSymlinkInput input) throws TosException
TosExceptionPreSignedURLOutput preSignedURL(PreSignedURLInput input) throws TosException
input - PreSignedURLInputPreSignedURLOutputTosExceptionPreSignedPostSignatureOutput preSignedPostSignature(PreSignedPostSignatureInput input) throws TosException
input - PreSignedPostSignatureInputPreSignedPostSignatureOutputTosExceptionPreSingedPolicyURLOutput preSingedPolicyURL(PreSingedPolicyURLInput input) throws TosException
input - PreSingedPolicyURLInputPreSingedPolicyURLOutputTosExceptionPreSignedPolicyURLOutput preSignedPolicyURL(PreSignedPolicyURLInput input) throws TosException
input - PreSignedPolicyURLInputPreSignedPolicyURLOutputTosExceptionGetBucketTypeOutput getBucketType(GetBucketTypeInput input) throws TosException
input - GetBucketTypeInputGetBucketTypeOutputTosExceptionPutBucketAccessMonitorOutput putBucketAccessMonitor(PutBucketAccessMonitorInput input) throws TosException
input - PutBucketAccessMonitorInputPutBucketAccessMonitorOutputTosExceptionGetBucketAccessMonitorOutput getBucketAccessMonitor(GetBucketAccessMonitorInput input) throws TosException
input - GetBucketAccessMonitorInputGetBucketAccessMonitorOutputTosExceptionPutQosPolicyOutput putQosPolicy(PutQosPolicyInput input) throws TosException
TosExceptionGetQosPolicyOutput getQosPolicy(GetQosPolicyInput input) throws TosException
TosExceptionDeleteQosPolicyOutput deleteQosPolicy(DeleteQosPolicyInput input) throws TosException
TosException@Deprecated void changeCredentials(Credentials credentials)
@Deprecated void changeRegionAndEndpoint(String region, String endpoint)
void changeTransportConfig(TransportConfig config)
Copyright © 2025. All rights reserved.