AWS SDK for .NET Documentation
WithDirective Method (directive)
AmazonAmazon.S3.ModelCopyObjectRequestWithDirective(S3MetadataDirective) Did this page help you?   Yes   No    Tell us about it...

Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.

Valid values: COPY | REPLACE. Default: COPY.

Declaration Syntax
[ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See for more information.")]
public CopyObjectRequest WithDirective(
	S3MetadataDirective directive
directive (S3MetadataDirective)
Metadata directive
Return Value
the request with the Directive set
If Directive is set to COPY, the metadata remains unchanged, otherwise, all original metadata is replaced by the metadata you specify. You cannot copy an object to itself unless the Directive property is specified and its value set to REPLACE.

Assembly: AWSSDK (Module: AWSSDK) Version: (