public final class SourceInstanceProperties
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 |
---|
SourceInstanceProperties() |
Modifier and Type | Method and Description |
---|---|
SourceInstanceProperties |
clone() |
Boolean |
getCanIpForward()
Enables instances created based on this machine image to send packets with source IP addresses
other than their own and receive packets with destination IP addresses other than their own.
|
Boolean |
getDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.
|
String |
getDescription()
An optional text description for the instances that are created from this machine image.
|
List<SavedAttachedDisk> |
getDisks()
An array of disks that are associated with the instances that are created from this machine
image.
|
List<AcceleratorConfig> |
getGuestAccelerators()
A list of guest accelerator cards' type and count to use for instances created from this
machine image.
|
String |
getKeyRevocationActionType()
KeyRevocationActionType of the instance.
|
Map<String,String> |
getLabels()
Labels to apply to instances that are created from this machine image.
|
String |
getMachineType()
The machine type to use for instances that are created from this machine image.
|
Metadata |
getMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image.
|
String |
getMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image.
|
List<NetworkInterface> |
getNetworkInterfaces()
An array of network access configurations for this interface.
|
String |
getPostKeyRevocationActionType()
PostKeyRevocationActionType of the instance.
|
Scheduling |
getScheduling()
Specifies the scheduling options for the instances that are created from this machine image.
|
List<ServiceAccount> |
getServiceAccounts()
A list of service accounts with specified scopes.
|
Tags |
getTags()
A list of tags to apply to the instances that are created from this machine image.
|
SourceInstanceProperties |
set(String fieldName,
Object value) |
SourceInstanceProperties |
setCanIpForward(Boolean canIpForward)
Enables instances created based on this machine image to send packets with source IP addresses
other than their own and receive packets with destination IP addresses other than their own.
|
SourceInstanceProperties |
setDeletionProtection(Boolean deletionProtection)
Whether the instance created from this machine image should be protected against deletion.
|
SourceInstanceProperties |
setDescription(String description)
An optional text description for the instances that are created from this machine image.
|
SourceInstanceProperties |
setDisks(List<SavedAttachedDisk> disks)
An array of disks that are associated with the instances that are created from this machine
image.
|
SourceInstanceProperties |
setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
A list of guest accelerator cards' type and count to use for instances created from this
machine image.
|
SourceInstanceProperties |
setKeyRevocationActionType(String keyRevocationActionType)
KeyRevocationActionType of the instance.
|
SourceInstanceProperties |
setLabels(Map<String,String> labels)
Labels to apply to instances that are created from this machine image.
|
SourceInstanceProperties |
setMachineType(String machineType)
The machine type to use for instances that are created from this machine image.
|
SourceInstanceProperties |
setMetadata(Metadata metadata)
The metadata key/value pairs to assign to instances that are created from this machine image.
|
SourceInstanceProperties |
setMinCpuPlatform(String minCpuPlatform)
Minimum cpu/platform to be used by instances created from this machine image.
|
SourceInstanceProperties |
setNetworkInterfaces(List<NetworkInterface> networkInterfaces)
An array of network access configurations for this interface.
|
SourceInstanceProperties |
setPostKeyRevocationActionType(String postKeyRevocationActionType)
PostKeyRevocationActionType of the instance.
|
SourceInstanceProperties |
setScheduling(Scheduling scheduling)
Specifies the scheduling options for the instances that are created from this machine image.
|
SourceInstanceProperties |
setServiceAccounts(List<ServiceAccount> serviceAccounts)
A list of service accounts with specified scopes.
|
SourceInstanceProperties |
setTags(Tags tags)
A list of tags to apply to the instances that are created from this machine image.
|
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 SourceInstanceProperties setCanIpForward(Boolean canIpForward)
canIpForward
- canIpForward or null
for nonepublic Boolean getDeletionProtection()
null
for nonepublic SourceInstanceProperties setDeletionProtection(Boolean deletionProtection)
deletionProtection
- deletionProtection or null
for nonepublic String getDescription()
null
for nonepublic SourceInstanceProperties setDescription(String description)
description
- description or null
for nonepublic List<SavedAttachedDisk> getDisks()
null
for nonepublic SourceInstanceProperties setDisks(List<SavedAttachedDisk> disks)
disks
- disks or null
for nonepublic List<AcceleratorConfig> getGuestAccelerators()
null
for nonepublic SourceInstanceProperties setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
guestAccelerators
- guestAccelerators or null
for nonepublic String getKeyRevocationActionType()
null
for nonepublic SourceInstanceProperties setKeyRevocationActionType(String keyRevocationActionType)
keyRevocationActionType
- keyRevocationActionType or null
for nonepublic Map<String,String> getLabels()
null
for nonepublic SourceInstanceProperties setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic String getMachineType()
null
for nonepublic SourceInstanceProperties setMachineType(String machineType)
machineType
- machineType or null
for nonepublic Metadata getMetadata()
null
for nonepublic SourceInstanceProperties setMetadata(Metadata metadata)
metadata
- metadata or null
for nonepublic String getMinCpuPlatform()
null
for nonepublic SourceInstanceProperties setMinCpuPlatform(String minCpuPlatform)
minCpuPlatform
- minCpuPlatform or null
for nonepublic List<NetworkInterface> getNetworkInterfaces()
null
for nonepublic SourceInstanceProperties setNetworkInterfaces(List<NetworkInterface> networkInterfaces)
networkInterfaces
- networkInterfaces or null
for nonepublic String getPostKeyRevocationActionType()
null
for nonepublic SourceInstanceProperties setPostKeyRevocationActionType(String postKeyRevocationActionType)
postKeyRevocationActionType
- postKeyRevocationActionType or null
for nonepublic Scheduling getScheduling()
null
for nonepublic SourceInstanceProperties setScheduling(Scheduling scheduling)
scheduling
- scheduling or null
for nonepublic List<ServiceAccount> getServiceAccounts()
null
for nonepublic SourceInstanceProperties setServiceAccounts(List<ServiceAccount> serviceAccounts)
serviceAccounts
- serviceAccounts or null
for nonepublic Tags getTags()
null
for nonepublic SourceInstanceProperties setTags(Tags tags)
tags
- tags or null
for nonepublic SourceInstanceProperties set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public SourceInstanceProperties clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.