Class NewInstance
- java.lang.Object
-
- org.jclouds.googlecomputeengine.domain.NewInstance
-
public abstract class NewInstance extends Object
Parameter to InstanceApi.create(NewInstance).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NewInstance.Builder
static class
NewInstance.NetworkInterface
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Boolean
canIpForward()
static NewInstance
create(String name, URI machineType, URI network, URI subnetwork, URI sourceImage)
Convenience for creating a new instance with only a boot disk and minimal parameters.static NewInstance
create(String name, URI machineType, URI network, URI subnetwork, List<AttachDisk> disks, String description, Tags tags)
abstract String
description()
abstract List<AttachDisk>
disks()
abstract URI
machineType()
abstract Metadata
metadata()
Add metadata viaMetadata.items()
.abstract String
name()
abstract List<NewInstance.NetworkInterface>
networkInterfaces()
abstract Instance.Scheduling
scheduling()
abstract List<Instance.ServiceAccount>
serviceAccounts()
abstract Tags
tags()
-
-
-
Method Detail
-
name
public abstract String name()
-
machineType
public abstract URI machineType()
-
networkInterfaces
public abstract List<NewInstance.NetworkInterface> networkInterfaces()
-
disks
public abstract List<AttachDisk> disks()
-
tags
public abstract Tags tags()
-
metadata
public abstract Metadata metadata()
Add metadata viaMetadata.items()
.
-
serviceAccounts
@Nullable public abstract List<Instance.ServiceAccount> serviceAccounts()
-
scheduling
@Nullable public abstract Instance.Scheduling scheduling()
-
create
public static NewInstance create(String name, URI machineType, URI network, URI subnetwork, URI sourceImage)
Convenience for creating a new instance with only a boot disk and minimal parameters.
-
-