
target.apidocs.com.google.api.services.dataproc.model.DiskConfig.html Maven / Gradle / Ivy
DiskConfig (Cloud Dataproc API v1-rev20240605-2.0.0)
com.google.api.services.dataproc.model
Class DiskConfig
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dataproc.model.DiskConfig
-
public final class DiskConfig
extends com.google.api.client.json.GenericJson
Specifies the config of disk options for a group of VM instances.
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 Cloud Dataproc 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
DiskConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DiskConfig
clone()
Integer
getBootDiskSizeGb()
Optional.
String
getBootDiskType()
Optional.
String
getLocalSsdInterface()
Optional.
Integer
getNumLocalSsds()
Optional.
DiskConfig
set(String fieldName,
Object value)
DiskConfig
setBootDiskSizeGb(Integer bootDiskSizeGb)
Optional.
DiskConfig
setBootDiskType(String bootDiskType)
Optional.
DiskConfig
setLocalSsdInterface(String localSsdInterface)
Optional.
DiskConfig
setNumLocalSsds(Integer numLocalSsds)
Optional.
-
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
-
getBootDiskSizeGb
public Integer getBootDiskSizeGb()
Optional. Size in GB of the boot disk (default is 500GB).
- Returns:
- value or
null
for none
-
setBootDiskSizeGb
public DiskConfig setBootDiskSizeGb(Integer bootDiskSizeGb)
Optional. Size in GB of the boot disk (default is 500GB).
- Parameters:
bootDiskSizeGb
- bootDiskSizeGb or null
for none
-
getBootDiskType
public String getBootDiskType()
Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced"
(Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or
"pd-standard" (Persistent Disk Hard Disk Drive). See Disk types
(https://cloud.google.com/compute/docs/disks#disk-types).
- Returns:
- value or
null
for none
-
setBootDiskType
public DiskConfig setBootDiskType(String bootDiskType)
Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced"
(Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or
"pd-standard" (Persistent Disk Hard Disk Drive). See Disk types
(https://cloud.google.com/compute/docs/disks#disk-types).
- Parameters:
bootDiskType
- bootDiskType or null
for none
-
getLocalSsdInterface
public String getLocalSsdInterface()
Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small
Computer System Interface), "nvme" (Non-Volatile Memory Express). See local SSD performance
(https://cloud.google.com/compute/docs/disks/local-ssd#performance).
- Returns:
- value or
null
for none
-
setLocalSsdInterface
public DiskConfig setLocalSsdInterface(String localSsdInterface)
Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small
Computer System Interface), "nvme" (Non-Volatile Memory Express). See local SSD performance
(https://cloud.google.com/compute/docs/disks/local-ssd#performance).
- Parameters:
localSsdInterface
- localSsdInterface or null
for none
-
getNumLocalSsds
public Integer getNumLocalSsds()
Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the
boot disk is used to store runtime logs and HDFS
(https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
attached, this runtime bulk data is spread across them, and the boot disk contains only basic
config and installed binaries.Note: Local SSD options may vary by machine type and number of
vCPUs selected.
- Returns:
- value or
null
for none
-
setNumLocalSsds
public DiskConfig setNumLocalSsds(Integer numLocalSsds)
Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the
boot disk is used to store runtime logs and HDFS
(https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
attached, this runtime bulk data is spread across them, and the boot disk contains only basic
config and installed binaries.Note: Local SSD options may vary by machine type and number of
vCPUs selected.
- Parameters:
numLocalSsds
- numLocalSsds or null
for none
-
set
public DiskConfig set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public DiskConfig clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy