The SetBucketVersioningRequest contains the parameters used for the SetBucketVersioning operation.
Required Parameters: BucketName, VersioningConfig
MfaCodes property is required if VersioningConfig.EnableMfaDelete = true

If you want to enable the use of a multi-factor authentication device on this bucket, please set the EnableMfaDelete property of VersioningConfig. If EnableMfaDelete is set to true, the MfaCodes property needs to be set with the Serial number and Current Token displayed on the MFA device.

Namespace: Amazon.S3.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class SetBucketVersioningRequest : S3Request
Public Class SetBucketVersioningRequest _
	Inherits S3Request
public ref class SetBucketVersioningRequest : public S3Request

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
SetBucketVersioningRequest()()()()
Initializes a new instance of the SetBucketVersioningRequest class
AddHeader(String, String)
Adds the header to the collection of headers for the request.
(Inherited from S3Request.)
AddHeaders(NameValueCollection)
Adds all of the key/value pairs from collection into our request header.
(Inherited from S3Request.)
BucketName
Gets and sets the BucketName property.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
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
Gets and sets the InputStream property.
(Inherited from S3Request.)
MfaCodes
Gets and Sets the MfaCodes property. The MfaCodes Tuple associates the Serial Number and the current Token/Code displayed on the Multi-Factor Authentication device associated with your AWS Account
ToString()()()() (Inherited from S3Request.)
VersioningConfig
Gets and sets the VersioningConfig property. Once Versioning has been "Enabled" on a bucket, it can be "Suspended" but cannot be switched "Off". If EnableMfaDelete is set, the MfaCodes property needs to contain the Serial of and current Token displayed on the MFA device.
WithBucketName(String)
Sets the BucketName property for this request. The Versioning Status of this S3 Bucket is modified by the request.
WithInputStream(Stream)
Sets the InputStream property.
(Inherited from S3Request.)
WithMfaCodes(String, String)
Sets the MfaCodes property. The MfaCodes Tuple associates the Serial Number and the current Token/Code displayed on the Multi-Factor Authentication device associated with your AWS Account
WithVersioningConfig(S3BucketVersioningConfig)
Sets the VersioningConfig property for this request. The request modifies the Versioning Status of the S3 Bucket to this value.

Inheritance Hierarchy

System..::..Object
  Amazon.S3.Model..::..S3Request
    Amazon.S3.Model..::..SetBucketVersioningRequest

See Also