public final class ResourcePolicyWorkloadPolicy
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 |
---|
ResourcePolicyWorkloadPolicy() |
Modifier and Type | Method and Description |
---|---|
ResourcePolicyWorkloadPolicy |
clone() |
String |
getAcceleratorTopology()
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
|
String |
getMaxTopologyDistance()
Specifies the maximum distance between instances.
|
String |
getType()
Specifies the intent of the instance placement in the MIG.
|
ResourcePolicyWorkloadPolicy |
set(String fieldName,
Object value) |
ResourcePolicyWorkloadPolicy |
setAcceleratorTopology(String acceleratorTopology)
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
|
ResourcePolicyWorkloadPolicy |
setMaxTopologyDistance(String maxTopologyDistance)
Specifies the maximum distance between instances.
|
ResourcePolicyWorkloadPolicy |
setType(String type)
Specifies the intent of the instance placement in the MIG.
|
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 String getAcceleratorTopology()
null
for nonepublic ResourcePolicyWorkloadPolicy setAcceleratorTopology(String acceleratorTopology)
acceleratorTopology
- acceleratorTopology or null
for nonepublic String getMaxTopologyDistance()
null
for nonepublic ResourcePolicyWorkloadPolicy setMaxTopologyDistance(String maxTopologyDistance)
maxTopologyDistance
- maxTopologyDistance or null
for nonepublic String getType()
null
for nonepublic ResourcePolicyWorkloadPolicy setType(String type)
type
- type or null
for nonepublic ResourcePolicyWorkloadPolicy set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ResourcePolicyWorkloadPolicy clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.