public static final class DescribeJobResponseBody.Data.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeJobResponseBody.Data.Builder |
acrAssumeRoleArn(String acrAssumeRoleArn)
The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to pull images across accounts.
|
DescribeJobResponseBody.Data.Builder |
acrInstanceId(String acrInstanceId)
The ID of the Container Registry Enterprise Edition instance.
|
DescribeJobResponseBody.Data.Builder |
appDescription(String appDescription)
The description of the job template.
|
DescribeJobResponseBody.Data.Builder |
appId(String appId)
The ID of the job template.
|
DescribeJobResponseBody.Data.Builder |
appName(String appName)
The name of the job template.
|
DescribeJobResponseBody.Data.Builder |
backoffLimit(Long backoffLimit)
The number of times that the job was retried.
|
DescribeJobResponseBody.Data.Builder |
bestEffortType(String bestEffortType)
BestEffortType.
|
DescribeJobResponseBody.Data |
build() |
DescribeJobResponseBody.Data.Builder |
command(String command)
The command that is used to start the image.
|
DescribeJobResponseBody.Data.Builder |
commandArgs(String commandArgs)
The arguments of the image startup command.
|
DescribeJobResponseBody.Data.Builder |
concurrencyPolicy(String concurrencyPolicy)
The concurrency policy of the job.
|
DescribeJobResponseBody.Data.Builder |
configMapMountDesc(List<DescribeJobResponseBody.ConfigMapMountDesc> configMapMountDesc)
The details of the ConfigMap.
|
DescribeJobResponseBody.Data.Builder |
cpu(Integer cpu)
The CPU specifications required for each instance.
|
DescribeJobResponseBody.Data.Builder |
customHostAlias(String customHostAlias)
The custom mapping between the hostname and IP address in the container.
|
DescribeJobResponseBody.Data.Builder |
edasContainerVersion(String edasContainerVersion)
The version of the container, such as Ali-Tomcat, in which a job that is developed based on High-speed Service Framework (HSF) is deployed.
|
DescribeJobResponseBody.Data.Builder |
envs(String envs)
The environment variables.
|
DescribeJobResponseBody.Data.Builder |
imagePullSecrets(String imagePullSecrets)
The ID of the corresponding secret.
|
DescribeJobResponseBody.Data.Builder |
imageUrl(String imageUrl)
The URL of the image.
|
DescribeJobResponseBody.Data.Builder |
jarStartArgs(String jarStartArgs)
The arguments in the JAR package.
|
DescribeJobResponseBody.Data.Builder |
jarStartOptions(String jarStartOptions)
The option settings in the JAR package.
|
DescribeJobResponseBody.Data.Builder |
jdk(String jdk)
The version of the Java Development Kit (JDK) on which the deployment package of the application depends.
|
DescribeJobResponseBody.Data.Builder |
memory(Integer memory)
The size of memory that is required by each instance.
|
DescribeJobResponseBody.Data.Builder |
mountDesc(List<DescribeJobResponseBody.MountDesc> mountDesc)
The details of the mounted NAS file system.
|
DescribeJobResponseBody.Data.Builder |
mountHost(String mountHost)
The mount target of the Apsara File Storage NAS (NAS) file system in the virtual private cloud (VPC) where the job template is deployed.
|
DescribeJobResponseBody.Data.Builder |
namespaceId(String namespaceId)
The namespace ID.
|
DescribeJobResponseBody.Data.Builder |
nasConfigs(String nasConfigs)
The configurations for mounting the NAS file system.
|
DescribeJobResponseBody.Data.Builder |
nasId(String nasId)
The ID of the NAS file system.
|
DescribeJobResponseBody.Data.Builder |
ossAkId(String ossAkId)
The AccessKey ID that is used to read data from and write data to Object Storage Service (OSS).
|
DescribeJobResponseBody.Data.Builder |
ossAkSecret(String ossAkSecret)
The AccessKey secret that is used to read data from and write data to OSS.
|
DescribeJobResponseBody.Data.Builder |
ossMountDescs(List<DescribeJobResponseBody.OssMountDescs> ossMountDescs)
The description of mounted OSS buckets.
|
DescribeJobResponseBody.Data.Builder |
packageType(String packageType)
The type of the deployment package.
|
DescribeJobResponseBody.Data.Builder |
packageUrl(String packageUrl)
The URL of the deployment package.
|
DescribeJobResponseBody.Data.Builder |
packageVersion(String packageVersion)
The version of the deployment package.
|
DescribeJobResponseBody.Data.Builder |
phpConfig(String phpConfig)
The details of the PHP configuration file.
|
DescribeJobResponseBody.Data.Builder |
phpConfigLocation(String phpConfigLocation)
The path on which the PHP configuration file for job startup is mounted.
|
DescribeJobResponseBody.Data.Builder |
postStart(String postStart)
The script that is run immediately after the container is started.
|
DescribeJobResponseBody.Data.Builder |
preStop(String preStop)
The script that is run before the container is stopped.
|
DescribeJobResponseBody.Data.Builder |
programmingLanguage(String programmingLanguage)
The programming language in which the job template is created.
|
DescribeJobResponseBody.Data.Builder |
publicWebHookUrls(List<String> publicWebHookUrls)
The Internet request URLs of one-time jobs.
|
DescribeJobResponseBody.Data.Builder |
python(String python)
The Python environment.
|
DescribeJobResponseBody.Data.Builder |
pythonModules(String pythonModules)
The configurations for installing custom module dependencies.
|
DescribeJobResponseBody.Data.Builder |
refAppId(String refAppId)
The ID of the job template that you reference.
|
DescribeJobResponseBody.Data.Builder |
refedAppIds(List<String> refedAppIds)
The IDs of the referenced job templates.
|
DescribeJobResponseBody.Data.Builder |
regionId(String regionId)
The region ID.
|
DescribeJobResponseBody.Data.Builder |
replicas(Integer replicas)
The number of job instances.
|
DescribeJobResponseBody.Data.Builder |
securityGroupId(String securityGroupId)
The ID of the security group.
|
DescribeJobResponseBody.Data.Builder |
slice(Boolean slice)
Indicates whether job sharding is enabled.
|
DescribeJobResponseBody.Data.Builder |
sliceEnvs(String sliceEnvs)
The parameters of job sharding.
|
DescribeJobResponseBody.Data.Builder |
slsConfigs(String slsConfigs)
The logging configurations of Log Service.
|
DescribeJobResponseBody.Data.Builder |
suspend(Boolean suspend)
Indicates whether the job template is suspended.
|
DescribeJobResponseBody.Data.Builder |
tags(List<DescribeJobResponseBody.Tags> tags)
The tags.
|
DescribeJobResponseBody.Data.Builder |
terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
The timeout period for a graceful shutdown.
|
DescribeJobResponseBody.Data.Builder |
timeout(Long timeout)
The timeout period of the job.
|
DescribeJobResponseBody.Data.Builder |
timezone(String timezone)
The time zone.
|
DescribeJobResponseBody.Data.Builder |
tomcatConfig(String tomcatConfig)
The Tomcat configuration.
|
DescribeJobResponseBody.Data.Builder |
triggerConfig(String triggerConfig)
TriggerConfig.
|
DescribeJobResponseBody.Data.Builder |
vpcId(String vpcId)
The ID of the virtual private cloud (VPC).
|
DescribeJobResponseBody.Data.Builder |
vpcWebHookUrls(List<String> vpcWebHookUrls)
The internal request URLs for one-time jobs.
|
DescribeJobResponseBody.Data.Builder |
vSwitchId(String vSwitchId)
The vSwitch ID.
|
DescribeJobResponseBody.Data.Builder |
warStartOptions(String warStartOptions)
The option settings in the WAR package.
|
DescribeJobResponseBody.Data.Builder |
webContainer(String webContainer)
The version of the Tomcat container on which the deployment package depends.
|
public DescribeJobResponseBody.Data.Builder acrAssumeRoleArn(String acrAssumeRoleArn)
The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to pull images across accounts. For more information, see Pull images across Alibaba Cloud accounts and Grant permissions across Alibaba Cloud accounts by using a RAM role.
example:acs:ram::123456789012****:role/adminrole
public DescribeJobResponseBody.Data.Builder acrInstanceId(String acrInstanceId)
The ID of the Container Registry Enterprise Edition instance.
example:cri-xxxxxx
public DescribeJobResponseBody.Data.Builder appDescription(String appDescription)
The description of the job template.
example:Sample application
public DescribeJobResponseBody.Data.Builder appId(String appId)
The ID of the job template.
example:7171a6ca-d1cd-4928-8642-7d5cfe69****
public DescribeJobResponseBody.Data.Builder appName(String appName)
The name of the job template.
example:demo-app
public DescribeJobResponseBody.Data.Builder backoffLimit(Long backoffLimit)
The number of times that the job was retried.
example:3
public DescribeJobResponseBody.Data.Builder bestEffortType(String bestEffortType)
public DescribeJobResponseBody.Data.Builder command(String command)
The command that is used to start the image. The command must be an existing executable object in the container. Example:
command:
- echo
- abc
- >
- file0
In this example, the Command parameter is set to Command="echo", CommandArgs=["abc", ">", "file0"].
echo
public DescribeJobResponseBody.Data.Builder commandArgs(String commandArgs)
The arguments of the image startup command. This parameter contains the arguments that are required for Command. Format:
["a","b"]
In the preceding Command example, the CommandArgs parameter is set to CommandArgs=["abc", ">", "file0"]. The data type of ["abc", ">", "file0"] must be an array of strings in the JSON format. If this parameter does not exist in the Command parameter, you do not need to configure it.
["a","b"]
public DescribeJobResponseBody.Data.Builder concurrencyPolicy(String concurrencyPolicy)
The concurrency policy of the job. Valid values:
Allow
public DescribeJobResponseBody.Data.Builder configMapMountDesc(List<DescribeJobResponseBody.ConfigMapMountDesc> configMapMountDesc)
The details of the ConfigMap.
public DescribeJobResponseBody.Data.Builder cpu(Integer cpu)
The CPU specifications required for each instance. Unit: millicore. This parameter cannot be set to 0. Valid values:
1000
public DescribeJobResponseBody.Data.Builder customHostAlias(String customHostAlias)
The custom mapping between the hostname and IP address in the container. Valid values:
[{"hostName":"test.host.name","ip":"0.0.0.0"}]
public DescribeJobResponseBody.Data.Builder edasContainerVersion(String edasContainerVersion)
The version of the container, such as Ali-Tomcat, in which a job that is developed based on High-speed Service Framework (HSF) is deployed.
example:3.5.3
public DescribeJobResponseBody.Data.Builder envs(String envs)
The environment variables. You can configure custom environment variables or reference a ConfigMap. If you want to reference a ConfigMap, you must first create a ConfigMap. For more information, see CreateConfigMap. Valid values:
Custom configuration
Reference a ConfigMap
sae-sys-configmap-all-<ConfigMap name>. Example: sae-sys-configmap-all-test1.configMapRef.[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]
public DescribeJobResponseBody.Data.Builder imagePullSecrets(String imagePullSecrets)
The ID of the corresponding secret.
example:10
public DescribeJobResponseBody.Data.Builder imageUrl(String imageUrl)
The URL of the image. This parameter is returned only if PackageType is set to Image.
example:docker.io/library/nginx:1.14.2
public DescribeJobResponseBody.Data.Builder jarStartArgs(String jarStartArgs)
The arguments in the JAR package. The arguments are used to start the job. The default startup command is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
start
public DescribeJobResponseBody.Data.Builder jarStartOptions(String jarStartOptions)
The option settings in the JAR package. The settings are used to start the job. The default startup command is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
-Dtest=true
public DescribeJobResponseBody.Data.Builder jdk(String jdk)
The version of the Java Development Kit (JDK) on which the deployment package of the application depends. The following versions are supported:
This parameter is not returned if PackageType is set to Image.
example:Open JDK 8
public DescribeJobResponseBody.Data.Builder memory(Integer memory)
The size of memory that is required by each instance. Unit: MB. This parameter cannot be set to 0. The values of this parameter correspond to the values of the Cpu parameter:
2048
public DescribeJobResponseBody.Data.Builder mountDesc(List<DescribeJobResponseBody.MountDesc> mountDesc)
The details of the mounted NAS file system.
public DescribeJobResponseBody.Data.Builder mountHost(String mountHost)
The mount target of the Apsara File Storage NAS (NAS) file system in the virtual private cloud (VPC) where the job template is deployed. If you do not need to modify the NAS configurations when you deploy the job template, configure the MountHost parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use NAS, leave the MountHost parameter empty in the request.
example:example.com
public DescribeJobResponseBody.Data.Builder namespaceId(String namespaceId)
The namespace ID.
example:cn-beijing:test
public DescribeJobResponseBody.Data.Builder nasConfigs(String nasConfigs)
The configurations for mounting the NAS file system.
example:[{"mountPath":"/test1","readOnly":false,"nasId":"nasId1","mountDomain":"nasId1.cn-shenzhen.nas.aliyuncs.com","nasPath":"/test1"},{"nasId":"nasId2","mountDomain":"nasId2.cn-shenzhen.nas.aliyuncs.com","readOnly":false,"nasPath":"/test2","mountPath":"/test2"}]
public DescribeJobResponseBody.Data.Builder nasId(String nasId)
The ID of the NAS file system.
example:AKSN89**
public DescribeJobResponseBody.Data.Builder ossAkId(String ossAkId)
The AccessKey ID that is used to read data from and write data to Object Storage Service (OSS).
example:xxxxxx
public DescribeJobResponseBody.Data.Builder ossAkSecret(String ossAkSecret)
The AccessKey secret that is used to read data from and write data to OSS.
example:xxxxxx
public DescribeJobResponseBody.Data.Builder ossMountDescs(List<DescribeJobResponseBody.OssMountDescs> ossMountDescs)
The description of mounted OSS buckets.
public DescribeJobResponseBody.Data.Builder packageType(String packageType)
The type of the deployment package. Valid values:
If you deploy a Java job template, you can set this parameter to FatJar, War, or Image.
If you deploy a PHP job template, the following types are available:
If you deploy a Python job template, you can set this parameter to PythonZip or Image.
War
public DescribeJobResponseBody.Data.Builder packageUrl(String packageUrl)
The URL of the deployment package. This parameter is returned only if PackageType is set to FatJar or War.
public DescribeJobResponseBody.Data.Builder packageVersion(String packageVersion)
The version of the deployment package. This parameter is required only if PackageType is set to FatJar or War.
example:1.0
public DescribeJobResponseBody.Data.Builder phpConfig(String phpConfig)
The details of the PHP configuration file.
example:k1=v1
public DescribeJobResponseBody.Data.Builder phpConfigLocation(String phpConfigLocation)
The path on which the PHP configuration file for job startup is mounted. Make sure that the PHP server uses this configuration file during the startup.
example:/usr/local/etc/php/php.ini
public DescribeJobResponseBody.Data.Builder postStart(String postStart)
The script that is run immediately after the container is started. Example: {"exec":{"command":["cat","/etc/group"\]}}
{"exec":{"command":["cat","/etc/group"]}}
public DescribeJobResponseBody.Data.Builder preStop(String preStop)
The script that is run before the container is stopped. Example: {"exec":{"command":["cat","/etc/group"\]}}
{"exec":{"command":["cat","/etc/group"]}}
public DescribeJobResponseBody.Data.Builder programmingLanguage(String programmingLanguage)
The programming language in which the job template is created. Valid values:
java
public DescribeJobResponseBody.Data.Builder publicWebHookUrls(List<String> publicWebHookUrls)
The Internet request URLs of one-time jobs.
public DescribeJobResponseBody.Data.Builder python(String python)
The Python environment. PYTHON 3.9.15 is supported.
example:PYTHON 3.9.15
public DescribeJobResponseBody.Data.Builder pythonModules(String pythonModules)
The configurations for installing custom module dependencies. By default, the dependencies defined by the requirements.txt file in the root directory are installed. If no software package is configured, you can specify dependencies based on your business requirements.
example:Flask==2.0
public DescribeJobResponseBody.Data.Builder refAppId(String refAppId)
The ID of the job template that you reference.
example:7171a6ca-d1cd-4928-8642-7d5cfe69****
public DescribeJobResponseBody.Data.Builder refedAppIds(List<String> refedAppIds)
The IDs of the referenced job templates.
public DescribeJobResponseBody.Data.Builder regionId(String regionId)
The region ID.
example:cn-beijing
public DescribeJobResponseBody.Data.Builder replicas(Integer replicas)
The number of job instances.
example:2
public DescribeJobResponseBody.Data.Builder securityGroupId(String securityGroupId)
The ID of the security group.
example:sg-wz969ngg2e49q5i4****
public DescribeJobResponseBody.Data.Builder slice(Boolean slice)
Indicates whether job sharding is enabled.
example:true
public DescribeJobResponseBody.Data.Builder sliceEnvs(String sliceEnvs)
The parameters of job sharding.
example:SliceEnvs
public DescribeJobResponseBody.Data.Builder slsConfigs(String slsConfigs)
The logging configurations of Log Service.
[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].[{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].Parameter description:
If you do not need to modify the logging configurations when you deploy the application, configure SlsConfigs only in the first request. If you no longer need to use Log Service, leave SlsConfigs empty in the request.
example:[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]
public DescribeJobResponseBody.Data.Builder suspend(Boolean suspend)
Indicates whether the job template is suspended.
example:false
public DescribeJobResponseBody.Data.Builder tags(List<DescribeJobResponseBody.Tags> tags)
The tags.
public DescribeJobResponseBody.Data.Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
The timeout period for a graceful shutdown. Default value: 30. Unit: seconds. Valid values: 1 to 300.
example:10
public DescribeJobResponseBody.Data.Builder timeout(Long timeout)
The timeout period of the job. Unit: seconds.
example:3600
public DescribeJobResponseBody.Data.Builder timezone(String timezone)
The time zone. Default value: Asia/Shanghai.
example:Asia/Shanghai
public DescribeJobResponseBody.Data.Builder tomcatConfig(String tomcatConfig)
The Tomcat configuration. If you want to delete the configuration, set this parameter to {} or leave this parameter empty. Parameter description:
{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}
public DescribeJobResponseBody.Data.Builder triggerConfig(String triggerConfig)
public DescribeJobResponseBody.Data.Builder vSwitchId(String vSwitchId)
The vSwitch ID.
example:vsw-2ze559r1z1bpwqxwp****
public DescribeJobResponseBody.Data.Builder vpcId(String vpcId)
The ID of the virtual private cloud (VPC).
example:vpc-2ze0i263cnn311nvj****
public DescribeJobResponseBody.Data.Builder vpcWebHookUrls(List<String> vpcWebHookUrls)
The internal request URLs for one-time jobs.
public DescribeJobResponseBody.Data.Builder warStartOptions(String warStartOptions)
The option settings in the WAR package. The settings are used to start the job. The default startup command is java $JAVA_OPTS $CATALINA_OPTS -Options org.apache.catalina.startup.Bootstrap "$@" start.
custom-option
public DescribeJobResponseBody.Data.Builder webContainer(String webContainer)
The version of the Tomcat container on which the deployment package depends. The following versions are supported:
This parameter is not returned if PackageType is set to Image.
example:apache-tomcat-7.0.91
public DescribeJobResponseBody.Data build()
Copyright © 2026. All rights reserved.