diff --git a/generator/ServiceClientGeneratorLib/ServiceModel.cs b/generator/ServiceClientGeneratorLib/ServiceModel.cs index 370b5c3ef39f..6485dc260992 100644 --- a/generator/ServiceClientGeneratorLib/ServiceModel.cs +++ b/generator/ServiceClientGeneratorLib/ServiceModel.cs @@ -572,6 +572,7 @@ public List S3AllowListOperations new Operation(this, "DeleteBucketAnalyticsConfiguration", DocumentRoot[OperationsKey]["DeleteBucketAnalyticsConfiguration"]), new Operation(this, "DeleteBucketIntelligentTieringConfiguration", DocumentRoot[OperationsKey]["DeleteBucketIntelligentTieringConfiguration"]), new Operation(this, "DeleteBucketInventoryConfiguration", DocumentRoot[OperationsKey]["DeleteBucketInventoryConfiguration"]), + new Operation(this,"PutBucketRequestPayment", DocumentRoot[OperationsKey]["PutBucketRequestPayment"]) }; } diff --git a/generator/ServiceModels/s3/s3.customizations.json b/generator/ServiceModels/s3/s3.customizations.json index 835a5bd6e3fc..7e9fc6818404 100644 --- a/generator/ServiceModels/s3/s3.customizations.json +++ b/generator/ServiceModels/s3/s3.customizations.json @@ -1180,6 +1180,13 @@ "ExpectedBucketOwner": {"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]} } ] + }, + "PutBucketRequestPaymentRequest":{ + "modify":[ + { + "ExpectedBucketOwner":{"injectXmlIsSet":["return !String.IsNullOrEmpty(this._expectedBucketOwner);"]} + } + ] } }, diff --git a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketRequestPaymentRequestMarshaller.cs b/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketRequestPaymentRequestMarshaller.cs deleted file mode 100644 index a8b49d35496f..000000000000 --- a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketRequestPaymentRequestMarshaller.cs +++ /dev/null @@ -1,115 +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 Amazon.Util; -using Amazon.Runtime.Internal.Util; - -#pragma warning disable 1591 - -namespace Amazon.S3.Model.Internal.MarshallTransformations -{ - /// - /// Put Bucket Request Payment Request Marshaller - /// - public class PutBucketRequestPaymentRequestMarshaller : IMarshaller ,IMarshaller - { - public IRequest Marshall(Amazon.Runtime.AmazonWebServiceRequest input) - { - return this.Marshall((PutBucketRequestPaymentRequest)input); - } - - public IRequest Marshall(PutBucketRequestPaymentRequest putBucketRequestPaymentRequest) - { - IRequest request = new DefaultRequest(putBucketRequestPaymentRequest, "Amazon.S3"); - - request.HttpMethod = "PUT"; - - if (putBucketRequestPaymentRequest.IsSetChecksumAlgorithm()) - request.Headers.Add(S3Constants.AmzHeaderSdkChecksumAlgorithm, S3Transforms.ToStringValue(putBucketRequestPaymentRequest.ChecksumAlgorithm)); - - if (putBucketRequestPaymentRequest.IsSetExpectedBucketOwner()) - request.Headers.Add(S3Constants.AmzHeaderExpectedBucketOwner, S3Transforms.ToStringValue(putBucketRequestPaymentRequest.ExpectedBucketOwner)); - - if (string.IsNullOrEmpty(putBucketRequestPaymentRequest.BucketName)) - throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "PutBucketRequestPaymentRequest.BucketName"); - - request.ResourcePath = "/"; - - request.AddSubResource("requestPayment"); - - 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 requestPaymentConfigurationRequestPaymentConfiguration = putBucketRequestPaymentRequest.RequestPaymentConfiguration; - if (requestPaymentConfigurationRequestPaymentConfiguration != null) - { - xmlWriter.WriteStartElement("RequestPaymentConfiguration", S3Constants.S3RequestXmlNamespace); - - if (requestPaymentConfigurationRequestPaymentConfiguration.IsSetPayer()) - { - xmlWriter.WriteElementString("Payer", S3Transforms.ToXmlStringValue(requestPaymentConfigurationRequestPaymentConfiguration.Payer)); - } - xmlWriter.WriteEndElement(); - } - } - - try - { - var content = stringWriter.ToString(); - request.Content = Encoding.UTF8.GetBytes(content); - request.Headers[HeaderKeys.ContentTypeHeader] = "application/xml"; - - ChecksumUtils.SetChecksumData( - request, - putBucketRequestPaymentRequest.ChecksumAlgorithm, - fallbackToMD5: false, - isRequestChecksumRequired: true, - headerName: S3Constants.AmzHeaderSdkChecksumAlgorithm - ); - } - catch (EncoderFallbackException e) - { - throw new AmazonServiceException("Unable to marshall request to XML", e); - } - - return request; - } - - private static PutBucketRequestPaymentRequestMarshaller _instance; - - /// - /// Singleton for marshaller - /// - public static PutBucketRequestPaymentRequestMarshaller Instance - { - get - { - if (_instance == null) - { - _instance = new PutBucketRequestPaymentRequestMarshaller(); - } - return _instance; - } - } - } -} - diff --git a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketRequestPaymentResponseUnmarshaller.cs b/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketRequestPaymentResponseUnmarshaller.cs deleted file mode 100644 index 8302d3e00c15..000000000000 --- a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketRequestPaymentResponseUnmarshaller.cs +++ /dev/null @@ -1,61 +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 PutBucketRequestPayment operation - /// - public class PutBucketRequestPaymentResponseUnmarshaller : S3ReponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) - { - PutBucketRequestPaymentResponse response = new PutBucketRequestPaymentResponse(); - - - return response; - } - - private static PutBucketRequestPaymentResponseUnmarshaller _instance; - - /// - /// Singleton for the unmarshaller - /// - public static PutBucketRequestPaymentResponseUnmarshaller Instance - { - get - { - if (_instance == null) - { - _instance = new PutBucketRequestPaymentResponseUnmarshaller(); - } - return _instance; - } - } - } -} - diff --git a/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketRequestPaymentRequestMarshaller.cs b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketRequestPaymentRequestMarshaller.cs new file mode 100644 index 000000000000..5bf510f56ff7 --- /dev/null +++ b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketRequestPaymentRequestMarshaller.cs @@ -0,0 +1,135 @@ +/* + * 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 +{ + /// + /// PutBucketRequestPayment Request Marshaller + /// + public partial class PutBucketRequestPaymentRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((PutBucketRequestPaymentRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(PutBucketRequestPaymentRequest publicRequest) + { + var request = new DefaultRequest(publicRequest, "Amazon.S3"); + PreMarshallCustomization(request, publicRequest); + request.HttpMethod = "PUT"; + request.AddSubResource("requestPayment"); + + if (publicRequest.IsSetChecksumAlgorithm()) + { + request.Headers["x-amz-sdk-checksum-algorithm"] = publicRequest.ChecksumAlgorithm; + } + + if (publicRequest.IsSetContentMD5()) + { + request.Headers["Content-MD5"] = publicRequest.ContentMD5; + } + + 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.", "PutBucketRequestPaymentRequest.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.IsSetRequestPaymentConfiguration()) + { + xmlWriter.WriteStartElement("RequestPaymentConfiguration", "http://s3.amazonaws.com/doc/2006-03-01/"); + if(publicRequest.RequestPaymentConfiguration.IsSetPayer()) + xmlWriter.WriteElementString("Payer", StringUtils.FromString(publicRequest.RequestPaymentConfiguration.Payer)); + + + 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: true, + 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 PutBucketRequestPaymentRequestMarshaller _instance = new PutBucketRequestPaymentRequestMarshaller(); + + internal static PutBucketRequestPaymentRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static PutBucketRequestPaymentRequestMarshaller Instance + { + get + { + return _instance; + } + } + + partial void PostMarshallCustomization(DefaultRequest defaultRequest, PutBucketRequestPaymentRequest publicRequest); + partial void PreMarshallCustomization(DefaultRequest defaultRequest, PutBucketRequestPaymentRequest publicRequest); + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketRequestPaymentResponseUnmarshaller.cs b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketRequestPaymentResponseUnmarshaller.cs new file mode 100644 index 000000000000..aae496f88a50 --- /dev/null +++ b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/PutBucketRequestPaymentResponseUnmarshaller.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 PutBucketRequestPayment operation + /// + public partial class PutBucketRequestPaymentResponseUnmarshaller : S3ReponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) + { + PutBucketRequestPaymentResponse response = new PutBucketRequestPaymentResponse(); + + 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, PutBucketRequestPaymentResponse response); + + private static PutBucketRequestPaymentResponseUnmarshaller _instance = new PutBucketRequestPaymentResponseUnmarshaller(); + + internal static PutBucketRequestPaymentResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static PutBucketRequestPaymentResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Custom/Model/PutBucketRequestPaymentRequest.cs b/sdk/src/Services/S3/Generated/Model/PutBucketRequestPaymentRequest.cs similarity index 55% rename from sdk/src/Services/S3/Custom/Model/PutBucketRequestPaymentRequest.cs rename to sdk/src/Services/S3/Generated/Model/PutBucketRequestPaymentRequest.cs index c453c693cc7b..c0d1a3981b99 100644 --- a/sdk/src/Services/S3/Custom/Model/PutBucketRequestPaymentRequest.cs +++ b/sdk/src/Services/S3/Generated/Model/PutBucketRequestPaymentRequest.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 PutBucketRequestPayment operation. /// /// - /// This operation is not supported by directory buckets. + /// This operation is not supported for directory buckets. /// /// /// @@ -39,7 +45,7 @@ namespace Amazon.S3.Model /// /// /// - /// The following operations are related to PutBucketRequestPayment: + /// The following operations are related to PutBucketRequestPayment: /// /// + /// + /// + /// 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 PutBucketRequestPaymentRequest : AmazonWebServiceRequest { - private string bucketName; + private string _bucketName; private ChecksumAlgorithm _checksumAlgorithm; - private RequestPaymentConfiguration requestPaymentConfiguration; - private string expectedBucketOwner; + private string _contentMD5; + private string _expectedBucketOwner; + private RequestPaymentConfiguration _requestPaymentConfiguration; /// - /// The name of the bucket to set payment config. + /// Gets and sets the property BucketName. + /// + /// The bucket name. + /// /// + [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. /// /// @@ -105,18 +121,29 @@ internal bool IsSetChecksumAlgorithm() } /// - /// Gets and sets request payment configuration + /// Gets and sets the property ContentMD5. + /// + /// The Base64 encoded 128-bit MD5 digest of the data. You must use this header + /// as a message integrity check to verify that the request body was not corrupted in + /// transit. For more information, see RFC + /// 1864. + /// + /// + /// + /// For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon + /// Web Services SDKs, this field is calculated automatically. + /// /// - public RequestPaymentConfiguration RequestPaymentConfiguration + public string ContentMD5 { - get { return this.requestPaymentConfiguration; } - set { this.requestPaymentConfiguration = value; } + get { return this._contentMD5; } + set { this._contentMD5 = value; } } - // Check to see if RequestPaymentConfiguration property is set - internal bool IsSetRequestPaymentConfiguration() + // Check to see if ContentMD5 property is set + internal bool IsSetContentMD5() { - return this.requestPaymentConfiguration != null; + return this._contentMD5 != null; } /// @@ -124,23 +151,39 @@ internal bool IsSetRequestPaymentConfiguration() /// /// 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; } + } + + // Check to see if ExpectedBucketOwner property is set + internal bool IsSetExpectedBucketOwner() + { + return !String.IsNullOrEmpty(this._expectedBucketOwner); } /// - /// Checks to see if ExpectedBucketOwner is set. + /// Gets and sets the property RequestPaymentConfiguration. + /// + /// Container for Payer. + /// /// - /// true, if ExpectedBucketOwner property is set. - internal bool IsSetExpectedBucketOwner() + [AWSProperty(Required=true)] + public RequestPaymentConfiguration RequestPaymentConfiguration { - return !String.IsNullOrEmpty(this.expectedBucketOwner); + get { return this._requestPaymentConfiguration; } + set { this._requestPaymentConfiguration = value; } } + + // Check to see if RequestPaymentConfiguration property is set + internal bool IsSetRequestPaymentConfiguration() + { + return this._requestPaymentConfiguration != null; + } + } -} - +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Custom/Model/PutBucketRequestPaymentResponse.cs b/sdk/src/Services/S3/Generated/Model/PutBucketRequestPaymentResponse.cs similarity index 74% rename from sdk/src/Services/S3/Custom/Model/PutBucketRequestPaymentResponse.cs rename to sdk/src/Services/S3/Generated/Model/PutBucketRequestPaymentResponse.cs index 2cb3dbf52d59..21dc09397d7a 100644 --- a/sdk/src/Services/S3/Custom/Model/PutBucketRequestPaymentResponse.cs +++ b/sdk/src/Services/S3/Generated/Model/PutBucketRequestPaymentResponse.cs @@ -12,21 +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 { /// - /// Returns information about the PutBucketRequestPayment response metadata. - /// The PutBucketRequestPayment operation has a void result type. + /// This is the response object from the PutBucketRequestPayment operation. /// public partial class PutBucketRequestPaymentResponse : AmazonWebServiceResponse { + } -} - +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Custom/Model/RequestPaymentConfiguration.cs b/sdk/src/Services/S3/Generated/Model/RequestPaymentConfiguration.cs similarity index 62% rename from sdk/src/Services/S3/Custom/Model/RequestPaymentConfiguration.cs rename to sdk/src/Services/S3/Generated/Model/RequestPaymentConfiguration.cs index 380eb6758c32..6282668da465 100644 --- a/sdk/src/Services/S3/Custom/Model/RequestPaymentConfiguration.cs +++ b/sdk/src/Services/S3/Generated/Model/RequestPaymentConfiguration.cs @@ -12,35 +12,48 @@ * 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 { /// - /// Request Payment Configuration + /// Container for Payer. /// - public class RequestPaymentConfiguration + public partial class RequestPaymentConfiguration { - - private string payer; + private String _payer; /// + /// Gets and sets the property Payer. + /// /// Specifies who pays for the download and request fees. + /// /// - public string Payer + [AWSProperty(Required=true)] + public String Payer { - get { return this.payer; } - set { this.payer = value; } + get { return this._payer; } + set { this._payer = value; } } // Check to see if Payer property is set internal bool IsSetPayer() { - return this.payer != null; + return this._payer != null; } + } -} +} \ No newline at end of file