content: /*
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing,
   * software distributed under the License 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.
   */
  
  package com.aliyun.oss.model;
  
  import java.util.ArrayList;
  import java.util.List;
  
  public class ObjectListing extends GenericResult {
  
      /**
       * A list of summary information describing the objects stored in the bucket
       */
      private List<OSSObjectSummary> objectSummaries = new ArrayList<OSSObjectSummary>();
  
      private List<String> commonPrefixes = new ArrayList<String>();
  
      private String bucketName;
  
      private String nextMarker;
  
      private boolean isTruncated;
  
      private String prefix;
  
      private String marker;
  
      private int maxKeys;
  
      private String delimiter;
  
      private String encodingType;
  
      public List<OSSObjectSummary> getObjectSummaries() {
          return objectSummaries;
      }
  
      public void addObjectSummary(OSSObjectSummary objectSummary) {
          this.objectSummaries.add(objectSummary);
      }
  
      public void setObjectSummaries(List<OSSObjectSummary> objectSummaries) {
          this.objectSummaries.clear();
          if (objectSummaries != null && !objectSummaries.isEmpty()) {
              this.objectSummaries.addAll(objectSummaries);
          }
      }
  
      public void clearObjectSummaries() {
          this.objectSummaries.clear();
      }
  
      public List<String> getCommonPrefixes() {
          return commonPrefixes;
      }
  
      public void addCommonPrefix(String commonPrefix) {
          this.commonPrefixes.add(commonPrefix);
      }
  
      public void setCommonPrefixes(List<String> commonPrefixes) {
          this.commonPrefixes.clear();
          if (commonPrefixes != null && !commonPrefixes.isEmpty()) {
              this.commonPrefixes.addAll(commonPrefixes);
          }
      }
  
      public void clearCommonPrefixes() {
          this.commonPrefixes.clear();
      }
  
      public String getNextMarker() {
          return nextMarker;
      }
  
      public void setNextMarker(String nextMarker) {
          this.nextMarker = nextMarker;
      }
  
      public String getBucketName() {
          return bucketName;
      }
  
      public void setBucketName(String bucketName) {
          this.bucketName = bucketName;
      }
  
      public String getPrefix() {
          return prefix;
      }
  
      public void setPrefix(String prefix) {
          this.prefix = prefix;
      }
  
      public String getMarker() {
          return marker;
      }
  
      public void setMarker(String marker) {
          this.marker = marker;
      }
  
      public int getMaxKeys() {
          return maxKeys;
      }
  
      public void setMaxKeys(int maxKeys) {
          this.maxKeys = maxKeys;
      }
  
      public String getDelimiter() {
          return delimiter;
      }
  
      public void setDelimiter(String delimiter) {
          this.delimiter = delimiter;
      }
  
      public String getEncodingType() {
          return encodingType;
      }
  
      public void setEncodingType(String encodingType) {
          this.encodingType = encodingType;
      }
  
      public boolean isTruncated() {
          return isTruncated;
      }
  
      public void setTruncated(boolean isTruncated) {
          this.isTruncated = isTruncated;
      }
  
  }
  