public static class AgentEnvironmentRequest.Builder
extends java.lang.Object
AgentEnvironmentRequest
instance.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AgentEnvironmentRequest |
build()
Build a new immutable instance of an
AgentEnvironmentRequest . |
AgentEnvironmentRequest.Builder |
withExt(com.fasterxml.jackson.databind.JsonNode ext)
Set the extension configuration for the agent.
|
AgentEnvironmentRequest.Builder |
withRequestedEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> requestedEnvironmentVariables)
Set any environment variables that the agent should add to the job runtime.
|
AgentEnvironmentRequest.Builder |
withRequestedJobCpu(java.lang.Integer requestedJobCpu)
Set the number of CPU cores that should be allocated to run the associated job.
|
AgentEnvironmentRequest.Builder |
withRequestedJobMemory(java.lang.Integer requestedJobMemory)
Set the amount of memory (in MB) that should be allocated for the job processes.
|
public AgentEnvironmentRequest.Builder withRequestedJobCpu(@Nullable java.lang.Integer requestedJobCpu)
requestedJobCpu
- The number of CPU's. Must be greater than or equal to 1.public AgentEnvironmentRequest.Builder withRequestedJobMemory(@Nullable java.lang.Integer requestedJobMemory)
requestedJobMemory
- The requested memory. Must be greater than or equal to 1 but preferably much morepublic AgentEnvironmentRequest.Builder withRequestedEnvironmentVariables(@Nullable java.util.Map<java.lang.String,java.lang.String> requestedEnvironmentVariables)
requestedEnvironmentVariables
- Additional environment variablespublic AgentEnvironmentRequest.Builder withExt(@Nullable com.fasterxml.jackson.databind.JsonNode ext)
ext
- The extension configuration which is effectively a DSL per job launch implementationpublic AgentEnvironmentRequest build()
AgentEnvironmentRequest
.