diff --git a/generator/ServiceClientGeneratorLib/ServiceModel.cs b/generator/ServiceClientGeneratorLib/ServiceModel.cs index 8fb6e75bf7c4..1ff42c46bc5f 100644 --- a/generator/ServiceClientGeneratorLib/ServiceModel.cs +++ b/generator/ServiceClientGeneratorLib/ServiceModel.cs @@ -558,7 +558,7 @@ public List S3AllowListOperations //new Operation(this, "GetBucketVersioning", DocumentRoot[OperationsKey]["GetBucketVersioning"]), //new Operation(this, "GetBucketWebsite", DocumentRoot[OperationsKey]["GetBucketWebsite"]), new Operation(this, "ListBucketAnalyticsConfigurations", DocumentRoot[OperationsKey]["ListBucketAnalyticsConfigurations"]), - //new Operation(this, "ListBucketIntelligentTieringConfigurations", DocumentRoot[OperationsKey]["ListBucketIntelligentTieringConfigurations"]), + 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"]), diff --git a/generator/ServiceModels/s3/s3.customizations.json b/generator/ServiceModels/s3/s3.customizations.json index 78d1918f216a..9693ee2d6a36 100644 --- a/generator/ServiceModels/s3/s3.customizations.json +++ b/generator/ServiceModels/s3/s3.customizations.json @@ -1044,6 +1044,31 @@ "Id" : {"emitPropertyName": "IntelligentTieringId"} } ] + }, + "ListBucketIntelligentTieringConfigurationsRequest":{ + "modify":[ + { + "ContinuationToken":{ + "injectXmlIsSet":[ + "return !string.IsNullOrEmpty(this._continuationToken);" + ] + } + } + ] + }, + "ListBucketIntelligentTieringConfigurationsOutput":{ + "modify":[ + { + "ContinuationToken":{ + "injectXmlIsSet":[ "return !string.IsNullOrEmpty(this._continuationToken);"] + } + }, + { + "NextContinuationToken":{ + "injectXmlIsSet":["return !string.IsNullOrEmpty(this._nextContinuationToken);"] + } + } + ] } }, "operationModifiers": { diff --git a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsRequestMarshaller.cs b/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsRequestMarshaller.cs deleted file mode 100644 index 60447e8fe01f..000000000000 --- a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsRequestMarshaller.cs +++ /dev/null @@ -1,79 +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 Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.S3.Util; -using System; -using System.Collections.Generic; -using System.Text; - -#pragma warning disable 1591 - -namespace Amazon.S3.Model.Internal.MarshallTransformations -{ - /// - /// Request Marshaller for ListBucketIntelligentTieringConfigurations - /// - - public class ListBucketIntelligentTieringConfigurationsRequestMarshaller : IMarshaller, IMarshaller - { - public IRequest Marshall(Amazon.Runtime.AmazonWebServiceRequest input) - { - return this.Marshall((ListBucketIntelligentTieringConfigurationsRequest)input); - } - - public IRequest Marshall(ListBucketIntelligentTieringConfigurationsRequest listBucketIntelligentTieringConfigurationsRequest) - { - IRequest request = new DefaultRequest(listBucketIntelligentTieringConfigurationsRequest, "Amazon.S3"); - - request.HttpMethod = "GET"; - - if (string.IsNullOrEmpty(listBucketIntelligentTieringConfigurationsRequest.BucketName)) - throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "listBucketIntelligentTieringConfigurationsRequest.BucketName"); - - if (listBucketIntelligentTieringConfigurationsRequest.IsSetExpectedBucketOwner()) - request.Headers.Add(S3Constants.AmzHeaderExpectedBucketOwner, S3Transforms.ToStringValue(listBucketIntelligentTieringConfigurationsRequest.ExpectedBucketOwner)); - - request.ResourcePath = "/"; - request.AddSubResource("intelligent-tiering"); - if (listBucketIntelligentTieringConfigurationsRequest.IsSetContinuationToken()) - { - request.AddSubResource("continuation-token", listBucketIntelligentTieringConfigurationsRequest.ContinuationToken.ToString()); - } - - request.UseQueryString = true; - - return request; - } - - private static ListBucketIntelligentTieringConfigurationsRequestMarshaller _instance; - - /// - /// Singleton for marshaller - /// - public static ListBucketIntelligentTieringConfigurationsRequestMarshaller Instance - { - get - { - if (_instance == null) - { - _instance = new ListBucketIntelligentTieringConfigurationsRequestMarshaller(); - } - return _instance; - } - } - } -} diff --git a/sdk/src/Services/S3/Custom/Model/ListBucketIntelligentTieringConfigurationsResponse.cs b/sdk/src/Services/S3/Custom/Model/ListBucketIntelligentTieringConfigurationsResponse.cs deleted file mode 100644 index cf3f53b5f458..000000000000 --- a/sdk/src/Services/S3/Custom/Model/ListBucketIntelligentTieringConfigurationsResponse.cs +++ /dev/null @@ -1,99 +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 Amazon.Runtime; -using System; -using System.Collections.Generic; -using System.Text; - -namespace Amazon.S3.Model -{ - /// - /// Response for the ListBucketIntelligentTieringConfigurations operation. - /// - public partial class ListBucketIntelligentTieringConfigurationsResponse : AmazonWebServiceResponse - { - private string continuationToken; - private List intelligentTieringConfigurationList = AWSConfigs.InitializeCollections ? new List() : null; - private bool? isTruncated; - private string nextContinuationToken; - - /// - /// The ContinuationToken that represents a placeholder from where this request should begin. - /// - public string ContinuationToken - { - get { return this.continuationToken; } - set { this.continuationToken = value; } - } - - // Check to see if Token property is set - internal bool IsSetToken() - { - return !(string.IsNullOrEmpty(this.continuationToken)); - } - - /// - /// The list of S3 Intelligent-Tiering configurations for a bucket. - /// - public List IntelligentTieringConfigurationList - { - get { return this.intelligentTieringConfigurationList; } - set { this.intelligentTieringConfigurationList = value; } - } - - /// - /// Check to see if IntelligentTieringConfiguration property is set - /// - public bool IsSetIntelligentTieringConfigurationList() - { - return this.intelligentTieringConfigurationList != null && (this.intelligentTieringConfigurationList.Count > 0 || !AWSConfigs.InitializeCollections); - } - - /// - /// Indicates whether the returned list of analytics configurations is complete. - /// A value of true indicates that the list is not complete and the - /// NextContinuationToken will be provided for a subsequent request. - /// - public bool? IsTruncated - { - get { return this.isTruncated; } - set { this.isTruncated = value; } - } - - // Check to see if IsTruncated property is set - internal bool IsSetIsTruncated() - { - return this.isTruncated.HasValue; - } - - /// - /// The marker used to continue this inventory configuration listing. - /// Use the NextContinuationToken from this response to - /// continue the listing in a subsequent request. - /// The continuation token is an opaque value that Amazon S3 understands. - /// - public string NextContinuationToken - { - get { return this.nextContinuationToken; } - set { this.nextContinuationToken = value; } - } - - // Check to see if NextToken property is set - internal bool IsSetNextToken() - { - return !(string.IsNullOrEmpty(this.nextContinuationToken)); - } - } -} diff --git a/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsRequestMarshaller.cs b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsRequestMarshaller.cs new file mode 100644 index 000000000000..8eb56c543d99 --- /dev/null +++ b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsRequestMarshaller.cs @@ -0,0 +1,99 @@ +/* + * 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 +{ + /// + /// ListBucketIntelligentTieringConfigurations Request Marshaller + /// + public partial class ListBucketIntelligentTieringConfigurationsRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListBucketIntelligentTieringConfigurationsRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListBucketIntelligentTieringConfigurationsRequest publicRequest) + { + var request = new DefaultRequest(publicRequest, "Amazon.S3"); + PreMarshallCustomization(request, publicRequest); + request.HttpMethod = "GET"; + request.AddSubResource("intelligent-tiering"); + + 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.", "ListBucketIntelligentTieringConfigurationsRequest.BucketName"); + + if (publicRequest.IsSetContinuationToken()) + request.Parameters.Add("continuation-token", StringUtils.FromString(publicRequest.ContinuationToken)); + request.ResourcePath = "/"; + + PostMarshallCustomization(request, publicRequest); + request.UseQueryString = true; + return request; + } + private static ListBucketIntelligentTieringConfigurationsRequestMarshaller _instance = new ListBucketIntelligentTieringConfigurationsRequestMarshaller(); + + internal static ListBucketIntelligentTieringConfigurationsRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListBucketIntelligentTieringConfigurationsRequestMarshaller Instance + { + get + { + return _instance; + } + } + + partial void PostMarshallCustomization(DefaultRequest defaultRequest, ListBucketIntelligentTieringConfigurationsRequest publicRequest); + partial void PreMarshallCustomization(DefaultRequest defaultRequest, ListBucketIntelligentTieringConfigurationsRequest publicRequest); + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsResponseUnmarshaller.cs b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsResponseUnmarshaller.cs similarity index 52% rename from sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsResponseUnmarshaller.cs rename to sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsResponseUnmarshaller.cs index dcf6a432ad16..9e7991a752b3 100644 --- a/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsResponseUnmarshaller.cs +++ b/sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/ListBucketIntelligentTieringConfigurationsResponseUnmarshaller.cs @@ -1,4 +1,4 @@ -/* +/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). @@ -13,57 +13,63 @@ * permissions and limitations under the License. */ -using Amazon.Runtime; -using Amazon.Runtime.Internal.Transform; +/* + * 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 ListBucketIntelligentTieringConfiguration operation - /// - public class ListBucketIntelligentTieringConfigurationsResponseUnmarshaller : S3ReponseUnmarshaller - { + /// + /// Response Unmarshaller for ListBucketIntelligentTieringConfigurations operation + /// + public partial class ListBucketIntelligentTieringConfigurationsResponseUnmarshaller : S3ReponseUnmarshaller + { /// /// Unmarshaller the response from the service to the response class. - /// + /// /// /// public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListBucketIntelligentTieringConfigurationsResponse response = new ListBucketIntelligentTieringConfigurationsResponse(); - - while (context.Read()) - { - if (context.IsStartElement) - { - UnmarshallResult(context, response); - continue; - } - } - + UnmarshallResult(context,response); + + PostUnmarshallCustomization(context, response); return response; - } + } private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketIntelligentTieringConfigurationsResponse response) { - int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; - - if (context.IsStartOfDocument) - targetDepth += 2; - + if (context.IsStartOfDocument) + targetDepth += 1; + if (context.IsEmptyResponse) + { + return; + } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ContinuationToken", targetDepth)) { - response.ContinuationToken = StringUnmarshaller.Instance.Unmarshall(context); - + var unmarshaller = StringUnmarshaller.Instance; + response.ContinuationToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IntelligentTieringConfiguration", targetDepth)) @@ -72,19 +78,20 @@ private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketI { response.IntelligentTieringConfigurationList = new List(); } - response.IntelligentTieringConfigurationList.Add(IntelligentTieringConfigurationUnmarshaller.Instance.Unmarshall(context)); + var unmarshaller = IntelligentTieringConfigurationUnmarshaller.Instance; + response.IntelligentTieringConfigurationList.Add(unmarshaller.Unmarshall(context)); continue; } if (context.TestExpression("IsTruncated", targetDepth)) { - response.IsTruncated = BoolUnmarshaller.Instance.Unmarshall(context); - + var unmarshaller = NullableBoolUnmarshaller.Instance; + response.IsTruncated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextContinuationToken", targetDepth)) { - response.NextContinuationToken = StringUnmarshaller.Instance.Unmarshall(context); - + var unmarshaller = StringUnmarshaller.Instance; + response.NextContinuationToken = unmarshaller.Unmarshall(context); continue; } } @@ -93,24 +100,51 @@ private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketI return; } } + return; + } + + + /// + /// 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); } - private static ListBucketIntelligentTieringConfigurationsResponseUnmarshaller _instance = new ListBucketIntelligentTieringConfigurationsResponseUnmarshaller(); + partial void PostUnmarshallCustomization(XmlUnmarshallerContext context, ListBucketIntelligentTieringConfigurationsResponse response); + + private static ListBucketIntelligentTieringConfigurationsResponseUnmarshaller _instance = new ListBucketIntelligentTieringConfigurationsResponseUnmarshaller(); + + internal static ListBucketIntelligentTieringConfigurationsResponseUnmarshaller GetInstance() + { + return _instance; + } /// - /// Singleton for the unmarshaller - /// + /// Gets the singleton. + /// public static ListBucketIntelligentTieringConfigurationsResponseUnmarshaller Instance { get { - if (_instance == null) - { - _instance = new ListBucketIntelligentTieringConfigurationsResponseUnmarshaller(); - } return _instance; } } + } -} +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Custom/Model/ListBucketIntelligentTieringConfigurationsRequest.cs b/sdk/src/Services/S3/Generated/Model/ListBucketIntelligentTieringConfigurationsRequest.cs similarity index 70% rename from sdk/src/Services/S3/Custom/Model/ListBucketIntelligentTieringConfigurationsRequest.cs rename to sdk/src/Services/S3/Generated/Model/ListBucketIntelligentTieringConfigurationsRequest.cs index 447207a1595d..011449b42efb 100644 --- a/sdk/src/Services/S3/Custom/Model/ListBucketIntelligentTieringConfigurationsRequest.cs +++ b/sdk/src/Services/S3/Generated/Model/ListBucketIntelligentTieringConfigurationsRequest.cs @@ -1,4 +1,4 @@ -/* +/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). @@ -12,18 +12,28 @@ * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ -using Amazon.Runtime; + +/* + * 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 ListBucketIntelligentTieringConfigurations operation. /// /// - /// This operation is not supported by directory buckets. + /// This operation is not supported for directory buckets. /// /// /// @@ -53,8 +63,7 @@ namespace Amazon.S3.Model /// /// /// - /// Operations related to ListBucketIntelligentTieringConfigurations include: - /// + /// Operations related to ListBucketIntelligentTieringConfigurations include: /// /// + /// + /// + /// 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 ListBucketIntelligentTieringConfigurationsRequest : AmazonWebServiceRequest { - private string bucketName; - private string expectedBucketOwner; - private string token; + private string _bucketName; + private string _continuationToken; + private string _expectedBucketOwner; /// - /// The name of the Amazon S3 bucket whose configuration you want to modify or retrieve. + /// Gets and sets the property BucketName. + /// + /// The name of the Amazon S3 bucket whose configuration you want to modify or retrieve. + /// /// + [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 BucketName property is set internal bool IsSetBucketName() { - return !(string.IsNullOrEmpty(this.bucketName)); + return this._bucketName != null; } /// - /// Gets and sets the property ExpectedBucketOwner. + /// Gets and sets the property ContinuationToken. /// - /// 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). + /// The ContinuationToken that represents a placeholder from where this request + /// should begin. /// /// - public string ExpectedBucketOwner + public string ContinuationToken { - get { return this.expectedBucketOwner; } - set { this.expectedBucketOwner = value; } + get { return this._continuationToken; } + set { this._continuationToken = value; } } - // Check to see if ExpectedBucketOwner property is set - internal bool IsSetExpectedBucketOwner() + // Check to see if ContinuationToken property is set + internal bool IsSetContinuationToken() { - return this.expectedBucketOwner != null; + return !string.IsNullOrEmpty(this._continuationToken); } /// - /// The ContinuationToken that represents a placeholder from where this request should begin. + /// 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). + /// /// - public string ContinuationToken + public string ExpectedBucketOwner { - get { return this.token; } - set { this.token = value; } + get { return this._expectedBucketOwner; } + set { this._expectedBucketOwner = value; } } - // Check to see if ContinuationToken property is set - internal bool IsSetContinuationToken() + // Check to see if ExpectedBucketOwner property is set + internal bool IsSetExpectedBucketOwner() { - return !(string.IsNullOrEmpty(this.ContinuationToken)); + return this._expectedBucketOwner != null; } + } -} +} \ No newline at end of file diff --git a/sdk/src/Services/S3/Generated/Model/ListBucketIntelligentTieringConfigurationsResponse.cs b/sdk/src/Services/S3/Generated/Model/ListBucketIntelligentTieringConfigurationsResponse.cs new file mode 100644 index 000000000000..83ff6f983dfd --- /dev/null +++ b/sdk/src/Services/S3/Generated/Model/ListBucketIntelligentTieringConfigurationsResponse.cs @@ -0,0 +1,125 @@ +/* + * 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.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 +{ + /// + /// This is the response object from the ListBucketIntelligentTieringConfigurations operation. + /// + public partial class ListBucketIntelligentTieringConfigurationsResponse : AmazonWebServiceResponse + { + private string _continuationToken; + private List _intelligentTieringConfigurationList = AWSConfigs.InitializeCollections ? new List() : null; + private bool? _isTruncated; + private string _nextContinuationToken; + + /// + /// Gets and sets the property ContinuationToken. + /// + /// The ContinuationToken that represents a placeholder from where this request + /// should begin. + /// + /// + public string ContinuationToken + { + get { return this._continuationToken; } + set { this._continuationToken = value; } + } + + // Check to see if ContinuationToken property is set + internal bool IsSetContinuationToken() + { + return !string.IsNullOrEmpty(this._continuationToken); + } + + /// + /// Gets and sets the property IntelligentTieringConfigurationList. + /// + /// The list of S3 Intelligent-Tiering configurations for a bucket. + /// + /// + /// Starting with version 4 of the SDK this property will default to null. If no data for this property is returned + /// from the service the property will also be null. This was changed to improve performance and allow the SDK and caller + /// to distinguish between a property not set or a property being empty to clear out a value. To retain the previous + /// SDK behavior set the AWSConfigs.InitializeCollections static property to true. + /// + public List IntelligentTieringConfigurationList + { + get { return this._intelligentTieringConfigurationList; } + set { this._intelligentTieringConfigurationList = value; } + } + + // Check to see if IntelligentTieringConfigurationList property is set + internal bool IsSetIntelligentTieringConfigurationList() + { + return this._intelligentTieringConfigurationList != null && (this._intelligentTieringConfigurationList.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property IsTruncated. + /// + /// Indicates whether the returned list of analytics configurations is complete. A value + /// of true indicates that the list is not complete and the NextContinuationToken + /// will be provided for a subsequent request. + /// + /// + public bool? IsTruncated + { + get { return this._isTruncated; } + set { this._isTruncated = value; } + } + + // Check to see if IsTruncated property is set + internal bool IsSetIsTruncated() + { + return this._isTruncated.HasValue; + } + + /// + /// Gets and sets the property NextContinuationToken. + /// + /// The marker used to continue this inventory configuration listing. Use the NextContinuationToken + /// from this response to continue the listing in a subsequent request. The continuation + /// token is an opaque value that Amazon S3 understands. + /// + /// + public string NextContinuationToken + { + get { return this._nextContinuationToken; } + set { this._nextContinuationToken = value; } + } + + // Check to see if NextContinuationToken property is set + internal bool IsSetNextContinuationToken() + { + return !string.IsNullOrEmpty(this._nextContinuationToken); + } + + } +} \ No newline at end of file