diff --git a/generator/ServiceClientGeneratorLib/ServiceModel.cs b/generator/ServiceClientGeneratorLib/ServiceModel.cs index 61b8e7ba4a0c..370b5c3ef39f 100644 --- a/generator/ServiceClientGeneratorLib/ServiceModel.cs +++ b/generator/ServiceClientGeneratorLib/ServiceModel.cs @@ -561,7 +561,7 @@ public List S3AllowListOperations new Operation(this, "ListBucketIntelligentTieringConfigurations", DocumentRoot[OperationsKey]["ListBucketIntelligentTieringConfigurations"]), new Operation(this, "ListBucketInventoryConfigurations", DocumentRoot[OperationsKey]["ListBucketInventoryConfigurations"]), new Operation(this, "ListBucketMetricsConfigurations", DocumentRoot[OperationsKey]["ListBucketMetricsConfigurations"]), - //new Operation(this, "PutBucketAccelerateConfiguration", DocumentRoot[OperationsKey]["PutBucketAccelerateConfiguration"]), + new Operation(this, "PutBucketAccelerateConfiguration", DocumentRoot[OperationsKey]["PutBucketAccelerateConfiguration"]), //new Operation(this, "RestoreObject", DocumentRoot[OperationsKey]["RestoreObject"]), //new Operation(this, "SelectObjectContent", DocumentRoot[OperationsKey]["SelectObjectContent"]), new Operation(this, "PutBucketAnalyticsConfiguration" , DocumentRoot[OperationsKey]["PutBucketAnalyticsConfiguration"]), diff --git a/generator/ServiceModels/s3/s3.customizations.json b/generator/ServiceModels/s3/s3.customizations.json index 8d40ec042246..835a5bd6e3fc 100644 --- a/generator/ServiceModels/s3/s3.customizations.json +++ b/generator/ServiceModels/s3/s3.customizations.json @@ -1173,6 +1173,13 @@ "ExpectedBucketOwner":{"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]} } ] + }, + "PutBucketAccelerateConfigurationRequest":{ + "modify":[ + { + "ExpectedBucketOwner": {"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]} + } + ] } }, diff --git a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationRequestMarshaller.cs b/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationRequestMarshaller.cs deleted file mode 100644 index 87841a1619f6..000000000000 --- a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationRequestMarshaller.cs +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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.IO; -using System.Xml; -using System.Text; -using Amazon.S3.Util; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using System.Globalization; -using Amazon.Util; -using Amazon.Runtime.Internal.Util; - -#pragma warning disable 1591 - -namespace Amazon.S3.Model.Internal.MarshallTransformations -{ - /// - /// Put Object Acl Request Marshaller - /// - public class PutBucketAccelerateConfigurationRequestMarshaller : IMarshaller, IMarshaller - { - public IRequest Marshall(Amazon.Runtime.AmazonWebServiceRequest input) - { - return this.Marshall((PutBucketAccelerateConfigurationRequest)input); - } - - public IRequest Marshall(PutBucketAccelerateConfigurationRequest putBucketAccelerateRequest) - { - IRequest request = new DefaultRequest(putBucketAccelerateRequest, "Amazon.S3"); - - request.HttpMethod = "PUT"; - - if (putBucketAccelerateRequest.IsSetChecksumAlgorithm()) - request.Headers.Add(S3Constants.AmzHeaderSdkChecksumAlgorithm, S3Transforms.ToStringValue(putBucketAccelerateRequest.ChecksumAlgorithm)); - - if (putBucketAccelerateRequest.IsSetExpectedBucketOwner()) - request.Headers.Add(S3Constants.AmzHeaderExpectedBucketOwner, S3Transforms.ToStringValue(putBucketAccelerateRequest.ExpectedBucketOwner)); - - if (string.IsNullOrEmpty(putBucketAccelerateRequest.BucketName)) - throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "PutBucketAccelerateConfigurationRequest.BucketName"); - - request.ResourcePath = "/"; - - request.AddSubResource("accelerate"); - - var stringWriter = new XMLEncodedStringWriter(System.Globalization.CultureInfo.InvariantCulture); - using (var xmlWriter = XmlWriter.Create(stringWriter, - new XmlWriterSettings() - { - Encoding = Encoding.UTF8, - OmitXmlDeclaration = true, - NewLineHandling = NewLineHandling.Entitize - })) - { - var accelerateConfiguration = putBucketAccelerateRequest.AccelerateConfiguration; - if (accelerateConfiguration != null) - { - xmlWriter.WriteStartElement("AccelerateConfiguration", S3Constants.S3RequestXmlNamespace); - - var accelerateConfigurationStatus = accelerateConfiguration.Status; - if (accelerateConfiguration.IsSetBucketAccelerateStatus() && accelerateConfigurationStatus != null) - { - xmlWriter.WriteElementString("Status", S3Transforms.ToXmlStringValue(accelerateConfiguration.Status)); - } - xmlWriter.WriteEndElement(); - } - } - try - { - var content = stringWriter.ToString(); - request.Content = Encoding.UTF8.GetBytes(content); - request.Headers[HeaderKeys.ContentTypeHeader] = "application/xml"; - - ChecksumUtils.SetChecksumData( - request, - putBucketAccelerateRequest.ChecksumAlgorithm, - fallbackToMD5: false, - isRequestChecksumRequired: false, - headerName: S3Constants.AmzHeaderSdkChecksumAlgorithm - ); - } - catch (EncoderFallbackException e) - { - throw new AmazonServiceException("Unable to marshall request to XML", e); - } - return request; - } - - private static PutBucketAccelerateConfigurationRequestMarshaller _instance; - - /// - /// Singleton for marshaller - /// - public static PutBucketAccelerateConfigurationRequestMarshaller Instance - { - get - { - if (_instance == null) - { - _instance = new PutBucketAccelerateConfigurationRequestMarshaller(); - } - return _instance; - } - } - } -} - diff --git a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationResponseUnmarshaller.cs b/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationResponseUnmarshaller.cs deleted file mode 100644 index 9281864a5575..000000000000 --- a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationResponseUnmarshaller.cs +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.Net; -using System.Collections.Generic; -using Amazon.S3.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; - -namespace Amazon.S3.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for PutBucketAccelerate operation - /// - public class PutBucketAccelerateConfigurationResponseUnmarshaller : S3ReponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) - { - PutBucketAccelerateConfigurationResponse response = new PutBucketAccelerateConfigurationResponse(); - - - return response; - } - - private static PutBucketAccelerateConfigurationResponseUnmarshaller _instance; - - /// - /// Singleton for the unmarshaller - /// - public static PutBucketAccelerateConfigurationResponseUnmarshaller Instance - { - get - { - if (_instance == null) - { - _instance = new PutBucketAccelerateConfigurationResponseUnmarshaller(); - } - return _instance; - } - } - - - } -} - diff --git a/sdk/src/Services/S3/Custom/Model/AccelerateConfiguration.cs b/sdk/src/Services/S3/Generated/Model/AccelerateConfiguration.cs similarity index 56% rename from sdk/src/Services/S3/Custom/Model/AccelerateConfiguration.cs rename to sdk/src/Services/S3/Generated/Model/AccelerateConfiguration.cs index b439f76d9228..26715545291f 100644 --- a/sdk/src/Services/S3/Custom/Model/AccelerateConfiguration.cs +++ b/sdk/src/Services/S3/Generated/Model/AccelerateConfiguration.cs @@ -12,38 +12,49 @@ * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ + +/* + * Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model. + */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; +using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; +#pragma warning disable CS0612,CS0618,CS1570 namespace Amazon.S3.Model { /// - /// Bucket accelerate configuration. + /// Configures the transfer acceleration state for an Amazon S3 bucket. For more information, + /// see Amazon + /// S3 Transfer Acceleration in the Amazon S3 User Guide. /// public partial class AccelerateConfiguration { - private BucketAccelerateStatus status; + private BucketAccelerateStatus _status; /// - /// The accelerate status of the bucket. + /// Gets and sets the property Status. + /// + /// Specifies the transfer acceleration status of the bucket. + /// /// public BucketAccelerateStatus Status { - get { return this.status; } - set { this.status = value; } + get { return this._status; } + set { this._status = value; } } // Check to see if Status property is set - internal bool IsSetBucketAccelerateStatus() + internal bool IsSetStatus() { - return this.status != null; + return this._status != null; } + } -} - +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationRequestMarshaller.cs b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationRequestMarshaller.cs new file mode 100644 index 000000000000..941d2d8c4bac --- /dev/null +++ b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationRequestMarshaller.cs @@ -0,0 +1,130 @@ +/* + * 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. + */ + +/* + * Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using System.Xml; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.S3.Model.Internal.MarshallTransformations +{ + /// + /// PutBucketAccelerateConfiguration Request Marshaller + /// + public partial class PutBucketAccelerateConfigurationRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((PutBucketAccelerateConfigurationRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(PutBucketAccelerateConfigurationRequest publicRequest) + { + var request = new DefaultRequest(publicRequest, "Amazon.S3"); + PreMarshallCustomization(request, publicRequest); + request.HttpMethod = "PUT"; + request.AddSubResource("accelerate"); + + if (publicRequest.IsSetChecksumAlgorithm()) + { + request.Headers["x-amz-sdk-checksum-algorithm"] = publicRequest.ChecksumAlgorithm; + } + + if (publicRequest.IsSetExpectedBucketOwner()) + { + request.Headers["x-amz-expected-bucket-owner"] = publicRequest.ExpectedBucketOwner; + } + if (string.IsNullOrEmpty(publicRequest.BucketName)) + throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "PutBucketAccelerateConfigurationRequest.BucketName"); + request.ResourcePath = "/"; + var stringWriter = new XMLEncodedStringWriter(CultureInfo.InvariantCulture); + using (var xmlWriter = XmlWriter.Create(stringWriter, new XmlWriterSettings() { Encoding = System.Text.Encoding.UTF8, OmitXmlDeclaration = true, NewLineHandling = NewLineHandling.Entitize })) + { + if (publicRequest.IsSetAccelerateConfiguration()) + { + xmlWriter.WriteStartElement("AccelerateConfiguration", "http://s3.amazonaws.com/doc/2006-03-01/"); + if(publicRequest.AccelerateConfiguration.IsSetStatus()) + xmlWriter.WriteElementString("Status", StringUtils.FromString(publicRequest.AccelerateConfiguration.Status)); + + + xmlWriter.WriteEndElement(); + } + } + PostMarshallCustomization(request, publicRequest); + try + { + string content = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(content); + request.Headers["Content-Type"] = "application/xml"; + ChecksumUtils.SetChecksumData( + request, + publicRequest.ChecksumAlgorithm, + fallbackToMD5: false, + isRequestChecksumRequired: false, + headerName: "x-amz-sdk-checksum-algorithm" + ); + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2006-03-01"; + } + catch (EncoderFallbackException e) + { + throw new AmazonServiceException("Unable to marshall request to XML", e); + } + return request; + } + private static PutBucketAccelerateConfigurationRequestMarshaller _instance = new PutBucketAccelerateConfigurationRequestMarshaller(); + + internal static PutBucketAccelerateConfigurationRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static PutBucketAccelerateConfigurationRequestMarshaller Instance + { + get + { + return _instance; + } + } + + partial void PostMarshallCustomization(DefaultRequest defaultRequest, PutBucketAccelerateConfigurationRequest publicRequest); + partial void PreMarshallCustomization(DefaultRequest defaultRequest, PutBucketAccelerateConfigurationRequest publicRequest); + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationResponseUnmarshaller.cs b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationResponseUnmarshaller.cs new file mode 100644 index 000000000000..bd583695b0f0 --- /dev/null +++ b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketAccelerateConfigurationResponseUnmarshaller.cs @@ -0,0 +1,98 @@ +/* + * 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. + */ + +/* + * Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.S3.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for PutBucketAccelerateConfiguration operation + /// + public partial class PutBucketAccelerateConfigurationResponseUnmarshaller : S3ReponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) + { + PutBucketAccelerateConfigurationResponse response = new PutBucketAccelerateConfigurationResponse(); + + PostUnmarshallCustomization(context, response); + return response; + } + + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + S3ErrorResponse errorResponse = S3ErrorResponseUnmarshaller.Instance.Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) + { + } + return base.ConstructS3Exception(context, errorResponse, innerException, statusCode); + } + + partial void PostUnmarshallCustomization(XmlUnmarshallerContext context, PutBucketAccelerateConfigurationResponse response); + + private static PutBucketAccelerateConfigurationResponseUnmarshaller _instance = new PutBucketAccelerateConfigurationResponseUnmarshaller(); + + internal static PutBucketAccelerateConfigurationResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static PutBucketAccelerateConfigurationResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Custom/Model/PutBucketAccelerateConfigurationRequest.cs b/sdk/src/Services/S3/Generated/Model/PutBucketAccelerateConfigurationRequest.cs similarity index 68% rename from sdk/src/Services/S3/Custom/Model/PutBucketAccelerateConfigurationRequest.cs rename to sdk/src/Services/S3/Generated/Model/PutBucketAccelerateConfigurationRequest.cs index ddf9eebbdde3..137a66782946 100644 --- a/sdk/src/Services/S3/Custom/Model/PutBucketAccelerateConfigurationRequest.cs +++ b/sdk/src/Services/S3/Generated/Model/PutBucketAccelerateConfigurationRequest.cs @@ -12,22 +12,28 @@ * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ + +/* + * Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model. + */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; +using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; +#pragma warning disable CS0612,CS0618,CS1570 namespace Amazon.S3.Model { /// /// Container for the parameters to the PutBucketAccelerateConfiguration operation. /// /// - /// This operation is not supported by directory buckets. + /// This operation is not supported for directory buckets. /// /// /// @@ -37,7 +43,7 @@ namespace Amazon.S3.Model /// /// /// - /// To use this operation, you must have permission to perform the s3:PutAccelerateConfiguration + /// To use this operation, you must have permission to perform the s3:PutAccelerateConfiguration /// 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 @@ -50,11 +56,11 @@ namespace Amazon.S3.Model /// ///
  • /// - /// Enabled � Enables accelerated data transfers to the bucket. + /// Enabled – Enables accelerated data transfers to the bucket. /// ///
  • /// - /// Suspended � Disables accelerated data transfers to the bucket. + /// Suspended – Disables accelerated data transfers to the bucket. /// ///
/// @@ -78,7 +84,7 @@ namespace Amazon.S3.Model /// /// /// - /// The following operations are related to PutBucketAccelerateConfiguration: + /// The following operations are related to PutBucketAccelerateConfiguration: /// ///
+ /// + /// + /// You must URL encode any signed header values that contain spaces. For example, if + /// your header value is my file.txt, containing two spaces after my, you + /// must URL encode this value to my%20%20file.txt. + /// + /// ///
public partial class PutBucketAccelerateConfigurationRequest : AmazonWebServiceRequest { - private string bucketName; + private AccelerateConfiguration _accelerateConfiguration; + private string _bucketName; private ChecksumAlgorithm _checksumAlgorithm; - private AccelerateConfiguration accelerateConfiguration; - private string expectedBucketOwner; + private string _expectedBucketOwner; /// - /// The name of the bucket for which the accelerate configuration is set. + /// Gets and sets the property AccelerateConfiguration. + /// + /// Container for setting the transfer acceleration state. + /// /// + [AWSProperty(Required=true)] + public AccelerateConfiguration AccelerateConfiguration + { + get { return this._accelerateConfiguration; } + set { this._accelerateConfiguration = value; } + } + + // Check to see if AccelerateConfiguration property is set + internal bool IsSetAccelerateConfiguration() + { + return this._accelerateConfiguration != null; + } + + /// + /// Gets and sets the property BucketName. + /// + /// The name of the bucket for which the accelerate configuration is set. + /// + /// + [AWSProperty(Required=true)] public string BucketName { - get { return this.bucketName; } - set { this.bucketName = value; } + get { return this._bucketName; } + set { this._bucketName = value; } } - // Check to see if Bucket property is set + // Check to see if BucketName property is set internal bool IsSetBucketName() { - return this.BucketName != null; + return this._bucketName != null; } /// /// Gets and sets the property ChecksumAlgorithm. /// - /// Indicates the algorithm used to create the checksum for the object when you use the + /// Indicates the algorithm used to create the checksum for the request when you use the /// SDK. This header will not provide any additional functionality if you don't use the - /// SDK. When you send this header, there must be a corresponding x-amz-checksum - /// or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request - /// with the HTTP status code 400 Bad Request. For more information, see - /// Checking + /// SDK. When you send this header, there must be a corresponding x-amz-checksum + /// or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the + /// HTTP status code 400 Bad Request. For more information, see Checking /// object integrity in the Amazon S3 User Guide. /// /// /// - /// If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm + /// If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm /// parameter. /// /// @@ -143,44 +177,25 @@ internal bool IsSetChecksumAlgorithm() return this._checksumAlgorithm != null; } - /// - /// Accelerate configuration for the bucket. - /// - public AccelerateConfiguration AccelerateConfiguration - { - get { return this.accelerateConfiguration; } - set { this.accelerateConfiguration = value; } - } - - // Check to see if AccelerateConfiguration property is set - internal bool IsSetAccelerateConfiguration() - { - return this.AccelerateConfiguration != null; - } - /// /// Gets and sets the property ExpectedBucketOwner. /// /// The account ID of the expected bucket owner. If the account ID that you provide does /// not match the actual owner of the bucket, the request fails with the HTTP status code - /// 403 Forbidden (access denied). + /// 403 Forbidden (access denied). /// /// public string ExpectedBucketOwner { - get { return this.expectedBucketOwner; } - set { this.expectedBucketOwner = value; } + get { return this._expectedBucketOwner; } + set { this._expectedBucketOwner = value; } } - /// - /// Checks to see if ExpectedBucketOwner is set. - /// - /// true, if ExpectedBucketOwner property is set. + // Check to see if ExpectedBucketOwner property is set internal bool IsSetExpectedBucketOwner() { - return !String.IsNullOrEmpty(this.expectedBucketOwner); + return !String.IsNullOrEmpty(this._expectedBucketOwner); } } -} - +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Custom/Model/PutBucketAccelerateConfiguarationResponse.cs b/sdk/src/Services/S3/Generated/Model/PutBucketAccelerateConfigurationResponse.cs similarity index 77% rename from sdk/src/Services/S3/Custom/Model/PutBucketAccelerateConfiguarationResponse.cs rename to sdk/src/Services/S3/Generated/Model/PutBucketAccelerateConfigurationResponse.cs index ddeb1e8a73fe..35b8423cc2f5 100644 --- a/sdk/src/Services/S3/Custom/Model/PutBucketAccelerateConfiguarationResponse.cs +++ b/sdk/src/Services/S3/Generated/Model/PutBucketAccelerateConfigurationResponse.cs @@ -12,23 +12,28 @@ * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ + +/* + * Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model. + */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; +using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; +#pragma warning disable CS0612,CS0618,CS1570 namespace Amazon.S3.Model { /// - /// The response for the PutBucketAccelerateConfiguration operation. - /// Adds an object to a bucket. + /// This is the response object from the PutBucketAccelerateConfiguration operation. /// public partial class PutBucketAccelerateConfigurationResponse : AmazonWebServiceResponse { + } -} - +} \ No newline at end of file