public final class Snapshot extends GenericJson
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 Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
Snapshot |
clone() |
String |
getCreationTime()
The time this snapshot was created.
|
String |
getDescription()
User specified description of the snapshot.
|
Long |
getDiskSizeBytes()
The disk byte size of the snapshot.
|
String |
getId()
The unique ID of this snapshot.
|
String |
getProjectId()
The project this snapshot belongs to.
|
List<PubsubSnapshotMetadata> |
getPubsubMetadata()
PubSub snapshot metadata.
|
String |
getRegion()
Cloud region where this snapshot lives in, e.g., "us-central1".
|
String |
getSourceJobId()
The job this snapshot was created from.
|
String |
getState()
State of the snapshot.
|
String |
getTtl()
The time after which this snapshot will be automatically deleted.
|
Snapshot |
set(String fieldName,
Object value) |
Snapshot |
setCreationTime(String creationTime)
The time this snapshot was created.
|
Snapshot |
setDescription(String description)
User specified description of the snapshot.
|
Snapshot |
setDiskSizeBytes(Long diskSizeBytes)
The disk byte size of the snapshot.
|
Snapshot |
setId(String id)
The unique ID of this snapshot.
|
Snapshot |
setProjectId(String projectId)
The project this snapshot belongs to.
|
Snapshot |
setPubsubMetadata(List<PubsubSnapshotMetadata> pubsubMetadata)
PubSub snapshot metadata.
|
Snapshot |
setRegion(String region)
Cloud region where this snapshot lives in, e.g., "us-central1".
|
Snapshot |
setSourceJobId(String sourceJobId)
The job this snapshot was created from.
|
Snapshot |
setState(String state)
State of the snapshot.
|
Snapshot |
setTtl(String ttl)
The time after which this snapshot will be automatically deleted.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCreationTime()
null
for nonepublic Snapshot setCreationTime(String creationTime)
creationTime
- creationTime or null
for nonepublic String getDescription()
null
for nonepublic Snapshot setDescription(String description)
description
- description or null
for nonepublic Long getDiskSizeBytes()
null
for nonepublic Snapshot setDiskSizeBytes(Long diskSizeBytes)
diskSizeBytes
- diskSizeBytes or null
for nonepublic String getId()
null
for nonepublic Snapshot setId(String id)
id
- id or null
for nonepublic String getProjectId()
null
for nonepublic Snapshot setProjectId(String projectId)
projectId
- projectId or null
for nonepublic List<PubsubSnapshotMetadata> getPubsubMetadata()
null
for nonepublic Snapshot setPubsubMetadata(List<PubsubSnapshotMetadata> pubsubMetadata)
pubsubMetadata
- pubsubMetadata or null
for nonepublic String getRegion()
null
for nonepublic Snapshot setRegion(String region)
region
- region or null
for nonepublic String getSourceJobId()
null
for nonepublic Snapshot setSourceJobId(String sourceJobId)
sourceJobId
- sourceJobId or null
for nonepublic String getState()
null
for nonepublic Snapshot setState(String state)
state
- state or null
for nonepublic String getTtl()
null
for nonepublic Snapshot setTtl(String ttl)
ttl
- ttl or null
for nonepublic Snapshot set(String fieldName, Object value)
set
in class GenericJson
public Snapshot clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.