org.jclouds.googlecomputeengine.domain
Class Instance.PersistentAttachedDisk
java.lang.Object
org.jclouds.googlecomputeengine.domain.Instance.AttachedDisk
org.jclouds.googlecomputeengine.domain.Instance.PersistentAttachedDisk
- Enclosing class:
- Instance
public static class Instance.PersistentAttachedDisk
- extends Instance.AttachedDisk
Instance.PersistentAttachedDisk
@ConstructorProperties(value={"mode","source","deviceName","index","deleteOnTerminate","boot"})
public Instance.PersistentAttachedDisk(Instance.PersistentAttachedDisk.Mode mode,
URI source,
String deviceName,
Integer index,
boolean deleteOnTerminate,
boolean boot)
isPersistent
public boolean isPersistent()
- Overrides:
isPersistent in class Instance.AttachedDisk
getMode
public Instance.PersistentAttachedDisk.Mode getMode()
- Returns:
- the mode in which to attach this disk, either READ_WRITE or READ_ONLY.
getSource
public URI getSource()
- Returns:
- the URL of the persistent disk resource.
getSourceDiskName
public String getSourceDiskName()
- Returns:
- the Name of the persistent disk resource
getDeviceName
public com.google.common.base.Optional<String> getDeviceName()
- Returns:
- Must be unique within the instance when specified. This represents a unique
device name that is reflected into the /dev/ tree of a Linux operating system running within the
instance. If not specified, a default will be chosen by the system.
isDeleteOnTerminate
public boolean isDeleteOnTerminate()
- Returns:
- If true, delete the disk and all its data when the associated instance is deleted.
isBoot
public boolean isBoot()
- Returns:
- If true, this is the boot disk for this instance.
builder
public static Instance.PersistentAttachedDisk.Builder builder()
string
protected com.google.common.base.Objects.ToStringHelper string()
-
- Overrides:
string in class Instance.AttachedDisk
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.