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