Discuss this help topic in SecureBlackbox Forum

TElAWSS3DataStorage.CopyObject

TElAWSS3DataStorage     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Copies data object.

Declaration

[VB.NET]
    Function CopyObject(ByVal SourceBucketName As String, ByVal SourceKey As String, ByVal DestBucketName As String, ByVal DestKey As String, ByVal NewHandler As TElCustomDataStorageSecurityHandler) As TElCustomDataStorageObject
    Function CopyObject(ByVal Obj As TElAWSS3DataStorageObject, ByVal DestBucketName As String, ByVal DestKey As String, ByVal NewHandler As TElCustomDataStorageSecurityHandler) As TElCustomDataStorageObject
    Function CopyObject(ByVal SourceBucketName As String, ByVal SourceKey As String, ByVal DestBucketName As String, ByVal DestKey As String, ByVal PreserveMetadata As Boolean, ByVal Metadata As TElStringList) As TElCustomDataStorageObject
    Function CopyObject(ByVal SourceBucketName As String, ByVal SourceKey As String, ByVal DestBucketName As String, ByVal DestKey As String, ByVal Condition As TSBAWSS3ReadObjectCondition, ByVal DateTime As DateTime, ByVal ETag As String, ByVal PreserveMetadata As Boolean, ByVal Metadata As TElStringList, ByVal Headers As TElStringList) As TElCustomDataStorageObject
    Function CopyObject(ByVal SourceBucketName As String, ByVal SourceKey As String, ByVal DestBucketName As String, ByVal DestKey As String, ByVal Condition As TSBAWSS3ReadObjectCondition, ByVal DateTime As DateTime, ByVal ETag As String, ByVal StorageClass As String, ByVal PreserveMetadata As Boolean, ByVal Metadata As TElStringList, ByVal Headers As TElStringList) As TElCustomDataStorageObject
    Function CopyObject(ByVal Obj As TElCustomDataStorageObject, ByVal NewHandler As TElCustomDataStorageSecurityHandler) As TElCustomDataStorageObject

[Pascal]
    function CopyObject(const SourceBucketName : string; const SourceKey : string; const DestBucketName : string; const DestKey : string; NewHandler : TElCustomDataStorageSecurityHandler) : TElCustomDataStorageObject;
    function CopyObject(Obj : TElAWSS3DataStorageObject; const DestBucketName : string; const DestKey : string; NewHandler : TElCustomDataStorageSecurityHandler) : TElCustomDataStorageObject;
    function CopyObject(const SourceBucketName : string; const SourceKey : string; const DestBucketName : string; const DestKey : string; PreserveMetadata : boolean; Metadata : TStringList) : TElCustomDataStorageObject;
    function CopyObject(const SourceBucketName : string; const SourceKey : string; const DestBucketName : string; const DestKey : string; Condition : TSBAWSS3ReadObjectCondition; DateTime : DateTime; ETag : string; PreserveMetadata : boolean; Metadata : TStringList; Headers : TStringList) : TElCustomDataStorageObject;

[C++]
    TElCustomDataStorageObjectHandle CopyObject(const std::string &SourceBucketName, const std::string &SourceKey, const std::string &DestBucketName, const std::string &DestKey, TElCustomDataStorageSecurityHandler &NewHandler);
    TElCustomDataStorageObjectHandle CopyObject(const std::string &SourceBucketName, const std::string &SourceKey, const std::string &DestBucketName, const std::string &DestKey, TElCustomDataStorageSecurityHandler *NewHandler);
    TElCustomDataStorageObjectHandle CopyObject(TElAWSS3DataStorageObject &Obj, const std::string &DestBucketName, const std::string &DestKey, TElCustomDataStorageSecurityHandler &NewHandler);
    TElCustomDataStorageObjectHandle CopyObject(TElAWSS3DataStorageObject *Obj, const std::string &DestBucketName, const std::string &DestKey, TElCustomDataStorageSecurityHandler *NewHandler);
    TElCustomDataStorageObjectHandle CopyObject(const std::string &SourceBucketName, const std::string &SourceKey, const std::string &DestBucketName, const std::string &DestKey, bool PreserveMetadata, TElStringList &Metadata);
    TElCustomDataStorageObjectHandle CopyObject(const std::string &SourceBucketName, const std::string &SourceKey, const std::string &DestBucketName, const std::string &DestKey, bool PreserveMetadata, TElStringList *Metadata);
    TElCustomDataStorageObjectHandle CopyObject(const std::string &SourceBucketName, const std::string &SourceKey, const std::string &DestBucketName, const std::string &DestKey, TSBAWSS3ReadObjectCondition Condition, int64_t DateTime, const std::string &ETag, bool PreserveMetadata, TElStringList &Metadata, TElStringList &Headers);
    TElCustomDataStorageObjectHandle CopyObject(const std::string &SourceBucketName, const std::string &SourceKey, const std::string &DestBucketName, const std::string &DestKey, TSBAWSS3ReadObjectCondition Condition, int64_t DateTime, const std::string &ETag, bool PreserveMetadata, TElStringList *Metadata, TElStringList *Headers);
    TElCustomDataStorageObjectHandle CopyObject(const std::string &SourceBucketName, const std::string &SourceKey, const std::string &DestBucketName, const std::string &DestKey, TSBAWSS3ReadObjectCondition Condition, int64_t DateTime, const std::string &ETag, const std::string &StorageClass, bool PreserveMetadata, TElStringList &Metadata, TElStringList &Headers);
    TElCustomDataStorageObjectHandle CopyObject(const std::string &SourceBucketName, const std::string &SourceKey, const std::string &DestBucketName, const std::string &DestKey, TSBAWSS3ReadObjectCondition Condition, int64_t DateTime, const std::string &ETag, const std::string &StorageClass, bool PreserveMetadata, TElStringList *Metadata, TElStringList *Headers);

[PHP]
    TElCustomDataStorageObject CopyObject(string $SourceBucketName, string $SourceKey, string $DestBucketName, string $DestKey, TElCustomDataStorageSecurityHandler $NewHandler)
    TElCustomDataStorageObject CopyObject(TElAWSS3DataStorageObject $Obj, string $DestBucketName, string $DestKey, TElCustomDataStorageSecurityHandler $NewHandler)
    TElCustomDataStorageObject CopyObject(string $SourceBucketName, string $SourceKey, string $DestBucketName, string $DestKey, bool $PreserveMetadata, TElStringList $Metadata)
    TElCustomDataStorageObject CopyObject(string $SourceBucketName, string $SourceKey, string $DestBucketName, string $DestKey, integer $Condition, DateTime $DateTime, string $ETag, bool $PreserveMetadata, TElStringList $Metadata, TElStringList $Headers)
    TElCustomDataStorageObject CopyObject(string $SourceBucketName, string $SourceKey, string $DestBucketName, string $DestKey, integer $Condition, DateTime $DateTime, string $ETag, string $StorageClass, bool $PreserveMetadata, TElStringList $Metadata, TElStringList $Headers)
    TElCustomDataStorageObject CopyObject(TElCustomDataStorageObject $Obj, TElCustomDataStorageSecurityHandler $NewHandler)

[Java]
    TElCustomDataStorageObject copyObject(TElAWSS3DataStorageObject Obj, String DestBucketName, String DestKey, TElCustomDataStorageSecurityHandler NewHandler);
    TElCustomDataStorageObject copyObject(String SourceBucketName, String SourceKey, String DestBucketName, String DestKey, boolean PreserveMetadata, TElStringList Metadata);
    TElCustomDataStorageObject copyObject(String SourceBucketName, String SourceKey, String DestBucketName, String DestKey, TSBAWSS3ReadObjectCondition Condition, Date DateTime, String ETag, boolean PreserveMetadata, TElStringList Metadata, TElStringList Headers);
    TElCustomDataStorageObject copyObject(String SourceBucketName, String SourceKey, String DestBucketName, String DestKey, TSBAWSS3ReadObjectCondition Condition, Date DateTime, String ETag, String StorageClass, boolean PreserveMetadata, TElStringList Metadata, TElStringList Headers);
    TElCustomDataStorageObject copyObject(String SourceBucketName, String SourceKey, String DestBucketName, String DestKey, TElCustomDataStorageSecurityHandler NewHandler);

Parameters

  • SourceBucketName - name of the bucket containing the object to be copied
  • SourceKey - a unique identifier of the object to be copied
  • DestBucketName - name of the bucket where the object should be copied to
  • DestKey - a unique identifier of the destination object
  • Obj - object to be copied
  • NewHandler - security handler used to perform the operation
  • Condition - condition under which the object will be copied
  • DateTime - object's modification date and time
  • ETag - object's entity tag
  • Metadata - contains metadata of the object
  • PreserveMetadata - specifies whether to preserve object's metadata
  • Headers - contains HTTP headers
  • StorageClass - ...

Values

Return value

    Instance of TElCustomDataStorageObject class which contains a copy of object.

Description

    Use this method to copy objects from one data bucket into another.

See also:     CreateObject     ReadObject     WriteObject    

Discuss this help topic in SecureBlackbox Forum