public final class InstanceProperties extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
InstanceProperties() |
| Modifier and Type | Method and Description |
|---|---|
InstanceProperties |
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> |
getDisks()
An array of disks that are associated with the instances that are created from this template.
|
List<AcceleratorConfig> |
getGuestAccelerators()
A list of guest accelerator cards' type and count to use for instances created from the
instance template.
|
Map<String,String> |
getLabels()
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> |
getNetworkInterfaces()
An array of network access configurations for this interface.
|
ReservationAffinity |
getReservationAffinity()
Specifies the reservations that this instance can consume from.
|
Scheduling |
getScheduling()
Specifies the scheduling options for the instances that are created from this template.
|
List<ServiceAccount> |
getServiceAccounts()
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 |
set(String fieldName,
Object value) |
InstanceProperties |
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 |
setDescription(String description)
An optional text description for the instances that are created from this instance template.
|
InstanceProperties |
setDisks(List<AttachedDisk> disks)
An array of disks that are associated with the instances that are created from this template.
|
InstanceProperties |
setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
A list of guest accelerator cards' type and count to use for instances created from the
instance template.
|
InstanceProperties |
setLabels(Map<String,String> labels)
Labels to apply to instances that are created from this template.
|
InstanceProperties |
setMachineType(String machineType)
The machine type to use for instances that are created from this template.
|
InstanceProperties |
setMetadata(Metadata metadata)
The metadata key/value pairs to assign to instances that are created from this template.
|
InstanceProperties |
setMinCpuPlatform(String minCpuPlatform)
Minimum cpu/platform to be used by this instance.
|
InstanceProperties |
setNetworkInterfaces(List<NetworkInterface> networkInterfaces)
An array of network access configurations for this interface.
|
InstanceProperties |
setReservationAffinity(ReservationAffinity reservationAffinity)
Specifies the reservations that this instance can consume from.
|
InstanceProperties |
setScheduling(Scheduling scheduling)
Specifies the scheduling options for the instances that are created from this template.
|
InstanceProperties |
setServiceAccounts(List<ServiceAccount> serviceAccounts)
A list of service accounts with specified scopes.
|
InstanceProperties |
setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig) |
InstanceProperties |
setTags(Tags tags)
A list of tags to apply to the instances that are created from this template.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getCanIpForward()
null for nonepublic InstanceProperties setCanIpForward(Boolean canIpForward)
canIpForward - canIpForward or null for nonepublic String getDescription()
null for nonepublic InstanceProperties setDescription(String description)
description - description or null for nonepublic List<AttachedDisk> getDisks()
null for nonepublic InstanceProperties setDisks(List<AttachedDisk> disks)
disks - disks or null for nonepublic List<AcceleratorConfig> getGuestAccelerators()
null for nonepublic InstanceProperties setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
guestAccelerators - guestAccelerators or null for nonepublic Map<String,String> getLabels()
null for nonepublic InstanceProperties setLabels(Map<String,String> labels)
labels - labels or null for nonepublic String getMachineType()
null for nonepublic InstanceProperties setMachineType(String machineType)
machineType - machineType or null for nonepublic Metadata getMetadata()
null for nonepublic InstanceProperties setMetadata(Metadata metadata)
metadata - metadata or null for nonepublic String getMinCpuPlatform()
null for nonepublic InstanceProperties setMinCpuPlatform(String minCpuPlatform)
minCpuPlatform - minCpuPlatform or null for nonepublic List<NetworkInterface> getNetworkInterfaces()
null for nonepublic InstanceProperties setNetworkInterfaces(List<NetworkInterface> networkInterfaces)
networkInterfaces - networkInterfaces or null for nonepublic ReservationAffinity getReservationAffinity()
null for nonepublic InstanceProperties setReservationAffinity(ReservationAffinity reservationAffinity)
reservationAffinity - reservationAffinity or null for nonepublic Scheduling getScheduling()
null for nonepublic InstanceProperties setScheduling(Scheduling scheduling)
scheduling - scheduling or null for nonepublic List<ServiceAccount> getServiceAccounts()
null for nonepublic InstanceProperties setServiceAccounts(List<ServiceAccount> serviceAccounts)
serviceAccounts - serviceAccounts or null for nonepublic ShieldedInstanceConfig getShieldedInstanceConfig()
null for nonepublic InstanceProperties setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
shieldedInstanceConfig - shieldedInstanceConfig or null for nonepublic Tags getTags()
null for nonepublic InstanceProperties setTags(Tags tags)
tags - tags or null for nonepublic InstanceProperties set(String fieldName, Object value)
set in class GenericJsonpublic InstanceProperties clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.