public static class InstanceProperties.Builder extends Object
Modifier and Type | Method and Description |
---|---|
InstanceProperties.Builder |
addAllDisks(List<AttachedDisk> disks)
An array of disks that are associated with the instances that are created from this template.
|
InstanceProperties.Builder |
addAllGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
A list of guest accelerator cards' type and count to use for instances created from the
instance template.
|
InstanceProperties.Builder |
addAllNetworkInterfaces(List<NetworkInterface> networkInterfaces)
An array of network access configurations for this interface.
|
InstanceProperties.Builder |
addAllServiceAccounts(List<ServiceAccount> serviceAccounts)
A list of service accounts with specified scopes.
|
InstanceProperties.Builder |
addDisks(AttachedDisk disks)
An array of disks that are associated with the instances that are created from this template.
|
InstanceProperties.Builder |
addGuestAccelerators(AcceleratorConfig guestAccelerators)
A list of guest accelerator cards' type and count to use for instances created from the
instance template.
|
InstanceProperties.Builder |
addNetworkInterfaces(NetworkInterface networkInterfaces)
An array of network access configurations for this interface.
|
InstanceProperties.Builder |
addServiceAccounts(ServiceAccount serviceAccounts)
A list of service accounts with specified scopes.
|
InstanceProperties |
build() |
InstanceProperties.Builder |
clone() |
Boolean |
getCanIpForward()
Enables instances created based on this template to send packets with source IP addresses
other than their own and receive packets with destination IP addresses other than their own.
|
String |
getDescription()
An optional text description for the instances that are created from this instance template.
|
List<AttachedDisk> |
getDisksList()
An array of disks that are associated with the instances that are created from this template.
|
List<AcceleratorConfig> |
getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from the
instance template.
|
Map<String,String> |
getLabelsMap()
Labels to apply to instances that are created from this template.
|
String |
getMachineType()
The machine type to use for instances that are created from this template.
|
Metadata |
getMetadata()
The metadata key/value pairs to assign to instances that are created from this template.
|
String |
getMinCpuPlatform()
Minimum cpu/platform to be used by this instance.
|
List<NetworkInterface> |
getNetworkInterfacesList()
An array of network access configurations for this interface.
|
Scheduling |
getScheduling()
Specifies the scheduling options for the instances that are created from this template.
|
List<ServiceAccount> |
getServiceAccountsList()
A list of service accounts with specified scopes.
|
ShieldedInstanceConfig |
getShieldedInstanceConfig() |
Tags |
getTags()
A list of tags to apply to the instances that are created from this template.
|
InstanceProperties.Builder |
mergeFrom(InstanceProperties other) |
InstanceProperties.Builder |
putAllLabels(Map<String,String> labels)
Labels to apply to instances that are created from this template.
|
InstanceProperties.Builder |
setCanIpForward(Boolean canIpForward)
Enables instances created based on this template to send packets with source IP addresses
other than their own and receive packets with destination IP addresses other than their own.
|
InstanceProperties.Builder |
setDescription(String description)
An optional text description for the instances that are created from this instance template.
|
InstanceProperties.Builder |
setMachineType(String machineType)
The machine type to use for instances that are created from this template.
|
InstanceProperties.Builder |
setMetadata(Metadata metadata)
The metadata key/value pairs to assign to instances that are created from this template.
|
InstanceProperties.Builder |
setMinCpuPlatform(String minCpuPlatform)
Minimum cpu/platform to be used by this instance.
|
InstanceProperties.Builder |
setScheduling(Scheduling scheduling)
Specifies the scheduling options for the instances that are created from this template.
|
InstanceProperties.Builder |
setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig) |
InstanceProperties.Builder |
setTags(Tags tags)
A list of tags to apply to the instances that are created from this template.
|
public InstanceProperties.Builder mergeFrom(InstanceProperties other)
public Boolean getCanIpForward()
public InstanceProperties.Builder setCanIpForward(Boolean canIpForward)
public String getDescription()
public InstanceProperties.Builder setDescription(String description)
public List<AttachedDisk> getDisksList()
public InstanceProperties.Builder addAllDisks(List<AttachedDisk> disks)
public InstanceProperties.Builder addDisks(AttachedDisk disks)
public List<AcceleratorConfig> getGuestAcceleratorsList()
public InstanceProperties.Builder addAllGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
public InstanceProperties.Builder addGuestAccelerators(AcceleratorConfig guestAccelerators)
public Map<String,String> getLabelsMap()
public InstanceProperties.Builder putAllLabels(Map<String,String> labels)
public String getMachineType()
public InstanceProperties.Builder setMachineType(String machineType)
public Metadata getMetadata()
public InstanceProperties.Builder setMetadata(Metadata metadata)
public String getMinCpuPlatform()
public InstanceProperties.Builder setMinCpuPlatform(String minCpuPlatform)
public List<NetworkInterface> getNetworkInterfacesList()
public InstanceProperties.Builder addAllNetworkInterfaces(List<NetworkInterface> networkInterfaces)
public InstanceProperties.Builder addNetworkInterfaces(NetworkInterface networkInterfaces)
public Scheduling getScheduling()
public InstanceProperties.Builder setScheduling(Scheduling scheduling)
public List<ServiceAccount> getServiceAccountsList()
public InstanceProperties.Builder addAllServiceAccounts(List<ServiceAccount> serviceAccounts)
public InstanceProperties.Builder addServiceAccounts(ServiceAccount serviceAccounts)
public ShieldedInstanceConfig getShieldedInstanceConfig()
public InstanceProperties.Builder setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
public Tags getTags()
public InstanceProperties.Builder setTags(Tags tags)
public InstanceProperties build()
public InstanceProperties.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.