public final class InstanceProperties
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
InstanceProperties() |
Modifier and Type | Method and Description |
---|---|
InstanceProperties |
clone() |
AdvancedMachineFeatures |
getAdvancedMachineFeatures()
Controls for advanced machine-related behavior features.
|
Boolean |
getCanIpForward()
Enables instances created based on these properties 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 these properties.
|
List<AttachedDisk> |
getDisks()
An array of disks that are associated with the instances that are created from these
properties.
|
List<AcceleratorConfig> |
getGuestAccelerators()
A list of guest accelerator cards' type and count to use for instances created from these
properties.
|
String |
getKeyRevocationActionType()
KeyRevocationActionType of the instance.
|
Map<String,String> |
getLabels()
Labels to apply to instances that are created from these properties.
|
String |
getMachineType()
The machine type to use for instances that are created from these properties.
|
Metadata |
getMetadata()
The metadata key/value pairs to assign to instances that are created from these properties.
|
String |
getMinCpuPlatform()
Minimum cpu/platform to be used by instances.
|
List<NetworkInterface> |
getNetworkInterfaces()
An array of network access configurations for this interface.
|
NetworkPerformanceConfig |
getNetworkPerformanceConfig()
Note that for MachineImage, this is not supported yet.
|
String |
getPrivateIpv6GoogleAccess()
The private IPv6 google access type for VMs.
|
ReservationAffinity |
getReservationAffinity()
Specifies the reservations that instances can consume from.
|
Map<String,String> |
getResourceManagerTags()
Resource manager tags to be bound to the instance.
|
List<String> |
getResourcePolicies()
Resource policies (names, not URLs) applied to instances created from these properties.
|
Scheduling |
getScheduling()
Specifies the scheduling options for the instances that are created from these properties.
|
List<ServiceAccount> |
getServiceAccounts()
A list of service accounts with specified scopes.
|
ShieldedInstanceConfig |
getShieldedInstanceConfig()
Note that for MachineImage, this is not supported yet.
|
Tags |
getTags()
A list of tags to apply to the instances that are created from these properties.
|
InstanceProperties |
set(String fieldName,
Object value) |
InstanceProperties |
setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures)
Controls for advanced machine-related behavior features.
|
InstanceProperties |
setCanIpForward(Boolean canIpForward)
Enables instances created based on these properties 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 these properties.
|
InstanceProperties |
setDisks(List<AttachedDisk> disks)
An array of disks that are associated with the instances that are created from these
properties.
|
InstanceProperties |
setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
A list of guest accelerator cards' type and count to use for instances created from these
properties.
|
InstanceProperties |
setKeyRevocationActionType(String keyRevocationActionType)
KeyRevocationActionType of the instance.
|
InstanceProperties |
setLabels(Map<String,String> labels)
Labels to apply to instances that are created from these properties.
|
InstanceProperties |
setMachineType(String machineType)
The machine type to use for instances that are created from these properties.
|
InstanceProperties |
setMetadata(Metadata metadata)
The metadata key/value pairs to assign to instances that are created from these properties.
|
InstanceProperties |
setMinCpuPlatform(String minCpuPlatform)
Minimum cpu/platform to be used by instances.
|
InstanceProperties |
setNetworkInterfaces(List<NetworkInterface> networkInterfaces)
An array of network access configurations for this interface.
|
InstanceProperties |
setNetworkPerformanceConfig(NetworkPerformanceConfig networkPerformanceConfig)
Note that for MachineImage, this is not supported yet.
|
InstanceProperties |
setPrivateIpv6GoogleAccess(String privateIpv6GoogleAccess)
The private IPv6 google access type for VMs.
|
InstanceProperties |
setReservationAffinity(ReservationAffinity reservationAffinity)
Specifies the reservations that instances can consume from.
|
InstanceProperties |
setResourceManagerTags(Map<String,String> resourceManagerTags)
Resource manager tags to be bound to the instance.
|
InstanceProperties |
setResourcePolicies(List<String> resourcePolicies)
Resource policies (names, not URLs) applied to instances created from these properties.
|
InstanceProperties |
setScheduling(Scheduling scheduling)
Specifies the scheduling options for the instances that are created from these properties.
|
InstanceProperties |
setServiceAccounts(List<ServiceAccount> serviceAccounts)
A list of service accounts with specified scopes.
|
InstanceProperties |
setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
Note that for MachineImage, this is not supported yet.
|
InstanceProperties |
setTags(Tags tags)
A list of tags to apply to the instances that are created from these properties.
|
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 AdvancedMachineFeatures getAdvancedMachineFeatures()
null
for nonepublic InstanceProperties setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures)
advancedMachineFeatures
- advancedMachineFeatures or null
for nonepublic 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 List<AcceleratorConfig> getGuestAccelerators()
null
for nonepublic InstanceProperties setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
guestAccelerators
- guestAccelerators or null
for nonepublic String getKeyRevocationActionType()
null
for nonepublic InstanceProperties setKeyRevocationActionType(String keyRevocationActionType)
keyRevocationActionType
- keyRevocationActionType 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 NetworkPerformanceConfig getNetworkPerformanceConfig()
null
for nonepublic InstanceProperties setNetworkPerformanceConfig(NetworkPerformanceConfig networkPerformanceConfig)
networkPerformanceConfig
- networkPerformanceConfig 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 Map<String,String> getResourceManagerTags()
null
for nonepublic InstanceProperties setResourceManagerTags(Map<String,String> resourceManagerTags)
resourceManagerTags
- resourceManagerTags 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 Tags getTags()
null
for nonepublic InstanceProperties setTags(Tags tags)
tags
- tags or null
for nonepublic InstanceProperties set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public InstanceProperties clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.