public static final class DescribeJobResponseBody.Data.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
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 application.
|
DescribeJobResponseBody.Data.Builder |
appId(String appId)
The application ID.
|
DescribeJobResponseBody.Data.Builder |
appName(String appName)
The application name.
|
DescribeJobResponseBody.Data.Builder |
backoffLimit(Long backoffLimit)
The number of times that the job was retried.
|
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 an application 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 NAS file system in the VPC in which the application 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 application 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 that is used to create the application.
|
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 application 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 for 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)
public DescribeJobResponseBody.Data.Builder acrInstanceId(String acrInstanceId)
public DescribeJobResponseBody.Data.Builder appDescription(String appDescription)
public DescribeJobResponseBody.Data.Builder appId(String appId)
public DescribeJobResponseBody.Data.Builder appName(String appName)
public DescribeJobResponseBody.Data.Builder backoffLimit(Long backoffLimit)
public DescribeJobResponseBody.Data.Builder command(String command)
command: - echo - abc - > - file0 In this example, the Command parameter is set to `Command="echo", CommandArgs=["abc", ">", "file0"]`.
public DescribeJobResponseBody.Data.Builder commandArgs(String commandArgs)
`["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.
public DescribeJobResponseBody.Data.Builder concurrencyPolicy(String concurrencyPolicy)
* **Forbid**: Concurrent running is prohibited. If the previous job is not completed, no new job is created. * **Allow**: Concurrent running is allowed. * **Replace**: If the previous job is not completed when the time to create a new job is reached, the new job replaces the previous job.
public DescribeJobResponseBody.Data.Builder configMapMountDesc(List<DescribeJobResponseBody.ConfigMapMountDesc> configMapMountDesc)
public DescribeJobResponseBody.Data.Builder cpu(Integer cpu)
* **500** * **1000** * **2000** * **4000** * **8000** * **16000** * **32000**
public DescribeJobResponseBody.Data.Builder customHostAlias(String customHostAlias)
* **hostName**: the domain name or hostname. * **ip**: the IP address.
public DescribeJobResponseBody.Data.Builder edasContainerVersion(String edasContainerVersion)
public DescribeJobResponseBody.Data.Builder envs(String envs)
* Custom configuration
* **name**: the name of the environment variable.
* **value**: the value of the environment variable.
* Reference a ConfigMap
* **name**: the name of the environment variable. You can reference one or all keys. To reference all keys, specify `sae-sys-configmap-all-
public DescribeJobResponseBody.Data.Builder imagePullSecrets(String imagePullSecrets)
public DescribeJobResponseBody.Data.Builder imageUrl(String imageUrl)
public DescribeJobResponseBody.Data.Builder jarStartArgs(String jarStartArgs)
public DescribeJobResponseBody.Data.Builder jarStartOptions(String jarStartOptions)
public DescribeJobResponseBody.Data.Builder jdk(String jdk)
* **Open JDK 8** * **Open JDK 7** * **Dragonwell 11** * **Dragonwell 8** * **openjdk-8u191-jdk-alpine3.9** * **openjdk-7u201-jdk-alpine3.9** This parameter is not returned if **PackageType** is set to **Image**.
public DescribeJobResponseBody.Data.Builder memory(Integer memory)
* This parameter is set to **1024** if the Cpu parameter is set to 500 or 1000. * This parameter is set to **2048** if the Cpu parameter is set to 500, 1000, or 2000. * This parameter is set to **4096** if the Cpu parameter is set to 1000, 2000, or 4000. * This parameter is set to **8192** if the Cpu parameter is set to 2000, 4000, or 8000. * This parameter is set to **12288** if the Cpu parameter is set to 12000. * This parameter is set to **16384** if the Cpu parameter is set to 4000, 8000, or 16000. * This parameter is set to **24567** if the Cpu parameter is set to 12000. * This parameter is set to **32768** if the Cpu parameter is set to 16000. * This parameter is set to **65536** if the Cpu parameter is set to 8000, 16000, or 32000. * This parameter is set to **131072** if the Cpu parameter is set to 32000.
public DescribeJobResponseBody.Data.Builder mountDesc(List<DescribeJobResponseBody.MountDesc> mountDesc)
public DescribeJobResponseBody.Data.Builder mountHost(String mountHost)
public DescribeJobResponseBody.Data.Builder namespaceId(String namespaceId)
public DescribeJobResponseBody.Data.Builder nasConfigs(String nasConfigs)
public DescribeJobResponseBody.Data.Builder nasId(String nasId)
public DescribeJobResponseBody.Data.Builder ossAkId(String ossAkId)
public DescribeJobResponseBody.Data.Builder ossAkSecret(String ossAkSecret)
public DescribeJobResponseBody.Data.Builder ossMountDescs(List<DescribeJobResponseBody.OssMountDescs> ossMountDescs)
public DescribeJobResponseBody.Data.Builder packageType(String packageType)
* If you deploy the application by using a Java Archive (JAR) package, this parameter is set to **FatJar**, **War**, or **Image**. * If you deploy the application by using a PHP package, this parameter is set to one of the following values: * **PhpZip** * **IMAGE_PHP\_5\_4** * **IMAGE_PHP\_5\_4\_ALPINE** * **IMAGE_PHP\_5\_5** * **IMAGE_PHP\_5\_5\_ALPINE** * **IMAGE_PHP\_5\_6** * **IMAGE_PHP\_5\_6\_ALPINE** * **IMAGE_PHP\_7\_0** * **IMAGE_PHP\_7\_0\_ALPINE** * **IMAGE_PHP\_7\_1** * **IMAGE_PHP\_7\_1\_ALPINE** * **IMAGE_PHP\_7\_2** * **IMAGE_PHP\_7\_2\_ALPINE** * **IMAGE_PHP\_7\_3** * **IMAGE_PHP\_7\_3\_ALPINE** * If you deploy the application by using a Pythhon package, this parameter is set to **PythonZip** or **Image**.
public DescribeJobResponseBody.Data.Builder packageUrl(String packageUrl)
public DescribeJobResponseBody.Data.Builder packageVersion(String packageVersion)
public DescribeJobResponseBody.Data.Builder phpConfig(String phpConfig)
public DescribeJobResponseBody.Data.Builder phpConfigLocation(String phpConfigLocation)
public DescribeJobResponseBody.Data.Builder postStart(String postStart)
public DescribeJobResponseBody.Data.Builder preStop(String preStop)
public DescribeJobResponseBody.Data.Builder programmingLanguage(String programmingLanguage)
* **java**: Java * **php**: PHP * **python**: Python * **other**: other programming languages, such as C++, Go, .NET, and Node.js.
public DescribeJobResponseBody.Data.Builder publicWebHookUrls(List<String> publicWebHookUrls)
public DescribeJobResponseBody.Data.Builder python(String python)
public DescribeJobResponseBody.Data.Builder pythonModules(String pythonModules)
public DescribeJobResponseBody.Data.Builder refAppId(String refAppId)
public DescribeJobResponseBody.Data.Builder refedAppIds(List<String> refedAppIds)
public DescribeJobResponseBody.Data.Builder regionId(String regionId)
public DescribeJobResponseBody.Data.Builder replicas(Integer replicas)
public DescribeJobResponseBody.Data.Builder securityGroupId(String securityGroupId)
public DescribeJobResponseBody.Data.Builder slice(Boolean slice)
public DescribeJobResponseBody.Data.Builder sliceEnvs(String sliceEnvs)
public DescribeJobResponseBody.Data.Builder slsConfigs(String slsConfigs)
* To use Log Service resources that are automatically created by SAE, set this parameter to `[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]`. * To use custom Log Service resources, set this parameter to `[{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}]`. Parameter description: * **projectName**: the name of the Log Service project. * **logDir**: the path in which logs are stored. * **logType**: the log type. **stdout**: the standard output (stdout) log of the container. Only one stdout value for this parameter can be specified. If this parameter is not configured, file logs are collected. * **logstoreName**: the name of the Logstore in Log Service. * **logtailName**: the name of the Logtail in Log Service. If this parameter is not configured, a new Logtail is created. 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.
public DescribeJobResponseBody.Data.Builder suspend(Boolean suspend)
public DescribeJobResponseBody.Data.Builder tags(List<DescribeJobResponseBody.Tags> tags)
public DescribeJobResponseBody.Data.Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
public DescribeJobResponseBody.Data.Builder timeout(Long timeout)
public DescribeJobResponseBody.Data.Builder timezone(String timezone)
public DescribeJobResponseBody.Data.Builder tomcatConfig(String tomcatConfig)
* **port**: the port number. Valid values: 1024 to 65535. The root permissions are required to perform operations on ports whose number is smaller than 1024. Enter a value that ranges from 1025 to 65535 because the container has only the admin permissions. If this parameter is not configured, the default value 8080 is used. * **contextPath**: the path. Default value: /. The value indicates the root directory. * **maxThreads**: the maximum number of connections in the connection pool. Default value: 400. * **uriEncoding**: the URI encoding scheme in the Tomcat container. Valid values: **UTF-8**, **ISO-8859-1**, **GBK**, and **GB2312**. If this parameter is not configured, the default value **ISO-8859-1** is used. * **useBodyEncoding**: indicates whether to use the encoding scheme that is specified by **BodyEncoding for URL**. Default value: **true**.
public DescribeJobResponseBody.Data.Builder triggerConfig(String triggerConfig)
public DescribeJobResponseBody.Data.Builder vSwitchId(String vSwitchId)
public DescribeJobResponseBody.Data.Builder vpcId(String vpcId)
public DescribeJobResponseBody.Data.Builder vpcWebHookUrls(List<String> vpcWebHookUrls)
public DescribeJobResponseBody.Data.Builder warStartOptions(String warStartOptions)
public DescribeJobResponseBody.Data.Builder webContainer(String webContainer)
* **apache-tomcat-7.0.91** * **apache-tomcat-8.5.42** This parameter is not returned if **PackageType** is set to **Image**.
public DescribeJobResponseBody.Data build()
Copyright © 2024. All rights reserved.