/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.S3.Model { /// /// Container for the parameters to the GetBucketAccelerateConfiguration operation. /// This implementation of the GET action uses the accelerate subresource /// to return the Transfer Acceleration state of a bucket, which is either Enabled /// or Suspended. Amazon S3 Transfer Acceleration is a bucket-level feature /// that enables you to perform faster data transfers to and from Amazon S3. /// /// /// /// To use this operation, you must have permission to perform the s3:GetAccelerateConfiguration /// action. The bucket owner has this permission by default. The bucket owner can grant /// this permission to others. For more information about permissions, see Permissions /// Related to Bucket Subresource Operations and Managing /// Access Permissions to your Amazon S3 Resources in the Amazon S3 User Guide. /// /// /// /// You set the Transfer Acceleration state of an existing bucket to Enabled /// or Suspended by using the PutBucketAccelerateConfiguration /// operation. /// /// /// /// A GET accelerate request does not return a state value for a bucket that /// has no transfer acceleration state. A bucket has no Transfer Acceleration state if /// a state has never been set on the bucket. /// /// /// /// For more information about transfer acceleration, see Transfer /// Acceleration in the Amazon S3 User Guide. /// ///

Related Resources /// ///

///
public partial class GetBucketAccelerateConfigurationRequest : AmazonWebServiceRequest { private string _bucketName; private string _expectedBucketOwner; private RequestPayer _requestPayer; /// /// Gets and sets the property BucketName. /// /// The name of the bucket for which the accelerate configuration is retrieved. /// /// public string BucketName { get { return this._bucketName; } set { this._bucketName = value; } } // Check to see if BucketName property is set internal bool IsSetBucketName() { return this._bucketName != null; } /// /// Gets and sets the property ExpectedBucketOwner. /// /// The account ID of the expected bucket owner. If the bucket is owned by a different /// account, the request fails with the HTTP status code 403 Forbidden (access /// denied). /// /// public string ExpectedBucketOwner { get { return this._expectedBucketOwner; } set { this._expectedBucketOwner = value; } } /// /// Checks to see if ExpectedBucketOwner is set. /// /// true, if ExpectedBucketOwner property is set. internal bool IsSetExpectedBucketOwner() { return !String.IsNullOrEmpty(this._expectedBucketOwner); } /// /// Gets and sets the property RequestPayer. /// public RequestPayer RequestPayer { get { return this._requestPayer; } set { this._requestPayer = value; } } // Check to see if RequestPayer property is set internal bool IsSetRequestPayer() { return this._requestPayer != null; } } }