target.apidocs.com.google.api.services.compute.model.AllocationAggregateReservation.html Maven / Gradle / Ivy
AllocationAggregateReservation (Compute Engine API v1-rev20250107-2.0.0)
com.google.api.services.compute.model
Class AllocationAggregateReservation
- 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.AllocationAggregateReservation
-
public final class AllocationAggregateReservation
extends com.google.api.client.json.GenericJson
This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can
account for multiple instance SKUs. In other words, one can create instances of varying shapes
against this reservation.
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
AllocationAggregateReservation()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AllocationAggregateReservation
clone()
List<AllocationAggregateReservationReservedResourceInfo>
getInUseResources()
[Output only] List of resources currently in use.
List<AllocationAggregateReservationReservedResourceInfo>
getReservedResources()
List of reserved resources (CPUs, memory, accelerators).
String
getVmFamily()
The VM family that all instances scheduled against this reservation must belong to.
String
getWorkloadType()
The workload type of the instances that will target this reservation.
AllocationAggregateReservation
set(String fieldName,
Object value)
AllocationAggregateReservation
setInUseResources(List<AllocationAggregateReservationReservedResourceInfo> inUseResources)
[Output only] List of resources currently in use.
AllocationAggregateReservation
setReservedResources(List<AllocationAggregateReservationReservedResourceInfo> reservedResources)
List of reserved resources (CPUs, memory, accelerators).
AllocationAggregateReservation
setVmFamily(String vmFamily)
The VM family that all instances scheduled against this reservation must belong to.
AllocationAggregateReservation
setWorkloadType(String workloadType)
The workload type of the instances that will target this reservation.
-
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
-
getInUseResources
public List<AllocationAggregateReservationReservedResourceInfo> getInUseResources()
[Output only] List of resources currently in use.
- Returns:
- value or
null for none
-
setInUseResources
public AllocationAggregateReservation setInUseResources(List<AllocationAggregateReservationReservedResourceInfo> inUseResources)
[Output only] List of resources currently in use.
- Parameters:
inUseResources - inUseResources or null for none
-
getReservedResources
public List<AllocationAggregateReservationReservedResourceInfo> getReservedResources()
List of reserved resources (CPUs, memory, accelerators).
- Returns:
- value or
null for none
-
setReservedResources
public AllocationAggregateReservation setReservedResources(List<AllocationAggregateReservationReservedResourceInfo> reservedResources)
List of reserved resources (CPUs, memory, accelerators).
- Parameters:
reservedResources - reservedResources or null for none
-
getVmFamily
public String getVmFamily()
The VM family that all instances scheduled against this reservation must belong to.
- Returns:
- value or
null for none
-
setVmFamily
public AllocationAggregateReservation setVmFamily(String vmFamily)
The VM family that all instances scheduled against this reservation must belong to.
- Parameters:
vmFamily - vmFamily or null for none
-
getWorkloadType
public String getWorkloadType()
The workload type of the instances that will target this reservation.
- Returns:
- value or
null for none
-
setWorkloadType
public AllocationAggregateReservation setWorkloadType(String workloadType)
The workload type of the instances that will target this reservation.
- Parameters:
workloadType - workloadType or null for none
-
set
public AllocationAggregateReservation set(String fieldName,
Object value)
- Overrides:
set in class com.google.api.client.json.GenericJson
-
clone
public AllocationAggregateReservation 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