target.apidocs.com.google.api.services.compute.model.SavedDisk.html Maven / Gradle / Ivy
The newest version!
SavedDisk (Compute Engine API v1-rev20250320-2.0.0)
com.google.api.services.compute.model
Class SavedDisk
- 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.SavedDisk
-
public final class SavedDisk
extends com.google.api.client.json.GenericJson
An instance-attached disk resource.
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
SavedDisk()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SavedDisk
clone()
String
getArchitecture()
[Output Only] The architecture of the attached disk.
String
getKind()
[Output Only] Type of the resource.
String
getSourceDisk()
Specifies a URL of the disk attached to the source instance.
Long
getStorageBytes()
[Output Only] Size of the individual disk snapshot used by this machine image.
String
getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation.
SavedDisk
set(String fieldName,
Object value)
SavedDisk
setArchitecture(String architecture)
[Output Only] The architecture of the attached disk.
SavedDisk
setKind(String kind)
[Output Only] Type of the resource.
SavedDisk
setSourceDisk(String sourceDisk)
Specifies a URL of the disk attached to the source instance.
SavedDisk
setStorageBytes(Long storageBytes)
[Output Only] Size of the individual disk snapshot used by this machine image.
SavedDisk
setStorageBytesStatus(String storageBytesStatus)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation.
-
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
-
getArchitecture
public String getArchitecture()
[Output Only] The architecture of the attached disk.
- Returns:
- value or
null for none
-
setArchitecture
public SavedDisk setArchitecture(String architecture)
[Output Only] The architecture of the attached disk.
- Parameters:
architecture - architecture or null for none
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
- Returns:
- value or
null for none
-
setKind
public SavedDisk setKind(String kind)
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
- Parameters:
kind - kind or null for none
-
getSourceDisk
public String getSourceDisk()
Specifies a URL of the disk attached to the source instance.
- Returns:
- value or
null for none
-
setSourceDisk
public SavedDisk setSourceDisk(String sourceDisk)
Specifies a URL of the disk attached to the source instance.
- Parameters:
sourceDisk - sourceDisk or null for none
-
getStorageBytes
public Long getStorageBytes()
[Output Only] Size of the individual disk snapshot used by this machine image.
- Returns:
- value or
null for none
-
setStorageBytes
public SavedDisk setStorageBytes(Long storageBytes)
[Output Only] Size of the individual disk snapshot used by this machine image.
- Parameters:
storageBytes - storageBytes or null for none
-
getStorageBytesStatus
public String getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation. This status can either be UPDATING, meaning the size
of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-
date.
- Returns:
- value or
null for none
-
setStorageBytesStatus
public SavedDisk setStorageBytesStatus(String storageBytesStatus)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation. This status can either be UPDATING, meaning the size
of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-
date.
- Parameters:
storageBytesStatus - storageBytesStatus or null for none
-
set
public SavedDisk set(String fieldName,
Object value)
- Overrides:
set in class com.google.api.client.json.GenericJson
-
clone
public SavedDisk 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