Class BetaWorkLeaseState.Builder
-
- All Implemented Interfaces:
public final class BetaWorkLeaseState.BuilderA builder for BetaWorkLeaseState.
-
-
Method Summary
-
-
Method Detail
-
lastHeartbeat
final BetaWorkLeaseState.Builder lastHeartbeat(String lastHeartbeat)
RFC 3339 timestamp of the stored heartbeat, or null if there has been none
-
lastHeartbeat
final BetaWorkLeaseState.Builder lastHeartbeat(Optional<String> lastHeartbeat)
Alias for calling Builder.lastHeartbeat with
lastHeartbeat.orElse(null).
-
lastHeartbeat
final BetaWorkLeaseState.Builder lastHeartbeat(JsonField<String> lastHeartbeat)
Sets Builder.lastHeartbeat to an arbitrary JSON value.
You should usually call Builder.lastHeartbeat with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
leaseExtended
final BetaWorkLeaseState.Builder leaseExtended(Boolean leaseExtended)
Always false: a refused heartbeat does not extend the lease
-
leaseExtended
final BetaWorkLeaseState.Builder leaseExtended(JsonField<Boolean> leaseExtended)
Sets Builder.leaseExtended to an arbitrary JSON value.
You should usually call Builder.leaseExtended with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final BetaWorkLeaseState.Builder state(BetaWorkLeaseState.State state)
Current state of the work item
-
state
final BetaWorkLeaseState.Builder state(JsonField<BetaWorkLeaseState.State> state)
Sets Builder.state to an arbitrary JSON value.
You should usually call Builder.state with a well-typed State value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
ttlSeconds
final BetaWorkLeaseState.Builder ttlSeconds(Long ttlSeconds)
TTL of the lease
-
ttlSeconds
final BetaWorkLeaseState.Builder ttlSeconds(JsonField<Long> ttlSeconds)
Sets Builder.ttlSeconds to an arbitrary JSON value.
You should usually call Builder.ttlSeconds with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaWorkLeaseState.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaWorkLeaseState.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWorkLeaseState.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWorkLeaseState.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWorkLeaseState.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWorkLeaseState build()
Returns an immutable instance of BetaWorkLeaseState.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.lastHeartbeat() .leaseExtended() .state() .ttlSeconds()
-
-
-
-