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 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.cloudsigma.options;
import static;
Contains options supported for clone drive operations.


The recommended way to instantiate a CloneDriveOptions object is to statically import CloneDriveOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):

import static org.jclouds.cloudsigma.options.CloneDriveOptions.Builder.*; Payload payload = client.cloneDrive("drive-uuid","newName", size(2*1024*1024l));

Adrian Cole
public class CloneDriveOptions {
   private final Map<StringStringoptions = Maps.newLinkedHashMap();

adjust to new size in bytes
   public CloneDriveOptions size(long size) {
      checkArgument(size >= 0, "size must be >= 0");
      .put("size"size + "");
      return this;
   public static class Builder {

      public static CloneDriveOptions size(long size) {
         CloneDriveOptions options = new CloneDriveOptions();
         return options.size(size);
   public Map<StringStringgetOptions() {
      return ImmutableMap.copyOf();
New to GrepCode? Check out our FAQ X