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.BuildersetInstanceId in class InstanceInfo.Builderpublic InstanceInfo.Builder setDescription(String description)
InstanceInfo.BuildersetDescription in class InstanceInfo.Builderpublic InstanceInfo.Builder setTags(Tags tags)
InstanceInfo.BuildersetTags in class InstanceInfo.Builderpublic InstanceInfo.Builder setMachineType(MachineTypeId machineType)
InstanceInfo.BuildersetMachineType in class InstanceInfo.Builderpublic InstanceInfo.Builder setCanIpForward(Boolean canIpForward)
InstanceInfo.BuildersetCanIpForward in class InstanceInfo.Builderpublic InstanceInfo.Builder setNetworkInterfaces(List<NetworkInterface> networkInterfaces)
InstanceInfo.BuildersetNetworkInterfaces in class InstanceInfo.Builderpublic InstanceInfo.Builder setNetworkInterfaces(NetworkInterface... networkInterfaces)
InstanceInfo.BuildersetNetworkInterfaces in class InstanceInfo.Builderpublic InstanceInfo.Builder setAttachedDisks(List<AttachedDisk> attachedDisks)
InstanceInfo.BuilderAttachedDisk.AttachedDiskConfiguration.boot() returns true).setAttachedDisks in class InstanceInfo.Builderpublic InstanceInfo.Builder setAttachedDisks(AttachedDisk... attachedDisks)
InstanceInfo.BuildersetAttachedDisks in class InstanceInfo.Builderpublic InstanceInfo.Builder setMetadata(Metadata metadata)
InstanceInfo.BuildersetMetadata in class InstanceInfo.Builderpublic InstanceInfo.Builder setServiceAccounts(List<ServiceAccount> serviceAccounts)
InstanceInfo.BuildersetServiceAccounts in class InstanceInfo.Builderpublic InstanceInfo.Builder setSchedulingOptions(SchedulingOptions schedulingOptions)
InstanceInfo.BuildersetSchedulingOptions in class InstanceInfo.Builderpublic InstanceInfo build()
InstanceInfo.BuilderInstanceInfo object.build in class InstanceInfo.BuilderCopyright © 2019 Google LLC. All rights reserved.