Class BetaSelfHostedWorkHeartbeatResponse.Builder
-
- All Implemented Interfaces:
public final class BetaSelfHostedWorkHeartbeatResponse.BuilderA builder for BetaSelfHostedWorkHeartbeatResponse.
-
-
Method Summary
-
-
Method Detail
-
lastHeartbeat
final BetaSelfHostedWorkHeartbeatResponse.Builder lastHeartbeat(String lastHeartbeat)
RFC 3339 timestamp of the actual heartbeat from DB
-
lastHeartbeat
final BetaSelfHostedWorkHeartbeatResponse.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 BetaSelfHostedWorkHeartbeatResponse.Builder leaseExtended(Boolean leaseExtended)
Whether the heartbeat succeeded in extending the lease
-
leaseExtended
final BetaSelfHostedWorkHeartbeatResponse.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 BetaSelfHostedWorkHeartbeatResponse.Builder state(BetaSelfHostedWorkHeartbeatResponse.State state)
Current state of the work item (active/stopping/stopped)
-
state
final BetaSelfHostedWorkHeartbeatResponse.Builder state(JsonField<BetaSelfHostedWorkHeartbeatResponse.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 BetaSelfHostedWorkHeartbeatResponse.Builder ttlSeconds(Long ttlSeconds)
Effective TTL applied to the lease
-
ttlSeconds
final BetaSelfHostedWorkHeartbeatResponse.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.
-
type
final BetaSelfHostedWorkHeartbeatResponse.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("work_heartbeat")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaSelfHostedWorkHeartbeatResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaSelfHostedWorkHeartbeatResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaSelfHostedWorkHeartbeatResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaSelfHostedWorkHeartbeatResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaSelfHostedWorkHeartbeatResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaSelfHostedWorkHeartbeatResponse build()
Returns an immutable instance of BetaSelfHostedWorkHeartbeatResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.lastHeartbeat() .leaseExtended() .state() .ttlSeconds()
-
-
-
-