public abstract static class InstanceInfo.Builder extends Object
InstanceInfo objects.| Constructor and Description |
|---|
InstanceInfo.Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract InstanceInfo.Builder |
attachedDisks(AttachedDisk... attachedDisks)
Sets a list of disks to attach to the instance.
|
abstract InstanceInfo.Builder |
attachedDisks(List<AttachedDisk> attachedDisks)
Sets a list of disks to attach to the instance.
|
abstract InstanceInfo |
build()
Creates an
InstanceInfo object. |
abstract InstanceInfo.Builder |
canIpForward(Boolean canIpForward)
Sets whether to allow this instance to send and receive packets with non-matching destination
or source IPs.
|
abstract InstanceInfo.Builder |
description(String description)
Sets an optional description of this Google Compute Engine instance.
|
abstract InstanceInfo.Builder |
instanceId(InstanceId instanceId)
Sets the identity of the virtual machine instance.
|
abstract InstanceInfo.Builder |
machineType(MachineTypeId machineType)
Sets the machine type identity.
|
abstract InstanceInfo.Builder |
metadata(Metadata metadata)
Sets the instance metadata.
|
abstract InstanceInfo.Builder |
networkInterfaces(List<NetworkInterface> networkInterfaces)
Sets a list of network interfaces.
|
abstract InstanceInfo.Builder |
networkInterfaces(NetworkInterface... networkInterfaces)
Sets a list of network interfaces.
|
abstract InstanceInfo.Builder |
schedulingOptions(SchedulingOptions schedulingOptions)
Sets the scheduling options for the instance.
|
abstract InstanceInfo.Builder |
serviceAccounts(List<ServiceAccount> serviceAccounts)
Sets a list of service accounts, with their specified scopes, authorized for this instance.
|
abstract InstanceInfo.Builder |
tags(Tags tags)
Sets the tags to apply to this instance.
|
public abstract InstanceInfo.Builder instanceId(InstanceId instanceId)
public abstract InstanceInfo.Builder description(String description)
public abstract InstanceInfo.Builder tags(Tags tags)
public abstract InstanceInfo.Builder machineType(MachineTypeId machineType)
public abstract InstanceInfo.Builder canIpForward(Boolean canIpForward)
public abstract InstanceInfo.Builder networkInterfaces(List<NetworkInterface> networkInterfaces)
public abstract InstanceInfo.Builder networkInterfaces(NetworkInterface... networkInterfaces)
public abstract InstanceInfo.Builder attachedDisks(List<AttachedDisk> attachedDisks)
AttachedDisk.AttachedDiskConfiguration.boot() returns
true).public abstract InstanceInfo.Builder attachedDisks(AttachedDisk... attachedDisks)
public abstract InstanceInfo.Builder metadata(Metadata metadata)
public abstract InstanceInfo.Builder serviceAccounts(List<ServiceAccount> serviceAccounts)
public abstract InstanceInfo.Builder schedulingOptions(SchedulingOptions schedulingOptions)
public abstract InstanceInfo build()
InstanceInfo object.Copyright © 2016 Google. All rights reserved.