org.jclouds.googlecomputeengine.domain
Class Instance
java.lang.Object
org.jclouds.googlecomputeengine.domain.Resource
org.jclouds.googlecomputeengine.domain.Instance
@Beta
public class Instance
- extends Resource
Represents a virtual machine.
- See Also:
| Nested classes/interfaces inherited from class org.jclouds.googlecomputeengine.domain.Resource |
Resource.Kind |
|
Constructor Summary |
protected |
Instance(String id,
Date creationTimestamp,
URI selfLink,
String name,
String description,
Instance.Tags tags,
URI machineType,
Instance.Status status,
String statusMessage,
URI zone,
Set<Instance.NetworkInterface> networkInterfaces,
Set<Instance.AttachedDisk> disks,
Metadata metadata,
Set<Instance.ServiceAccount> serviceAccounts)
|
tags
protected final Instance.Tags tags
machineType
protected final URI machineType
status
protected final Instance.Status status
statusMessage
protected final com.google.common.base.Optional<String> statusMessage
zone
protected final URI zone
networkInterfaces
protected final Set<Instance.NetworkInterface> networkInterfaces
disks
protected final Set<Instance.AttachedDisk> disks
metadata
protected final Metadata metadata
serviceAccounts
protected final Set<Instance.ServiceAccount> serviceAccounts
Instance
protected Instance(String id,
Date creationTimestamp,
URI selfLink,
String name,
String description,
Instance.Tags tags,
URI machineType,
Instance.Status status,
String statusMessage,
URI zone,
Set<Instance.NetworkInterface> networkInterfaces,
Set<Instance.AttachedDisk> disks,
Metadata metadata,
Set<Instance.ServiceAccount> serviceAccounts)
getTags
public Instance.Tags getTags()
- Used to identify valid sources or targets for network firewalls. Provided by the client when the instance is
created. Each tag must be unique, must be 1-63 characters long, and comply with RFC1035.
- Returns:
- an optional set of items applied to this instance.
getMachineType
public URI getMachineType()
- Returns:
- URL of the machine type resource describing which machine type to use to host the instance.
getStatus
public Instance.Status getStatus()
- Returns:
- Instance status
getStatusMessage
@Nullable
public com.google.common.base.Optional<String> getStatusMessage()
- Returns:
- an optional, human-readable explanation of the status.
getZone
public URI getZone()
- Returns:
- URL of the zone resource describing where this instance should be hosted; provided by the client when
the instance is created.
getNetworkInterfaces
public Set<Instance.NetworkInterface> getNetworkInterfaces()
- Returns:
- set of NetworkInterfaces
- See Also:
Instance.NetworkInterface
getDisks
public Set<Instance.AttachedDisk> getDisks()
- Returns:
- array of disks associated with this instance. Persistent disks must be created before
you can assign them.
- See Also:
Instance.AttachedDisk
getMetadata
public Metadata getMetadata()
- Returns:
- metadata for this instance
getServiceAccounts
public Set<Instance.ServiceAccount> getServiceAccounts()
- Returns:
- list of service accounts each with specified scopes.
- See Also:
Instance.ServiceAccount
equals
public boolean equals(Object obj)
-
- Overrides:
equals in class Resource
string
protected com.google.common.base.Objects.ToStringHelper string()
-
- Overrides:
string in class Resource
toString
public String toString()
-
- Overrides:
toString in class Resource
builder
public static Instance.Builder builder()
toBuilder
public Instance.Builder toBuilder()
- Overrides:
toBuilder in class Resource
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.