Class BetaSelfHostedWork.Builder
-
- All Implemented Interfaces:
public final class BetaSelfHostedWork.BuilderA builder for BetaSelfHostedWork.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaSelfHostedWork.Builder id(String id)
Work identifier (e.g., 'work_...')
-
id
final BetaSelfHostedWork.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
acknowledgedAt
final BetaSelfHostedWork.Builder acknowledgedAt(String acknowledgedAt)
RFC 3339 timestamp when the work item was acknowledged and assigned to a self-hosted sandbox
-
acknowledgedAt
final BetaSelfHostedWork.Builder acknowledgedAt(Optional<String> acknowledgedAt)
Alias for calling Builder.acknowledgedAt with
acknowledgedAt.orElse(null).
-
acknowledgedAt
final BetaSelfHostedWork.Builder acknowledgedAt(JsonField<String> acknowledgedAt)
Sets Builder.acknowledgedAt to an arbitrary JSON value.
You should usually call Builder.acknowledgedAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaSelfHostedWork.Builder createdAt(String createdAt)
RFC 3339 timestamp when work was created
-
createdAt
final BetaSelfHostedWork.Builder createdAt(JsonField<String> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
data
final BetaSelfHostedWork.Builder data(BetaSessionWorkData data)
The actual work to be performed
-
data
final BetaSelfHostedWork.Builder data(JsonField<BetaSessionWorkData> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed BetaSessionWorkData value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
environmentId
final BetaSelfHostedWork.Builder environmentId(String environmentId)
Environment identifier this work belongs to (e.g.,
env_...)
-
environmentId
final BetaSelfHostedWork.Builder environmentId(JsonField<String> environmentId)
Sets Builder.environmentId to an arbitrary JSON value.
You should usually call Builder.environmentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
latestHeartbeatAt
final BetaSelfHostedWork.Builder latestHeartbeatAt(String latestHeartbeatAt)
RFC 3339 timestamp of the most recent heartbeat
-
latestHeartbeatAt
final BetaSelfHostedWork.Builder latestHeartbeatAt(Optional<String> latestHeartbeatAt)
Alias for calling Builder.latestHeartbeatAt with
latestHeartbeatAt.orElse(null).
-
latestHeartbeatAt
final BetaSelfHostedWork.Builder latestHeartbeatAt(JsonField<String> latestHeartbeatAt)
Sets Builder.latestHeartbeatAt to an arbitrary JSON value.
You should usually call Builder.latestHeartbeatAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final BetaSelfHostedWork.Builder metadata(BetaSelfHostedWork.Metadata metadata)
User-provided metadata key-value pairs associated with this work item
-
metadata
final BetaSelfHostedWork.Builder metadata(JsonField<BetaSelfHostedWork.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
startedAt
final BetaSelfHostedWork.Builder startedAt(String startedAt)
RFC 3339 timestamp when work execution started
-
startedAt
final BetaSelfHostedWork.Builder startedAt(Optional<String> startedAt)
Alias for calling Builder.startedAt with
startedAt.orElse(null).
-
startedAt
final BetaSelfHostedWork.Builder startedAt(JsonField<String> startedAt)
Sets Builder.startedAt to an arbitrary JSON value.
You should usually call Builder.startedAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final BetaSelfHostedWork.Builder state(BetaSelfHostedWork.State state)
Current state of the work item
-
state
final BetaSelfHostedWork.Builder state(JsonField<BetaSelfHostedWork.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.
-
stopRequestedAt
final BetaSelfHostedWork.Builder stopRequestedAt(String stopRequestedAt)
RFC 3339 timestamp when stop was requested
-
stopRequestedAt
final BetaSelfHostedWork.Builder stopRequestedAt(Optional<String> stopRequestedAt)
Alias for calling Builder.stopRequestedAt with
stopRequestedAt.orElse(null).
-
stopRequestedAt
final BetaSelfHostedWork.Builder stopRequestedAt(JsonField<String> stopRequestedAt)
Sets Builder.stopRequestedAt to an arbitrary JSON value.
You should usually call Builder.stopRequestedAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stoppedAt
final BetaSelfHostedWork.Builder stoppedAt(String stoppedAt)
RFC 3339 timestamp when work execution stopped
-
stoppedAt
final BetaSelfHostedWork.Builder stoppedAt(Optional<String> stoppedAt)
Alias for calling Builder.stoppedAt with
stoppedAt.orElse(null).
-
stoppedAt
final BetaSelfHostedWork.Builder stoppedAt(JsonField<String> stoppedAt)
Sets Builder.stoppedAt to an arbitrary JSON value.
You should usually call Builder.stoppedAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaSelfHostedWork.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")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaSelfHostedWork.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaSelfHostedWork.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaSelfHostedWork.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaSelfHostedWork.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaSelfHostedWork.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaSelfHostedWork build()
Returns an immutable instance of BetaSelfHostedWork.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .acknowledgedAt() .createdAt() .data() .environmentId() .latestHeartbeatAt() .metadata() .startedAt() .state() .stopRequestedAt() .stoppedAt()
-
-
-
-