/// <summary> /// Sets the Directive property for this request. The /// default value for the directive is COPY. /// </summary> /// <param name="directive">The value that Directive is set to</param> /// <returns>the response with the Directive set</returns> /// <remarks> /// Specifies whether the metadata is copied from /// the source object or replaced with metadata /// provided in the request. If 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. /// </remarks> public CopyObjectRequest WithDirective(S3MetadataDirective directive) { this.directive = directive; return(this); }
/// <summary> /// <para> /// Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. /// </para> /// <para> /// Valid values: COPY | REPLACE. Default: COPY. /// </para> /// </summary> /// <remarks> /// 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. /// </remarks> /// <param name="directive">Metadata directive</param> /// <returns>the request with the Directive set</returns> public CopyObjectRequest WithDirective(S3MetadataDirective directive) { this.directive = directive; return this; }