target.apidocs.com.google.api.services.dataproc.model.UsageSnapshot.html Maven / Gradle / Ivy
The newest version!
UsageSnapshot (Cloud Dataproc API v1-rev20241025-2.0.0)
com.google.api.services.dataproc.model
Class UsageSnapshot
- 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.UsageSnapshot
-
public final class UsageSnapshot
extends com.google.api.client.json.GenericJson
The usage snapshot represents the resources consumed by a workload at a specified time.
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
UsageSnapshot()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
UsageSnapshot
clone()
String
getAcceleratorType()
Optional.
Long
getMilliAccelerator()
Optional.
Long
getMilliDcu()
Optional.
Long
getMilliDcuPremium()
Optional.
Long
getShuffleStorageGb()
Optional.
Long
getShuffleStorageGbPremium()
Optional.
String
getSnapshotTime()
Optional.
UsageSnapshot
set(String fieldName,
Object value)
UsageSnapshot
setAcceleratorType(String acceleratorType)
Optional.
UsageSnapshot
setMilliAccelerator(Long milliAccelerator)
Optional.
UsageSnapshot
setMilliDcu(Long milliDcu)
Optional.
UsageSnapshot
setMilliDcuPremium(Long milliDcuPremium)
Optional.
UsageSnapshot
setShuffleStorageGb(Long shuffleStorageGb)
Optional.
UsageSnapshot
setShuffleStorageGbPremium(Long shuffleStorageGbPremium)
Optional.
UsageSnapshot
setSnapshotTime(String snapshotTime)
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
-
getAcceleratorType
public String getAcceleratorType()
Optional. Accelerator type being used, if any
- Returns:
- value or
null
for none
-
setAcceleratorType
public UsageSnapshot setAcceleratorType(String acceleratorType)
Optional. Accelerator type being used, if any
- Parameters:
acceleratorType
- acceleratorType or null
for none
-
getMilliAccelerator
public Long getMilliAccelerator()
Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing
(https://cloud.google.com/dataproc-serverless/pricing))
- Returns:
- value or
null
for none
-
setMilliAccelerator
public UsageSnapshot setMilliAccelerator(Long milliAccelerator)
Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing
(https://cloud.google.com/dataproc-serverless/pricing))
- Parameters:
milliAccelerator
- milliAccelerator or null
for none
-
getMilliDcu
public Long getMilliDcu()
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc Serverless pricing
(https://cloud.google.com/dataproc-serverless/pricing)).
- Returns:
- value or
null
for none
-
setMilliDcu
public UsageSnapshot setMilliDcu(Long milliDcu)
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc Serverless pricing
(https://cloud.google.com/dataproc-serverless/pricing)).
- Parameters:
milliDcu
- milliDcu or null
for none
-
getMilliDcuPremium
public Long getMilliDcuPremium()
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see
Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).
- Returns:
- value or
null
for none
-
setMilliDcuPremium
public UsageSnapshot setMilliDcuPremium(Long milliDcuPremium)
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see
Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).
- Parameters:
milliDcuPremium
- milliDcuPremium or null
for none
-
getShuffleStorageGb
public Long getShuffleStorageGb()
Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing
(https://cloud.google.com/dataproc-serverless/pricing))
- Returns:
- value or
null
for none
-
setShuffleStorageGb
public UsageSnapshot setShuffleStorageGb(Long shuffleStorageGb)
Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing
(https://cloud.google.com/dataproc-serverless/pricing))
- Parameters:
shuffleStorageGb
- shuffleStorageGb or null
for none
-
getShuffleStorageGbPremium
public Long getShuffleStorageGbPremium()
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see Dataproc Serverless
pricing (https://cloud.google.com/dataproc-serverless/pricing))
- Returns:
- value or
null
for none
-
setShuffleStorageGbPremium
public UsageSnapshot setShuffleStorageGbPremium(Long shuffleStorageGbPremium)
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see Dataproc Serverless
pricing (https://cloud.google.com/dataproc-serverless/pricing))
- Parameters:
shuffleStorageGbPremium
- shuffleStorageGbPremium or null
for none
-
getSnapshotTime
public String getSnapshotTime()
Optional. The timestamp of the usage snapshot.
- Returns:
- value or
null
for none
-
setSnapshotTime
public UsageSnapshot setSnapshotTime(String snapshotTime)
Optional. The timestamp of the usage snapshot.
- Parameters:
snapshotTime
- snapshotTime or null
for none
-
set
public UsageSnapshot set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public UsageSnapshot 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