AWS SDK for .NET Documentation
CopyPartRequest Class
AmazonAmazon.S3.ModelCopyPartRequest Did this page help you?   Yes   No    Tell us about it...
The parameters to upload a part by copying data from an existing object as data source.
Declaration Syntax
C#
public class CopyPartRequest : S3Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
CopyPartRequest()()()()
Initializes a new instance of the CopyPartRequest class

AddHeader(String, String)
Adds the header to the collection of headers for the request.
(Inherited from S3Request.)
AddHeaders(NameValueCollection)
Adds all of the specified key/value pairs into the request headers collection.
(Inherited from S3Request.)
CopySourceServerSideEncryptionCustomerMethod
The Server-side encryption algorithm to be used with the customer provided key.

CopySourceServerSideEncryptionCustomerProvidedKey
The customer provided encryption key for the source object of the copy.

Important: Amazon S3 does not store the encryption key you provide.


DestinationBucket
The name of the bucket to contain the copy of the source object.

DestinationKey
The key to be given to the copy of the source object.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
ETagsToNotMatch
Collection of ETags that must not be matched as a pre-condition for copying the source object otherwise returns a PreconditionFailed.

ETagToMatch
Collection of ETags to be matched as a pre-condition for copying the source object otherwise returns a PreconditionFailed.

FirstByte
The location of the first byte in the range if only a portion of the source object is to be copied as the part.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InputStream
Input stream for the request; content for the request will be read from the stream.
(Inherited from S3Request.)
LastByte
The location of the last byte in the range if only a portion of the source object is to be copied as the part.

ModifiedSinceDate
Copies the object if it has been modified since the specified time, otherwise returns a PreconditionFailed.

PartNumber
The number of the part to be copied.

ReadWriteTimeout
Overrides the default HttpWebRequest ReadWriteTimeout value.
(Inherited from S3Request.)
ServerSideEncryptionCustomerMethod
The Server-side encryption algorithm to be used with the customer provided key.

ServerSideEncryptionCustomerProvidedKey
The base64-encoded encryption key for Amazon S3 to use to encrypt the object

Using the encryption key you provide as part of your request Amazon S3 manages both the encryption, as it writes to disks, and decryption, when you access your objects. Therefore, you don't need to maintain any data encryption code. The only thing you do is manage the encryption keys you provide.

///

When you retrieve an object, you must provide the same encryption key as part of your request. Amazon S3 first verifies the encryption key you provided matches, and then decrypts the object before returning the object data to you.

Important: Amazon S3 does not store the encryption key you provide.


ServerSideEncryptionMethod

Specifies the encryption to be used on the server for the new object.

Default: None


SourceBucket
The name of the bucket containing the object to copy.

SourceKey
The key of the object to copy.

SourceVersionId
Specifies a particular version of the source object to copy. By default the latest version is copied.

Timeout
Overrides the default HttpWebRequest timeout value.
(Inherited from S3Request.)
ToString()()()() (Inherited from S3Request.)
UnmodifiedSinceDate
Copies the object if it has not been modified since the specified time, otherwise returns a PreconditionFailed.

UploadID
The ID identifying multipart upload for which we are copying a part.

WithDestinationBucket(String) Obsolete.
Sets the name of the bucket to contain the copy of the source object.

WithDestinationKey(String) Obsolete.
Sets the key to be given to the copy of the source object.

WithETagsToMatch(array<String>[]()[][]) Obsolete.
Adds the specified Etags to the ETagsToMatch property for this request.

WithETagsToMatch(IEnumerable<(Of <<'(String>)>>)) Obsolete.
Adds the specified Etags to the ETagsToMatch property for this request.

WithETagsToNotMatch(array<String>[]()[][]) Obsolete.
Adds the specified Etags to the ETagsToNotMatch property for this request.

WithETagsToNotMatch(IEnumerable<(Of <<'(String>)>>)) Obsolete.
Adds the Etags to the ETagsToNotMatch property for this request.

WithFirstByte(Int64) Obsolete.
Sets the location of the first byte in the range if only a portion of the source object is to be copied as the part.

WithInputStream(Stream) Obsolete.
Sets an input stream for the request; content for the request will be read from the stream.
(Inherited from S3Request.)
WithLastByte(Int64) Obsolete.
The location of the last byte in the range if only a portion of the source object is to be copied as the part.

WithModifiedSinceDate(DateTime) Obsolete.
Copies the object if it has been modified since the specified time, otherwise returns a PreconditionFailed.

WithPartNumber(Int32) Obsolete.
Sets the number of the part to be copied.

WithReadWriteTimeout(Int32) Obsolete.
Custom read-write timeout value (in milliseconds) to set in the HttpWebRequest object used for the request.

WithServerSideEncryptionMethod(ServerSideEncryptionMethod) Obsolete.

Specifies the encryption to be used on the server for the new object.

Default: None


WithSourceBucket(String) Obsolete.
Sets the name of the bucket containing the object to copy.

WithSourceKey(String) Obsolete.
Sets the key of the object to copy.

WithSourceVersionId(String) Obsolete.
Specifies a particular version of the source object to copy. By default the latest version is copied.

WithTimeout(Int32) Obsolete.
Custom timeout value (in milliseconds) to set in the HttpWebRequest object used for the request.

WithUnmodifiedSinceDate(DateTime) Obsolete.
Copies the object if it has not been modified since the specified time, otherwise returns a PreconditionFailed.

WithUploadID(String) Obsolete.
Sets the ID identifying multipart upload for which we are copying a part.

Inheritance Hierarchy
Object
S3Request
 CopyPartRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)