Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds 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 org.jclouds.cloudfiles.options;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
Contains options supported in the REST API for the GET CDN containers operation.
   public static final ListCdnContainerOptions NONE = new ListCdnContainerOptions();
      .put("enabled_only""true");
      return this;
   }

   
Indicates where to begin listing the identity's containers. The list will only include containers whose names occur lexicographically after the marker. This is convenient for pagination: To get the next page of results use the last container name of the current page as the marker.
   public ListCdnContainerOptions afterMarker(String marker) {
      .put("marker"checkNotNull(marker"marker"));
      return this;
   }


   
The maximum number of containers that will be included in the response body. The server might return fewer than this many containers, but will not return more.
   public ListCdnContainerOptions maxResults(int limit) {
      checkState(limit >= 0, "limit must be >= 0");
      checkState(limit <= 10000, "limit must be <= 10000");
      .put("limit", Integer.toString(limit));
      return this;
   }
   public static class Builder {
      
      public static ListCdnContainerOptions enabledOnly() {
         ListCdnContainerOptions options = new ListCdnContainerOptions();
         return options.enabledOnly();
      }

      
      public static ListCdnContainerOptions afterMarker(String marker) {
         ListCdnContainerOptions options = new ListCdnContainerOptions();
         return options.afterMarker(marker);
      }

      
      public static ListCdnContainerOptions maxResults(int limit) {
         ListCdnContainerOptions options = new ListCdnContainerOptions();
         return options.maxResults(limit);
      }
   }
New to GrepCode? Check out our FAQ X