public final class Snapshot
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
Snapshot |
clone() |
java.lang.String |
getCreationTime()
The time this snapshot was created.
|
java.lang.String |
getDescription()
User specified description of the snapshot.
|
java.lang.Long |
getDiskSizeBytes()
The disk byte size of the snapshot.
|
java.lang.String |
getId()
The unique ID of this snapshot.
|
java.lang.String |
getProjectId()
The project this snapshot belongs to.
|
java.util.List<PubsubSnapshotMetadata> |
getPubsubMetadata()
PubSub snapshot metadata.
|
java.lang.String |
getSourceJobId()
The job this snapshot was created from.
|
java.lang.String |
getState()
State of the snapshot.
|
java.lang.String |
getTtl()
The time after which this snapshot will be automatically deleted.
|
Snapshot |
set(java.lang.String fieldName,
java.lang.Object value) |
Snapshot |
setCreationTime(java.lang.String creationTime)
The time this snapshot was created.
|
Snapshot |
setDescription(java.lang.String description)
User specified description of the snapshot.
|
Snapshot |
setDiskSizeBytes(java.lang.Long diskSizeBytes)
The disk byte size of the snapshot.
|
Snapshot |
setId(java.lang.String id)
The unique ID of this snapshot.
|
Snapshot |
setProjectId(java.lang.String projectId)
The project this snapshot belongs to.
|
Snapshot |
setPubsubMetadata(java.util.List<PubsubSnapshotMetadata> pubsubMetadata)
PubSub snapshot metadata.
|
Snapshot |
setSourceJobId(java.lang.String sourceJobId)
The job this snapshot was created from.
|
Snapshot |
setState(java.lang.String state)
State of the snapshot.
|
Snapshot |
setTtl(java.lang.String ttl)
The time after which this snapshot will be automatically deleted.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCreationTime()
null
for nonepublic Snapshot setCreationTime(java.lang.String creationTime)
creationTime
- creationTime or null
for nonepublic java.lang.String getDescription()
null
for nonepublic Snapshot setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Long getDiskSizeBytes()
null
for nonepublic Snapshot setDiskSizeBytes(java.lang.Long diskSizeBytes)
diskSizeBytes
- diskSizeBytes or null
for nonepublic java.lang.String getId()
null
for nonepublic Snapshot setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getProjectId()
null
for nonepublic Snapshot setProjectId(java.lang.String projectId)
projectId
- projectId or null
for nonepublic java.util.List<PubsubSnapshotMetadata> getPubsubMetadata()
null
for nonepublic Snapshot setPubsubMetadata(java.util.List<PubsubSnapshotMetadata> pubsubMetadata)
pubsubMetadata
- pubsubMetadata or null
for nonepublic java.lang.String getSourceJobId()
null
for nonepublic Snapshot setSourceJobId(java.lang.String sourceJobId)
sourceJobId
- sourceJobId or null
for nonepublic java.lang.String getState()
null
for nonepublic Snapshot setState(java.lang.String state)
state
- state or null
for nonepublic java.lang.String getTtl()
null
for nonepublic Snapshot setTtl(java.lang.String ttl)
ttl
- ttl or null
for nonepublic Snapshot set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Snapshot clone()
clone
in class com.google.api.client.json.GenericJson