![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.model.AllocationSpecificSKUAllocationReservedInstanceProperties.html Maven / Gradle / Ivy
AllocationSpecificSKUAllocationReservedInstanceProperties (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute.model
Class AllocationSpecificSKUAllocationReservedInstanceProperties
- 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.AllocationSpecificSKUAllocationReservedInstanceProperties
-
public final class AllocationSpecificSKUAllocationReservedInstanceProperties
extends GenericJson
Properties of the SKU instances being reserved. Next ID: 9
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
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
AllocationSpecificSKUAllocationReservedInstanceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AllocationSpecificSKUAllocationReservedInstanceProperties
clone()
List<AcceleratorConfig>
getGuestAccelerators()
Specifies accelerator type and count.
List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk>
getLocalSsds()
Specifies amount of local ssd to reserve with each instance.
String
getLocationHint()
An opaque location hint used to place the allocation close to other resources.
String
getMachineType()
Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of
memory.
Integer
getMaintenanceFreezeDurationHours()
Specifies the number of hours after reservation creation where instances using the reservation
won't be scheduled for maintenance.
String
getMaintenanceInterval()
For more information about maintenance intervals, see Setting maintenance intervals.
String
getMinCpuPlatform()
Minimum cpu platform the reservation.
AllocationSpecificSKUAllocationReservedInstanceProperties
set(String fieldName,
Object value)
AllocationSpecificSKUAllocationReservedInstanceProperties
setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
Specifies accelerator type and count.
AllocationSpecificSKUAllocationReservedInstanceProperties
setLocalSsds(List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk> localSsds)
Specifies amount of local ssd to reserve with each instance.
AllocationSpecificSKUAllocationReservedInstanceProperties
setLocationHint(String locationHint)
An opaque location hint used to place the allocation close to other resources.
AllocationSpecificSKUAllocationReservedInstanceProperties
setMachineType(String machineType)
Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of
memory.
AllocationSpecificSKUAllocationReservedInstanceProperties
setMaintenanceFreezeDurationHours(Integer maintenanceFreezeDurationHours)
Specifies the number of hours after reservation creation where instances using the reservation
won't be scheduled for maintenance.
AllocationSpecificSKUAllocationReservedInstanceProperties
setMaintenanceInterval(String maintenanceInterval)
For more information about maintenance intervals, see Setting maintenance intervals.
AllocationSpecificSKUAllocationReservedInstanceProperties
setMinCpuPlatform(String minCpuPlatform)
Minimum cpu platform the 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
-
-
Constructor Detail
-
AllocationSpecificSKUAllocationReservedInstanceProperties
public AllocationSpecificSKUAllocationReservedInstanceProperties()
-
Method Detail
-
getGuestAccelerators
public List<AcceleratorConfig> getGuestAccelerators()
Specifies accelerator type and count.
- Returns:
- value or
null
for none
-
setGuestAccelerators
public AllocationSpecificSKUAllocationReservedInstanceProperties setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)
Specifies accelerator type and count.
- Parameters:
guestAccelerators
- guestAccelerators or null
for none
-
getLocalSsds
public List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk> getLocalSsds()
Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
- Returns:
- value or
null
for none
-
setLocalSsds
public AllocationSpecificSKUAllocationReservedInstanceProperties setLocalSsds(List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk> localSsds)
Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
- Parameters:
localSsds
- localSsds or null
for none
-
getLocationHint
public String getLocationHint()
An opaque location hint used to place the allocation close to other resources. This field is
for use by internal tools that use the public API.
- Returns:
- value or
null
for none
-
setLocationHint
public AllocationSpecificSKUAllocationReservedInstanceProperties setLocationHint(String locationHint)
An opaque location hint used to place the allocation close to other resources. This field is
for use by internal tools that use the public API.
- Parameters:
locationHint
- locationHint or null
for none
-
getMachineType
public String getMachineType()
Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of
memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-
AMOUNT_OF_MEMORY pattern.
- Returns:
- value or
null
for none
-
setMachineType
public AllocationSpecificSKUAllocationReservedInstanceProperties setMachineType(String machineType)
Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of
memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-
AMOUNT_OF_MEMORY pattern.
- Parameters:
machineType
- machineType or null
for none
-
getMaintenanceFreezeDurationHours
public Integer getMaintenanceFreezeDurationHours()
Specifies the number of hours after reservation creation where instances using the reservation
won't be scheduled for maintenance.
- Returns:
- value or
null
for none
-
setMaintenanceFreezeDurationHours
public AllocationSpecificSKUAllocationReservedInstanceProperties setMaintenanceFreezeDurationHours(Integer maintenanceFreezeDurationHours)
Specifies the number of hours after reservation creation where instances using the reservation
won't be scheduled for maintenance.
- Parameters:
maintenanceFreezeDurationHours
- maintenanceFreezeDurationHours or null
for none
-
getMaintenanceInterval
public String getMaintenanceInterval()
For more information about maintenance intervals, see Setting maintenance intervals.
- Returns:
- value or
null
for none
-
setMaintenanceInterval
public AllocationSpecificSKUAllocationReservedInstanceProperties setMaintenanceInterval(String maintenanceInterval)
For more information about maintenance intervals, see Setting maintenance intervals.
- Parameters:
maintenanceInterval
- maintenanceInterval or null
for none
-
getMinCpuPlatform
public String getMinCpuPlatform()
Minimum cpu platform the reservation.
- Returns:
- value or
null
for none
-
setMinCpuPlatform
public AllocationSpecificSKUAllocationReservedInstanceProperties setMinCpuPlatform(String minCpuPlatform)
Minimum cpu platform the reservation.
- Parameters:
minCpuPlatform
- minCpuPlatform or null
for none
-
set
public AllocationSpecificSKUAllocationReservedInstanceProperties set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public AllocationSpecificSKUAllocationReservedInstanceProperties clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy