Class RedTeamRetrieveStatusResponse.Builder
-
- All Implemented Interfaces:
public final class RedTeamRetrieveStatusResponse.BuilderA builder for RedTeamRetrieveStatusResponse.
-
-
Method Summary
-
-
Method Detail
-
name
final RedTeamRetrieveStatusResponse.Builder name(String name)
Workflow name
-
name
final RedTeamRetrieveStatusResponse.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
runId
final RedTeamRetrieveStatusResponse.Builder runId(String runId)
Run identifier
-
runId
final RedTeamRetrieveStatusResponse.Builder runId(JsonField<String> runId)
Sets Builder.runId to an arbitrary JSON value.
You should usually call Builder.runId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final RedTeamRetrieveStatusResponse.Builder status(String status)
Workflow status
-
status
final RedTeamRetrieveStatusResponse.Builder status(JsonField<String> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workflowId
final RedTeamRetrieveStatusResponse.Builder workflowId(String workflowId)
Workflow identifier
-
workflowId
final RedTeamRetrieveStatusResponse.Builder workflowId(JsonField<String> workflowId)
Sets Builder.workflowId to an arbitrary JSON value.
You should usually call Builder.workflowId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
activeSessions
final RedTeamRetrieveStatusResponse.Builder activeSessions(Integer activeSessions)
Number of active sessions
-
activeSessions
final RedTeamRetrieveStatusResponse.Builder activeSessions(JsonField<Integer> activeSessions)
Sets Builder.activeSessions to an arbitrary JSON value.
You should usually call Builder.activeSessions with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
completedSessions
final RedTeamRetrieveStatusResponse.Builder completedSessions(Integer completedSessions)
Number of completed sessions
-
completedSessions
final RedTeamRetrieveStatusResponse.Builder completedSessions(JsonField<Integer> completedSessions)
Sets Builder.completedSessions to an arbitrary JSON value.
You should usually call Builder.completedSessions with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
elapsedSeconds
final RedTeamRetrieveStatusResponse.Builder elapsedSeconds(Double elapsedSeconds)
Elapsed time in seconds
-
elapsedSeconds
final RedTeamRetrieveStatusResponse.Builder elapsedSeconds(JsonField<Double> elapsedSeconds)
Sets Builder.elapsedSeconds to an arbitrary JSON value.
You should usually call Builder.elapsedSeconds with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final RedTeamRetrieveStatusResponse.Builder error(String error)
Error message if failed
-
error
final RedTeamRetrieveStatusResponse.Builder error(JsonField<String> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
etaSeconds
final RedTeamRetrieveStatusResponse.Builder etaSeconds(Double etaSeconds)
Estimated time remaining in seconds
-
etaSeconds
final RedTeamRetrieveStatusResponse.Builder etaSeconds(JsonField<Double> etaSeconds)
Sets Builder.etaSeconds to an arbitrary JSON value.
You should usually call Builder.etaSeconds with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
failedSessions
final RedTeamRetrieveStatusResponse.Builder failedSessions(Integer failedSessions)
Number of failed sessions
-
failedSessions
final RedTeamRetrieveStatusResponse.Builder failedSessions(JsonField<Integer> failedSessions)
Sets Builder.failedSessions to an arbitrary JSON value.
You should usually call Builder.failedSessions with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
message
final RedTeamRetrieveStatusResponse.Builder message(String message)
Status message
-
message
final RedTeamRetrieveStatusResponse.Builder message(JsonField<String> message)
Sets Builder.message to an arbitrary JSON value.
You should usually call Builder.message with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
phase
final RedTeamRetrieveStatusResponse.Builder phase(String phase)
Current workflow phase
-
phase
final RedTeamRetrieveStatusResponse.Builder phase(JsonField<String> phase)
Sets Builder.phase to an arbitrary JSON value.
You should usually call Builder.phase with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
progressCompleted
final RedTeamRetrieveStatusResponse.Builder progressCompleted(Integer progressCompleted)
Completed progress items
-
progressCompleted
final RedTeamRetrieveStatusResponse.Builder progressCompleted(JsonField<Integer> progressCompleted)
Sets Builder.progressCompleted to an arbitrary JSON value.
You should usually call Builder.progressCompleted with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
progressTotal
final RedTeamRetrieveStatusResponse.Builder progressTotal(Integer progressTotal)
Total progress items
-
progressTotal
final RedTeamRetrieveStatusResponse.Builder progressTotal(JsonField<Integer> progressTotal)
Sets Builder.progressTotal to an arbitrary JSON value.
You should usually call Builder.progressTotal with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
readyPromptsInQueue
final RedTeamRetrieveStatusResponse.Builder readyPromptsInQueue(Integer readyPromptsInQueue)
Number of prompts ready in queue
-
readyPromptsInQueue
final RedTeamRetrieveStatusResponse.Builder readyPromptsInQueue(JsonField<Integer> readyPromptsInQueue)
Sets Builder.readyPromptsInQueue to an arbitrary JSON value.
You should usually call Builder.readyPromptsInQueue with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tenantId
final RedTeamRetrieveStatusResponse.Builder tenantId(String tenantId)
Tenant identifier
-
tenantId
final RedTeamRetrieveStatusResponse.Builder tenantId(JsonField<String> tenantId)
Sets Builder.tenantId to an arbitrary JSON value.
You should usually call Builder.tenantId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
totalSessions
final RedTeamRetrieveStatusResponse.Builder totalSessions(Integer totalSessions)
Total number of sessions
-
totalSessions
final RedTeamRetrieveStatusResponse.Builder totalSessions(JsonField<Integer> totalSessions)
Sets Builder.totalSessions to an arbitrary JSON value.
You should usually call Builder.totalSessions with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RedTeamRetrieveStatusResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RedTeamRetrieveStatusResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RedTeamRetrieveStatusResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RedTeamRetrieveStatusResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RedTeamRetrieveStatusResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RedTeamRetrieveStatusResponse build()
Returns an immutable instance of RedTeamRetrieveStatusResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name() .runId() .status() .workflowId()
-
-
-
-