org.jclouds.elasticstack.domain
Class CreateDriveRequest

java.lang.Object
  extended by org.jclouds.elasticstack.domain.Item
      extended by org.jclouds.elasticstack.domain.Drive
          extended by org.jclouds.elasticstack.domain.CreateDriveRequest

public class CreateDriveRequest
extends Drive

Author:
Adrian Cole

Nested Class Summary
static class CreateDriveRequest.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.elasticstack.domain.Drive
claimType, readers, size
 
Fields inherited from class org.jclouds.elasticstack.domain.Item
name, tags, userMetadata, uuid
 
Constructor Summary
CreateDriveRequest(String name, long size, ClaimType claimType, Iterable<String> readers, Iterable<String> tags, Map<String,String> userMetadata, String encryptionCipher, Iterable<String> avoid)
           
 
Method Summary
 boolean equals(Object obj)
           
 Set<String> getAvoid()
           
 String getEncryptionCipher()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jclouds.elasticstack.domain.Drive
getClaimType, getReaders, getSize
 
Methods inherited from class org.jclouds.elasticstack.domain.Item
getName, getTags, getUserMetadata, getUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateDriveRequest

public CreateDriveRequest(String name,
                          long size,
                          @Nullable
                          ClaimType claimType,
                          Iterable<String> readers,
                          Iterable<String> tags,
                          Map<String,String> userMetadata,
                          @Nullable
                          String encryptionCipher,
                          Iterable<String> avoid)
Method Detail

getAvoid

public Set<String> getAvoid()
Returns:
list of existing drives to ensure this new drive is created on physical different hardware than those existing drives

getEncryptionCipher

@Nullable
public String getEncryptionCipher()
Returns:
either 'none' or 'aes-xts-plain' (the default)

hashCode

public int hashCode()
Overrides:
hashCode in class Drive

equals

public boolean equals(Object obj)
Overrides:
equals in class Drive

toString

public String toString()
Overrides:
toString in class Drive


Copyright © 2009-2012 jclouds. All Rights Reserved.