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