public static final class CreateEciScalingConfigurationRequest.Containers.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateEciScalingConfigurationRequest.Containers.Builder |
args(List<String> args)
The container startup arguments.
|
CreateEciScalingConfigurationRequest.Containers |
build() |
CreateEciScalingConfigurationRequest.Containers.Builder |
commands(List<String> commands)
The commands that you want to run by using the CLI for liveness probing within the container.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
cpu(Float cpu)
The number of vCPUs per container.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
environmentVars(List<CreateEciScalingConfigurationRequest.EnvironmentVars> environmentVars)
The environment variables.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
gpu(Integer gpu)
The number of GPUs per container.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
image(String image)
The container image.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
imagePullPolicy(String imagePullPolicy)
The image pulling policy.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePostStartHandlerExecs(List<String> lifecyclePostStartHandlerExecs)
The commands that you want to run by using the CLI to configure the postStart callback function within the container.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePostStartHandlerHttpGetHost(String lifecyclePostStartHandlerHttpGetHost)
The IP address of the host to which you want to send HTTP GET requests to configure the postStart callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePostStartHandlerHttpGetPath(String lifecyclePostStartHandlerHttpGetPath)
The path to which you want to send HTTP GET requests to configure the postStart callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePostStartHandlerHttpGetPort(Integer lifecyclePostStartHandlerHttpGetPort)
The port over which you want to send HTTP GET requests to configure the postStart callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePostStartHandlerHttpGetScheme(String lifecyclePostStartHandlerHttpGetScheme)
The protocol type of HTTP GET requests that you want to send to configure the postStart callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePostStartHandlerTcpSocketHost(String lifecyclePostStartHandlerTcpSocketHost)
The IP address of the host detected by the TCP sockets that you want to use to configure the postStart callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePostStartHandlerTcpSocketPort(Integer lifecyclePostStartHandlerTcpSocketPort)
The port detected by the TCP sockets that you want to use to configure the postStart callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePreStopHandlerExecs(List<String> lifecyclePreStopHandlerExecs)
The commands that you want to run by using the CLI to configure the preStop callback function within the container.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePreStopHandlerHttpGetHost(String lifecyclePreStopHandlerHttpGetHost)
The IP address of the host to which you want to send HTTP GET requests to configure the preStop callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePreStopHandlerHttpGetPath(String lifecyclePreStopHandlerHttpGetPath)
The path to which you want to send HTTP GET requests to configure the preStop callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePreStopHandlerHttpGetPort(Integer lifecyclePreStopHandlerHttpGetPort)
The port over which you want to send HTTP GET requests to configure the preStop callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePreStopHandlerHttpGetScheme(String lifecyclePreStopHandlerHttpGetScheme)
The protocol type of the HTTP GET requests that you want to send to configure the preStop callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePreStopHandlerTcpSocketHost(String lifecyclePreStopHandlerTcpSocketHost)
The IP address of the host detected by the TCP sockets that you want to use to configure the preStop callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
lifecyclePreStopHandlerTcpSocketPort(Integer lifecyclePreStopHandlerTcpSocketPort)
The port detected by the TCP sockets that you want to use to configure the preStop callback function.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
livenessProbe(CreateEciScalingConfigurationRequest.LivenessProbe livenessProbe)
LivenessProbe.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
memory(Float memory)
The memory size per container.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
name(String name)
The name of the container image.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
ports(List<CreateEciScalingConfigurationRequest.Ports> ports)
The ports.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
readinessProbe(CreateEciScalingConfigurationRequest.ReadinessProbe readinessProbe)
ReadinessProbe.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
securityContext(CreateEciScalingConfigurationRequest.SecurityContext securityContext)
SecurityContext.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
stdin(Boolean stdin)
Specifies whether the container allocates buffer resources to standard input streams during its active runtime.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
stdinOnce(Boolean stdinOnce)
Specifies whether standard input streams remain connected during multiple sessions when StdinOnce is set to true.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
tty(Boolean tty)
Specifies whether to enable the Interaction feature.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
volumeMounts(List<CreateEciScalingConfigurationRequest.VolumeMounts> volumeMounts)
The volume mounts of the container.
|
CreateEciScalingConfigurationRequest.Containers.Builder |
workingDir(String workingDir)
The working directory of the container.
|
public CreateEciScalingConfigurationRequest.Containers.Builder livenessProbe(CreateEciScalingConfigurationRequest.LivenessProbe livenessProbe)
public CreateEciScalingConfigurationRequest.Containers.Builder readinessProbe(CreateEciScalingConfigurationRequest.ReadinessProbe readinessProbe)
public CreateEciScalingConfigurationRequest.Containers.Builder securityContext(CreateEciScalingConfigurationRequest.SecurityContext securityContext)
public CreateEciScalingConfigurationRequest.Containers.Builder args(List<String> args)
public CreateEciScalingConfigurationRequest.Containers.Builder commands(List<String> commands)
public CreateEciScalingConfigurationRequest.Containers.Builder cpu(Float cpu)
public CreateEciScalingConfigurationRequest.Containers.Builder environmentVars(List<CreateEciScalingConfigurationRequest.EnvironmentVars> environmentVars)
public CreateEciScalingConfigurationRequest.Containers.Builder gpu(Integer gpu)
public CreateEciScalingConfigurationRequest.Containers.Builder image(String image)
public CreateEciScalingConfigurationRequest.Containers.Builder imagePullPolicy(String imagePullPolicy)
* Always: Each time instances are created, image pulling is performed. * IfNotPresent: Image pulling is performed as needed. On-premises images are preferentially used. If no on-premises images are available, image pulling is performed. * Never: On-premises images are always used. Image pulling is not performed.
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePostStartHandlerExecs(List<String> lifecyclePostStartHandlerExecs)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePostStartHandlerHttpGetHost(String lifecyclePostStartHandlerHttpGetHost)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePostStartHandlerHttpGetPath(String lifecyclePostStartHandlerHttpGetPath)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePostStartHandlerHttpGetPort(Integer lifecyclePostStartHandlerHttpGetPort)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePostStartHandlerHttpGetScheme(String lifecyclePostStartHandlerHttpGetScheme)
* HTTP * HTTPS
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePostStartHandlerTcpSocketHost(String lifecyclePostStartHandlerTcpSocketHost)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePostStartHandlerTcpSocketPort(Integer lifecyclePostStartHandlerTcpSocketPort)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePreStopHandlerExecs(List<String> lifecyclePreStopHandlerExecs)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePreStopHandlerHttpGetHost(String lifecyclePreStopHandlerHttpGetHost)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePreStopHandlerHttpGetPath(String lifecyclePreStopHandlerHttpGetPath)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePreStopHandlerHttpGetPort(Integer lifecyclePreStopHandlerHttpGetPort)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePreStopHandlerHttpGetScheme(String lifecyclePreStopHandlerHttpGetScheme)
* HTTP * HTTPS
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePreStopHandlerTcpSocketHost(String lifecyclePreStopHandlerTcpSocketHost)
public CreateEciScalingConfigurationRequest.Containers.Builder lifecyclePreStopHandlerTcpSocketPort(Integer lifecyclePreStopHandlerTcpSocketPort)
public CreateEciScalingConfigurationRequest.Containers.Builder memory(Float memory)
public CreateEciScalingConfigurationRequest.Containers.Builder name(String name)
public CreateEciScalingConfigurationRequest.Containers.Builder ports(List<CreateEciScalingConfigurationRequest.Ports> ports)
public CreateEciScalingConfigurationRequest.Containers.Builder stdin(Boolean stdin)
Default value: false.
public CreateEciScalingConfigurationRequest.Containers.Builder stdinOnce(Boolean stdinOnce)
If StdinOnce is set to true, standard input streams are connected after the container is started, and remain idle until a client is connected to receive data. After the client is disconnected, streams are also disconnected and remain disconnected until the container is restarted.
public CreateEciScalingConfigurationRequest.Containers.Builder tty(Boolean tty)
* true * false If the command is a /bin/bash command, set the value to true. Default value: false.
public CreateEciScalingConfigurationRequest.Containers.Builder volumeMounts(List<CreateEciScalingConfigurationRequest.VolumeMounts> volumeMounts)
public CreateEciScalingConfigurationRequest.Containers.Builder workingDir(String workingDir)
public CreateEciScalingConfigurationRequest.Containers build()
Copyright © 2024. All rights reserved.