com.google.api.services.backupdr.v1.model.AdvancedMachineFeatures Maven / Gradle / Ivy
/*
* 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.backupdr.v1.model;
/**
* Specifies options for controlling advanced machine features.
*
* 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 Backup and DR Service 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 {
/**
* Optional. 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;
/**
* Optional. 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;
/**
* Optional. 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;
/**
* Optional. 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;
/**
* Optional. Whether to enable nested virtualization or not (default is false).
* @return value or {@code null} for none
*/
public java.lang.Boolean getEnableNestedVirtualization() {
return enableNestedVirtualization;
}
/**
* Optional. 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;
}
/**
* Optional. Whether to enable UEFI networking for instance creation.
* @return value or {@code null} for none
*/
public java.lang.Boolean getEnableUefiNetworking() {
return enableUefiNetworking;
}
/**
* Optional. 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;
}
/**
* Optional. 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;
}
/**
* Optional. 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;
}
/**
* Optional. 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;
}
/**
* Optional. 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 - 2025 Weber Informatics LLC | Privacy Policy