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