public final class LeaseWorkItemRequest 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 Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LeaseWorkItemRequest() |
Modifier and Type | Method and Description |
---|---|
LeaseWorkItemRequest |
clone() |
String |
getCurrentWorkerTime()
The current timestamp at the worker.
|
String |
getRequestedLeaseDuration()
The initial lease period.
|
List<String> |
getWorkerCapabilities()
Worker capabilities.
|
String |
getWorkerId()
Identifies the worker leasing work -- typically the ID of the virtual machine running the
worker.
|
List<String> |
getWorkItemTypes()
Filter for WorkItem type.
|
LeaseWorkItemRequest |
set(String fieldName,
Object value) |
LeaseWorkItemRequest |
setCurrentWorkerTime(String currentWorkerTime)
The current timestamp at the worker.
|
LeaseWorkItemRequest |
setRequestedLeaseDuration(String requestedLeaseDuration)
The initial lease period.
|
LeaseWorkItemRequest |
setWorkerCapabilities(List<String> workerCapabilities)
Worker capabilities.
|
LeaseWorkItemRequest |
setWorkerId(String workerId)
Identifies the worker leasing work -- typically the ID of the virtual machine running the
worker.
|
LeaseWorkItemRequest |
setWorkItemTypes(List<String> workItemTypes)
Filter for WorkItem type.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getCurrentWorkerTime()
null
for nonepublic LeaseWorkItemRequest setCurrentWorkerTime(String currentWorkerTime)
currentWorkerTime
- currentWorkerTime or null
for nonepublic String getRequestedLeaseDuration()
null
for nonepublic LeaseWorkItemRequest setRequestedLeaseDuration(String requestedLeaseDuration)
requestedLeaseDuration
- requestedLeaseDuration or null
for nonepublic List<String> getWorkItemTypes()
null
for nonepublic LeaseWorkItemRequest setWorkItemTypes(List<String> workItemTypes)
workItemTypes
- workItemTypes or null
for nonepublic List<String> getWorkerCapabilities()
null
for nonepublic LeaseWorkItemRequest setWorkerCapabilities(List<String> workerCapabilities)
workerCapabilities
- workerCapabilities or null
for nonepublic String getWorkerId()
null
for nonepublic LeaseWorkItemRequest setWorkerId(String workerId)
workerId
- workerId or null
for nonepublic LeaseWorkItemRequest set(String fieldName, Object value)
set
in class GenericJson
public LeaseWorkItemRequest clone()
clone
in class GenericJson