Amazon.S3.Util.AmazonS3Util.SetObjectStorageClass C# (CSharp) Method

SetObjectStorageClass() public static method

Sets the storage class for the S3 Object to the value specified.
public static SetObjectStorageClass ( IAmazonS3 s3Client, string bucketName, string key, S3StorageClass sClass ) : void
s3Client IAmazonS3 The Amazon S3 Client to use for S3 specific operations.
bucketName string The name of the bucket in which the key is stored
key string The key of the S3 Object whose storage class needs changing
sClass S3StorageClass The new Storage Class for the object
return void
        public static void SetObjectStorageClass(IAmazonS3 s3Client, string bucketName, string key, S3StorageClass sClass)
        {
            SetObjectStorageClass(s3Client, bucketName, key, null, sClass);
        }

Same methods

AmazonS3Util::SetObjectStorageClass ( IAmazonS3 s3Client, string bucketName, string key, string version, S3StorageClass sClass ) : void