/* * Copyright 2010-2013 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 Amazon.Runtime; namespace Amazon.S3.Model { /// /// Returns information about the ListVersions response and response metadata. /// public class ListVersionsResponse : AmazonWebServiceResponse { private bool? isTruncated; private string keyMarker; private string versionIdMarker; private string nextKeyMarker; private string nextVersionIdMarker; private List versions = new List(); private string name; private string prefix; private int? maxKeys; private List commonPrefixes = new List(); private string delimiter; /// /// A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria. If your results were /// truncated, you can make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker response parameters as a starting /// place in another request to return the rest of the results. /// /// public bool IsTruncated { get { return this.isTruncated ?? default(bool); } set { this.isTruncated = value; } } // Check to see if IsTruncated property is set internal bool IsSetIsTruncated() { return this.isTruncated.HasValue; } /// /// Marks the last Key returned in a truncated response. /// /// public string KeyMarker { get { return this.keyMarker; } set { this.keyMarker = value; } } // Check to see if KeyMarker property is set internal bool IsSetKeyMarker() { return this.keyMarker != null; } /// /// Gets and sets the VersionIdMarker property. /// Marks the last Version-Id returned in a truncated response. /// public string VersionIdMarker { get { return this.versionIdMarker; } set { this.versionIdMarker = value; } } // Check to see if VersionIdMarker property is set internal bool IsSetVersionIdMarker() { return this.versionIdMarker != null; } /// /// Use this value for the key marker request parameter in a subsequent request. /// /// public string NextKeyMarker { get { return this.nextKeyMarker; } set { this.nextKeyMarker = value; } } // Check to see if NextKeyMarker property is set internal bool IsSetNextKeyMarker() { return this.nextKeyMarker != null; } /// /// Use this value for the next version id marker parameter in a subsequent request. /// /// public string NextVersionIdMarker { get { return this.nextVersionIdMarker; } set { this.nextVersionIdMarker = value; } } // Check to see if NextVersionIdMarker property is set internal bool IsSetNextVersionIdMarker() { return this.nextVersionIdMarker != null; } /// /// Gets and sets the Versions property. This is a list of /// object versions in the bucket that match your search criteria. /// public List Versions { get { return this.versions; } set { this.versions = value; } } // Check to see if Versions property is set internal bool IsSetVersions() { return this.versions.Count > 0; } /// /// Gets and sets the Name property. /// The bucket's name. /// public string Name { get { return this.name; } set { this.name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this.name != null; } /// /// Gets and sets the Prefix property. /// Keys that begin with the indicated prefix are listed. /// public string Prefix { get { return this.prefix; } set { this.prefix = value; } } // Check to see if Prefix property is set internal bool IsSetPrefix() { return this.prefix != null; } /// /// Gets and sets the MaxKeys property. /// This is the maximum number of keys in the S3ObjectVersions collection. /// The value is derived from the MaxKeys parameter to ListVersionsRequest. /// public int MaxKeys { get { return this.maxKeys ?? default(int); } set { this.maxKeys = value; } } // Check to see if MaxKeys property is set internal bool IsSetMaxKeys() { return this.maxKeys.HasValue; } /// /// Gets the CommonPrefixes property. /// A response can contain CommonPrefixes only if you specify a delimiter. /// When you do, CommonPrefixes contains all (if there are any) keys between /// Prefix and the next occurrence of the string specified by delimiter. /// public List CommonPrefixes { get { return this.commonPrefixes; } set { this.commonPrefixes = value; } } // Check to see if CommonPrefixes property is set internal bool IsSetCommonPrefixes() { return this.commonPrefixes.Count > 0; } /// /// Gets and sets the Delimiter property. /// Causes keys that contain the same string between the prefix and the /// first occurrence of the delimiter to be rolled up into a single result /// element in the CommonPrefixes collection. /// /// /// These rolled-up keys are not returned elsewhere in the response. /// public string Delimiter { get { return this.delimiter; } set { this.delimiter = value; } } } }