target.apidocs.com.google.api.services.compute.model.AdvancedMachineFeatures.html Maven / Gradle / Ivy
AdvancedMachineFeatures (Compute Engine API v1-rev20250107-2.0.0)
com.google.api.services.compute.model
Class AdvancedMachineFeatures
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.AdvancedMachineFeatures
-
public final class AdvancedMachineFeatures
extends com.google.api.client.json.GenericJson
Specifies options for controlling advanced machine features. Options that would traditionally be
configured in a BIOS belong here. Features that require operating system support may have
corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the
Image supports nested virtualization being enabled or disabled).
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AdvancedMachineFeatures()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AdvancedMachineFeatures
clone()
Boolean
getEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
Boolean
getEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
String
getPerformanceMonitoringUnit()
Type of Performance Monitoring Unit requested on instance.
Integer
getThreadsPerCore()
The number of threads per physical core.
String
getTurboMode()
Turbo frequency mode to use for the instance.
Integer
getVisibleCoreCount()
The number of physical cores to expose to an instance.
AdvancedMachineFeatures
set(String fieldName,
Object value)
AdvancedMachineFeatures
setEnableNestedVirtualization(Boolean enableNestedVirtualization)
Whether to enable nested virtualization or not (default is false).
AdvancedMachineFeatures
setEnableUefiNetworking(Boolean enableUefiNetworking)
Whether to enable UEFI networking for instance creation.
AdvancedMachineFeatures
setPerformanceMonitoringUnit(String performanceMonitoringUnit)
Type of Performance Monitoring Unit requested on instance.
AdvancedMachineFeatures
setThreadsPerCore(Integer threadsPerCore)
The number of threads per physical core.
AdvancedMachineFeatures
setTurboMode(String turboMode)
Turbo frequency mode to use for the instance.
AdvancedMachineFeatures
setVisibleCoreCount(Integer visibleCoreCount)
The number of physical cores to expose to an instance.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getEnableNestedVirtualization
public Boolean getEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
- Returns:
- value or
null for none
-
setEnableNestedVirtualization
public AdvancedMachineFeatures setEnableNestedVirtualization(Boolean enableNestedVirtualization)
Whether to enable nested virtualization or not (default is false).
- Parameters:
enableNestedVirtualization - enableNestedVirtualization or null for none
-
getEnableUefiNetworking
public Boolean getEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
- Returns:
- value or
null for none
-
setEnableUefiNetworking
public AdvancedMachineFeatures setEnableUefiNetworking(Boolean enableUefiNetworking)
Whether to enable UEFI networking for instance creation.
- Parameters:
enableUefiNetworking - enableUefiNetworking or null for none
-
getPerformanceMonitoringUnit
public String getPerformanceMonitoringUnit()
Type of Performance Monitoring Unit requested on instance.
- Returns:
- value or
null for none
-
setPerformanceMonitoringUnit
public AdvancedMachineFeatures setPerformanceMonitoringUnit(String performanceMonitoringUnit)
Type of Performance Monitoring Unit requested on instance.
- Parameters:
performanceMonitoringUnit - performanceMonitoringUnit or null for none
-
getThreadsPerCore
public Integer getThreadsPerCore()
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this
to 1. If unset, the maximum number of threads supported per core by the underlying processor is
assumed.
- Returns:
- value or
null for none
-
setThreadsPerCore
public AdvancedMachineFeatures setThreadsPerCore(Integer threadsPerCore)
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this
to 1. If unset, the maximum number of threads supported per core by the underlying processor is
assumed.
- Parameters:
threadsPerCore - threadsPerCore or null for none
-
getTurboMode
public String getTurboMode()
Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using
empty string or not setting this field will use the platform-specific default turbo mode.
- Returns:
- value or
null for none
-
setTurboMode
public AdvancedMachineFeatures setTurboMode(String turboMode)
Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using
empty string or not setting this field will use the platform-specific default turbo mode.
- Parameters:
turboMode - turboMode or null for none
-
getVisibleCoreCount
public Integer getVisibleCoreCount()
The number of physical cores to expose to an instance. Multiply by the number of threads per
core to compute the total number of virtual CPUs to expose to the instance. If unset, the
number of cores is inferred from the instance's nominal CPU count and the underlying platform's
SMT width.
- Returns:
- value or
null for none
-
setVisibleCoreCount
public AdvancedMachineFeatures setVisibleCoreCount(Integer visibleCoreCount)
The number of physical cores to expose to an instance. Multiply by the number of threads per
core to compute the total number of virtual CPUs to expose to the instance. If unset, the
number of cores is inferred from the instance's nominal CPU count and the underlying platform's
SMT width.
- Parameters:
visibleCoreCount - visibleCoreCount or null for none
-
set
public AdvancedMachineFeatures set(String fieldName,
Object value)
- Overrides:
set in class com.google.api.client.json.GenericJson
-
clone
public AdvancedMachineFeatures clone()
- Overrides:
clone in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy