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.Flags
AbstractMap.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.
|
ConfidentialInstanceConfig |
getConfidentialInstanceConfig()
Specifies the Confidential Instance options.
|
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.
|
DisplayDevice |
getDisplayDevice()
Display Device properties to enable support for remote display products like: Teradici, VNC and
TeamViewer
|
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.
|
String |
getPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VM.
|
ReservationAffinity |
getReservationAffinity()
Specifies the reservations that this instance can consume from.
|
List<String> |
getResourcePolicies()
Resource policies (names, not ULRs) applied to instances created from this template.
|
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() |
ShieldedVmConfig |
getShieldedVmConfig()
Specifies the Shielded VM options for the instances that are created from this template.
|
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 |
setConfidentialInstanceConfig(ConfidentialInstanceConfig confidentialInstanceConfig)
Specifies the Confidential Instance options.
|
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 |
setDisplayDevice(DisplayDevice displayDevice)
Display Device properties to enable support for remote display products like: Teradici, VNC and
TeamViewer
|
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 |
setPrivateIpv6GoogleAccess(String privateIpv6GoogleAccess)
The private IPv6 google access type for the VM.
|
InstanceProperties |
setReservationAffinity(ReservationAffinity reservationAffinity)
Specifies the reservations that this instance can consume from.
|
InstanceProperties |
setResourcePolicies(List<String> resourcePolicies)
Resource policies (names, not ULRs) applied to instances created from this template.
|
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 |
setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig)
Specifies the Shielded VM options for the instances that are created from this template.
|
InstanceProperties |
setTags(Tags tags)
A list of tags to apply to the instances that are created from this template.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getCanIpForward()
null
for nonepublic InstanceProperties setCanIpForward(Boolean canIpForward)
canIpForward
- canIpForward or null
for nonepublic ConfidentialInstanceConfig getConfidentialInstanceConfig()
null
for nonepublic InstanceProperties setConfidentialInstanceConfig(ConfidentialInstanceConfig confidentialInstanceConfig)
confidentialInstanceConfig
- confidentialInstanceConfig 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 DisplayDevice getDisplayDevice()
null
for nonepublic InstanceProperties setDisplayDevice(DisplayDevice displayDevice)
displayDevice
- displayDevice 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 String getPrivateIpv6GoogleAccess()
null
for nonepublic InstanceProperties setPrivateIpv6GoogleAccess(String privateIpv6GoogleAccess)
privateIpv6GoogleAccess
- privateIpv6GoogleAccess or null
for nonepublic ReservationAffinity getReservationAffinity()
null
for nonepublic InstanceProperties setReservationAffinity(ReservationAffinity reservationAffinity)
reservationAffinity
- reservationAffinity or null
for nonepublic List<String> getResourcePolicies()
null
for nonepublic InstanceProperties setResourcePolicies(List<String> resourcePolicies)
resourcePolicies
- resourcePolicies 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 ShieldedVmConfig getShieldedVmConfig()
null
for nonepublic InstanceProperties setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig)
shieldedVmConfig
- shieldedVmConfig 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 GenericJson
public InstanceProperties clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.