Sets an ETag to be matched as a pre-condition for copying the source object,
otherwise returns a PreconditionFailed.
Declaration Syntax
C# |
[ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")] public CopyObjectRequest WithETagToMatch( string etagToMatch )
Parameters
- etagToMatch (String)
- The ETag value to be matched
Return Value
this instance
Remarks
Copies the object if its entity tag (ETag) matches
the specified tag; otherwise return a 412 (precondition failed).
Constraints: This property can be used with IfUnmodifiedSince,
but cannot be used with other conditional copy properties.