All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.compute.model.AdvancedMachineFeatures Maven / Gradle / Ivy

There is a newer version: v1-rev20240903-2.0.0
Show newest version
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.compute.model;

/**
 * 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. */ @SuppressWarnings("javadoc") public final class AdvancedMachineFeatures extends com.google.api.client.json.GenericJson { /** * Whether to enable nested virtualization or not (default is false). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean enableNestedVirtualization; /** * Whether to enable UEFI networking for instance creation. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean enableUefiNetworking; /** * Type of Performance Monitoring Unit requested on instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String performanceMonitoringUnit; /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer threadsPerCore; /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String turboMode; /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer visibleCoreCount; /** * Whether to enable nested virtualization or not (default is false). * @return value or {@code null} for none */ public java.lang.Boolean getEnableNestedVirtualization() { return enableNestedVirtualization; } /** * Whether to enable nested virtualization or not (default is false). * @param enableNestedVirtualization enableNestedVirtualization or {@code null} for none */ public AdvancedMachineFeatures setEnableNestedVirtualization(java.lang.Boolean enableNestedVirtualization) { this.enableNestedVirtualization = enableNestedVirtualization; return this; } /** * Whether to enable UEFI networking for instance creation. * @return value or {@code null} for none */ public java.lang.Boolean getEnableUefiNetworking() { return enableUefiNetworking; } /** * Whether to enable UEFI networking for instance creation. * @param enableUefiNetworking enableUefiNetworking or {@code null} for none */ public AdvancedMachineFeatures setEnableUefiNetworking(java.lang.Boolean enableUefiNetworking) { this.enableUefiNetworking = enableUefiNetworking; return this; } /** * Type of Performance Monitoring Unit requested on instance. * @return value or {@code null} for none */ public java.lang.String getPerformanceMonitoringUnit() { return performanceMonitoringUnit; } /** * Type of Performance Monitoring Unit requested on instance. * @param performanceMonitoringUnit performanceMonitoringUnit or {@code null} for none */ public AdvancedMachineFeatures setPerformanceMonitoringUnit(java.lang.String performanceMonitoringUnit) { this.performanceMonitoringUnit = performanceMonitoringUnit; return this; } /** * 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. * @return value or {@code null} for none */ public java.lang.Integer getThreadsPerCore() { return 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. * @param threadsPerCore threadsPerCore or {@code null} for none */ public AdvancedMachineFeatures setThreadsPerCore(java.lang.Integer threadsPerCore) { this.threadsPerCore = threadsPerCore; return this; } /** * 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. * @return value or {@code null} for none */ public java.lang.String getTurboMode() { return 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. * @param turboMode turboMode or {@code null} for none */ public AdvancedMachineFeatures setTurboMode(java.lang.String turboMode) { this.turboMode = turboMode; return this; } /** * 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. * @return value or {@code null} for none */ public java.lang.Integer getVisibleCoreCount() { return 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. * @param visibleCoreCount visibleCoreCount or {@code null} for none */ public AdvancedMachineFeatures setVisibleCoreCount(java.lang.Integer visibleCoreCount) { this.visibleCoreCount = visibleCoreCount; return this; } @Override public AdvancedMachineFeatures set(String fieldName, Object value) { return (AdvancedMachineFeatures) super.set(fieldName, value); } @Override public AdvancedMachineFeatures clone() { return (AdvancedMachineFeatures) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy