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