Class ResponseInputItem.LocalShellCall.Action.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.LocalShellCall.Action.Builder
A builder for Action.
-
-
Method Summary
-
-
Method Detail
-
command
final ResponseInputItem.LocalShellCall.Action.Builder command(List<String> command)
The command to run.
-
command
final ResponseInputItem.LocalShellCall.Action.Builder command(JsonField<List<String>> command)
Sets Builder.command to an arbitrary JSON value.
You should usually call Builder.command with a well-typed
List<String>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addCommand
final ResponseInputItem.LocalShellCall.Action.Builder addCommand(String command)
Adds a single String to Builder.command.
-
env
final ResponseInputItem.LocalShellCall.Action.Builder env(ResponseInputItem.LocalShellCall.Action.Env env)
Environment variables to set for the command.
-
env
final ResponseInputItem.LocalShellCall.Action.Builder env(JsonField<ResponseInputItem.LocalShellCall.Action.Env> env)
Sets Builder.env to an arbitrary JSON value.
You should usually call Builder.env with a well-typed Env value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseInputItem.LocalShellCall.Action.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("exec")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
timeoutMs
final ResponseInputItem.LocalShellCall.Action.Builder timeoutMs(Long timeoutMs)
Optional timeout in milliseconds for the command.
-
timeoutMs
final ResponseInputItem.LocalShellCall.Action.Builder timeoutMs(Long timeoutMs)
Alias for Builder.timeoutMs.
This unboxed primitive overload exists for backwards compatibility.
-
timeoutMs
final ResponseInputItem.LocalShellCall.Action.Builder timeoutMs(Optional<Long> timeoutMs)
Alias for calling Builder.timeoutMs with
timeoutMs.orElse(null)
.
-
timeoutMs
final ResponseInputItem.LocalShellCall.Action.Builder timeoutMs(JsonField<Long> timeoutMs)
Sets Builder.timeoutMs to an arbitrary JSON value.
You should usually call Builder.timeoutMs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
user
final ResponseInputItem.LocalShellCall.Action.Builder user(String user)
Optional user to run the command as.
-
user
final ResponseInputItem.LocalShellCall.Action.Builder user(Optional<String> user)
Alias for calling Builder.user with
user.orElse(null)
.
-
user
final ResponseInputItem.LocalShellCall.Action.Builder user(JsonField<String> user)
Sets Builder.user to an arbitrary JSON value.
You should usually call Builder.user with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workingDirectory
final ResponseInputItem.LocalShellCall.Action.Builder workingDirectory(String workingDirectory)
Optional working directory to run the command in.
-
workingDirectory
final ResponseInputItem.LocalShellCall.Action.Builder workingDirectory(Optional<String> workingDirectory)
Alias for calling Builder.workingDirectory with
workingDirectory.orElse(null)
.
-
workingDirectory
final ResponseInputItem.LocalShellCall.Action.Builder workingDirectory(JsonField<String> workingDirectory)
Sets Builder.workingDirectory to an arbitrary JSON value.
You should usually call Builder.workingDirectory with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputItem.LocalShellCall.Action.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.LocalShellCall.Action.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.LocalShellCall.Action.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.LocalShellCall.Action.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.LocalShellCall.Action.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.LocalShellCall.Action build()
Returns an immutable instance of Action.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.command() .env()
-
-
-
-