public static final class DescribeApplicationConfigResponseBody.Data.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public DescribeApplicationConfigResponseBody.Data.Builder acrAssumeRoleArn(String acrAssumeRoleArn)
public DescribeApplicationConfigResponseBody.Data.Builder acrInstanceId(String acrInstanceId)
public DescribeApplicationConfigResponseBody.Data.Builder appDescription(String appDescription)
public DescribeApplicationConfigResponseBody.Data.Builder appId(String appId)
public DescribeApplicationConfigResponseBody.Data.Builder appName(String appName)
public DescribeApplicationConfigResponseBody.Data.Builder appSource(String appSource)
public DescribeApplicationConfigResponseBody.Data.Builder associateEip(Boolean associateEip)
* **true**: The EIP is associated with the application instance. * **false**: The EIP is not associated with the application instance.
public DescribeApplicationConfigResponseBody.Data.Builder batchWaitTime(Integer batchWaitTime)
public DescribeApplicationConfigResponseBody.Data.Builder command(String command)
``` command: - echo - abc - > - file0 ``` In this example, the Command parameter is set to `Command="echo", CommandArgs=["abc", ">", "file0"]`.
public DescribeApplicationConfigResponseBody.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. You do not need to configure this parameter if it does not exist in the Command parameter.
public DescribeApplicationConfigResponseBody.Data.Builder configMapMountDesc(List<DescribeApplicationConfigResponseBody.ConfigMapMountDesc> configMapMountDesc)
public DescribeApplicationConfigResponseBody.Data.Builder cpu(Integer cpu)
* **500** * **1000** * **2000** * **4000** * **8000** * **16000** * **32000**
public DescribeApplicationConfigResponseBody.Data.Builder customHostAlias(String customHostAlias)
* **hostName**: the domain name or hostname. * **ip**: the IP address.
public DescribeApplicationConfigResponseBody.Data.Builder edasContainerVersion(String edasContainerVersion)
public DescribeApplicationConfigResponseBody.Data.Builder enableAhas(String enableAhas)
* **true**: Access to AHAS is enabled. * **false**: Access to AHAS is disabled.
public DescribeApplicationConfigResponseBody.Data.Builder enableGreyTagRoute(Boolean enableGreyTagRoute)
* **true**: The canary release rules are enabled. * **false**: The canary release rules are disabled.
public DescribeApplicationConfigResponseBody.Data.Builder enableIdle(Boolean enableIdle)
public DescribeApplicationConfigResponseBody.Data.Builder enableNewArms(Boolean enableNewArms)
public DescribeApplicationConfigResponseBody.Data.Builder envs(String envs)
* **name**: the name of the environment variable. * **value**: the value or reference of the environment variable.
public DescribeApplicationConfigResponseBody.Data.Builder imagePullSecrets(String imagePullSecrets)
public DescribeApplicationConfigResponseBody.Data.Builder imageUrl(String imageUrl)
public DescribeApplicationConfigResponseBody.Data.Builder jarStartArgs(String jarStartArgs)
public DescribeApplicationConfigResponseBody.Data.Builder jarStartOptions(String jarStartOptions)
public DescribeApplicationConfigResponseBody.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 the **PackageType** parameter is set to **Image**.
public DescribeApplicationConfigResponseBody.Data.Builder kafkaConfigs(String kafkaConfigs)
* **KafkaConfigs**: the configurations of Message Queue for Apache Kafka. * **createTime**: the time when the Message Queue for Apache Kafka instance was created. * **kafkaTopic**: the message topic that is used to classify messages. * **logDir**: the path in which logs are stored. * **logType**: the type of collected logs. Valid values: * **file_log**: the file log that is stored in the container. The path of the file logs in the container is returned. * **stdout**: the standard output log of the container. You can specify only one stdout value. * **kafkaEndpoint**: the endpoint of the Message Queue for Apache Kafka service. * **kafkaInstanceId**: the ID of the Message Queue for Apache Kafka instance. * **region**: the region where the Message Queue for Apache Kafka instance resides.
public DescribeApplicationConfigResponseBody.Data.Builder liveness(String liveness)
* Sample code of the **exec** method: `{"exec":{"command":["sh","-c","cat/home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}` * Sample code of the **httpGet** method: `{"httpGet":{"path":"/","port":18091,"scheme":"HTTP","isContainKeyWord":true,"keyWord":"SAE"},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}` * Sample code of the **tcpSocket** method: `{"tcpSocket":{"port":18091},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}` > You can use only one method to perform the health check. The following parameters are involved: * **exec.command**: the health check command. * **httpGet.path**: the request path. * **httpGet.scheme**: the protocol that is used to perform the health check. Valid values: **HTTP** and **HTTPS**. * **httpGet.isContainKeyWord**: indicates whether the response contains keywords. Valid values: **true** and **false**. If this field is not returned, the advanced settings are not used. * **httpGet.keyWord**: the custom keyword. This parameter is available only if the **isContainKeyWord** field is returned. * **tcpSocket.port**: the port that is used to check the status of TCP connections. * **initialDelaySeconds**: the delay of the health check. Default value: 10. Unit: seconds. * **periodSeconds**: the interval at which health checks are performed. Default value: 30. Unit: seconds. * **timeoutSeconds**: the timeout period of the health check. Default value: 1. Unit: seconds. If you set this parameter to 0 or leave this parameter empty, the timeout period is automatically set to 1 second.
public DescribeApplicationConfigResponseBody.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 1000. * 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 DescribeApplicationConfigResponseBody.Data.Builder microRegistration(String microRegistration)
public DescribeApplicationConfigResponseBody.Data.Builder microRegistrationConfig(String microRegistrationConfig)
public DescribeApplicationConfigResponseBody.Data.Builder minReadyInstanceRatio(Integer minReadyInstanceRatio)
* **-1**: the default value. This value indicates that the minimum number of available instances is not measured by percentage. If you do not configure this parameter, the default value **-1** is used. * **0 to 100**: indicates that the minimum number of available instances is calculated by using the following formula: Current number of instances × (Value of MinReadyInstanceRatio × 100%). If the calculated result is not an integer, the result is rounded up to the nearest integer. For example, if the percentage is set to **50**% and five instances are available, the minimum number of available instances is 3. > If the **MinReadyInstance** and **MinReadyInstanceRatio** parameters are returned and the value of the **MinReadyInstanceRatio** parameter is not **-1**, the value of the **MinReadyInstanceRatio** parameter takes effect. If the **MinReadyInstances** parameter is set to **5** and the **MinReadyInstanceRatio** parameter is set to **50**, the value of the **MinReadyInstanceRatio** parameter determines the minimum number of available instances.
public DescribeApplicationConfigResponseBody.Data.Builder minReadyInstances(Integer minReadyInstances)
* If you set the value to **0**, business interruptions occur when the application is updated. * If you set the value to **-1**, the minimum number of available instances is automatically set to a system-recommended value. The value is the nearest integer to which the calculated result of the following formula is rounded up: Current number of instances × 25%. For example, if five instances are available, the minimum number of available instances is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2. > Make sure that at least one instance is available during application deployment and rollback to prevent business interruptions.
public DescribeApplicationConfigResponseBody.Data.Builder mountDesc(List<DescribeApplicationConfigResponseBody.MountDesc> mountDesc)
public DescribeApplicationConfigResponseBody.Data.Builder mountHost(String mountHost)
public DescribeApplicationConfigResponseBody.Data.Builder mseApplicationId(String mseApplicationId)
public DescribeApplicationConfigResponseBody.Data.Builder mseApplicationName(String mseApplicationName)
public DescribeApplicationConfigResponseBody.Data.Builder namespaceId(String namespaceId)
public DescribeApplicationConfigResponseBody.Data.Builder nasConfigs(String nasConfigs)
public DescribeApplicationConfigResponseBody.Data.Builder nasId(String nasId)
public DescribeApplicationConfigResponseBody.Data.Builder ossAkId(String ossAkId)
public DescribeApplicationConfigResponseBody.Data.Builder ossAkSecret(String ossAkSecret)
public DescribeApplicationConfigResponseBody.Data.Builder ossMountDescs(List<DescribeApplicationConfigResponseBody.OssMountDescs> ossMountDescs)
public DescribeApplicationConfigResponseBody.Data.Builder packageType(String packageType)
* If you deploy the application by using a Java Archive (JAR) package, you can set this parameter to **FatJar**, **War**, or **Image**. * If you deploy the application by using a PHP package, you can set this parameter 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**
public DescribeApplicationConfigResponseBody.Data.Builder packageUrl(String packageUrl)
public DescribeApplicationConfigResponseBody.Data.Builder packageVersion(String packageVersion)
public DescribeApplicationConfigResponseBody.Data.Builder php(String php)
public DescribeApplicationConfigResponseBody.Data.Builder phpArmsConfigLocation(String phpArmsConfigLocation)
SAE automatically generates the corresponding configuration file. No manual operations are required.
public DescribeApplicationConfigResponseBody.Data.Builder phpConfig(String phpConfig)
public DescribeApplicationConfigResponseBody.Data.Builder phpConfigLocation(String phpConfigLocation)
public DescribeApplicationConfigResponseBody.Data.Builder postStart(String postStart)
public DescribeApplicationConfigResponseBody.Data.Builder preStop(String preStop)
public DescribeApplicationConfigResponseBody.Data.Builder programmingLanguage(String programmingLanguage)
* **java**: Java * **php**: PHP * **other**: Other programming languages, such as Python, C++, Go, .NET, and Node.js.
public DescribeApplicationConfigResponseBody.Data.Builder pvtzDiscovery(String pvtzDiscovery)
public DescribeApplicationConfigResponseBody.Data.Builder python(String python)
public DescribeApplicationConfigResponseBody.Data.Builder pythonModules(String pythonModules)
public DescribeApplicationConfigResponseBody.Data.Builder readiness(String readiness)
> You can use only one method to perform the health check.
public DescribeApplicationConfigResponseBody.Data.Builder regionId(String regionId)
public DescribeApplicationConfigResponseBody.Data.Builder replicas(Integer replicas)
public DescribeApplicationConfigResponseBody.Data.Builder securityGroupId(String securityGroupId)
public DescribeApplicationConfigResponseBody.Data.Builder serviceTags(Map<String,String> serviceTags)
public DescribeApplicationConfigResponseBody.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":""}]`. The following parameters are involved: * **projectName**: the name of the Log Service project. * **logDir**: the path in which logs are stored. * **logType**: the log type. **stdout**: the standard output log of the container. You can specify only one stdout value for this parameter. If you leave this parameter empty, file logs are collected. * **logstoreName**: the name of the Logstore in Log Service. * **logtailName**: the name of the Logtail configuration in Log Service. If you do not configure this parameter, a new Logtail configuration is created. If you do not need to modify the logging configurations when you deploy the application, configure the **SlsConfigs** parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use Log Service, leave the **SlsConfigs** parameter empty in the request.
public DescribeApplicationConfigResponseBody.Data.Builder tags(List<DescribeApplicationConfigResponseBody.Tags> tags)
public DescribeApplicationConfigResponseBody.Data.Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
public DescribeApplicationConfigResponseBody.Data.Builder timezone(String timezone)
public DescribeApplicationConfigResponseBody.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 you do not configure this parameter, the default port number 8080 is used. * **contextPath**: the path. Default value: /. This 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 you do not configure this parameter, 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 DescribeApplicationConfigResponseBody.Data.Builder updateStrategy(String updateStrategy)
* The application is deployed on an instance. The remaining instances are automatically classified into two release batches whose interval is set to 1. In this case, the parameter is set to `{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}`. * The application is deployed on an instance. The remaining instances are manually classified into two release batches. In this case, the parameter is set to `{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"manual"},"grayUpdate":{"gray":1}}`. * All instances are automatically classified into two release batches. The application is deployed on the instances of the two batches in parallel. In this case, the parameter is set to `{"type":"BatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":0}}` The following parameters are involved: * **type**: the type of the release policy. Valid values: **GrayBatchUpdate** and **BatchUpdate**. * **batchUpdate**: the phased release policy. * **batch**: the number of release batches. * **releaseType**: the processing method for the batches. Valid values: **auto** and **manual**. * **batchWaitTime**: the interval between release batches. Unit: seconds. * **grayUpdate**: the number of release batches in the phased release after a canary release. This parameter is returned only if the **type** parameter is set to **GrayBatchUpdate**.
public DescribeApplicationConfigResponseBody.Data.Builder vSwitchId(String vSwitchId)
public DescribeApplicationConfigResponseBody.Data.Builder vpcId(String vpcId)
public DescribeApplicationConfigResponseBody.Data.Builder warStartOptions(String warStartOptions)
public DescribeApplicationConfigResponseBody.Data.Builder webContainer(String webContainer)
* **apache-tomcat-7.0.91** * **apache-tomcat-8.5.42** This parameter is not returned if the **PackageType** parameter is set to **Image**.
public DescribeApplicationConfigResponseBody.Data build()
Copyright © 2024. All rights reserved.