CompressionRuleProps
Properties for defining a CompressionRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-compressionrule
Initializer
import com.aliyun.ros.cdk.esa.CompressionRuleProps;
CompressionRuleProps.builder()
.siteId(java.lang.Number)
.siteId(IResolvable)
// .brotli(java.lang.String)
// .brotli(IResolvable)
// .gzip(java.lang.String)
// .gzip(IResolvable)
// .paymentType(java.lang.String)
// .paymentType(IResolvable)
// .rule(java.lang.String)
// .rule(IResolvable)
// .ruleEnable(java.lang.String)
// .ruleEnable(IResolvable)
// .ruleName(java.lang.String)
// .ruleName(IResolvable)
// .sequence(java.lang.Number)
// .sequence(IResolvable)
// .siteVersion(java.lang.Number)
// .siteVersion(IResolvable)
// .zstd(java.lang.String)
// .zstd(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
siteId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteId: The site ID, which can be obtained by calling the ListSites API. |
brotli | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property brotli: Brotli compression. |
gzip | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property gzip: Gzip compression. |
paymentType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property paymentType: Payment Type. |
rule | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property rule: Rule content, using conditional expressions to match user requests. |
ruleEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ruleEnable: Rule switch. |
ruleName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ruleName: Rule name. |
sequence | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property sequence: Order of rule execution. |
siteVersion | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteVersion: The version number of the site configuration. |
zstd | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property zstd: Zstd compression. |
siteIdRequired
public java.lang.Object getSiteId();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteId: The site ID, which can be obtained by calling the ListSites API.
brotliOptional
public java.lang.Object getBrotli();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property brotli: Brotli compression.
Value range: on: Enable. off: Disable.
gzipOptional
public java.lang.Object getGzip();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property gzip: Gzip compression.
Value range: on: Enable. off: Disable.
paymentTypeOptional
public java.lang.Object getPaymentType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: Payment Type.
ruleOptional
public java.lang.Object getRule();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property rule: Rule content, using conditional expressions to match user requests.
When adding global configuration, this parameter does not need to be set. There are two usage scenarios:
- Match all incoming requests: value set to true
- Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com").
ruleEnableOptional
public java.lang.Object getRuleEnable();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleEnable: Rule switch.
When adding global configuration, this parameter does not need to be set. Value range: on: Enable. off: Disable.
ruleNameOptional
public java.lang.Object getRuleName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleName: Rule name.
When adding global configuration, this parameter does not need to be set.
sequenceOptional
public java.lang.Object getSequence();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property sequence: Order of rule execution.
The smaller the value, the higher the priority for execution.
siteVersionOptional
public java.lang.Object getSiteVersion();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteVersion: The version number of the site configuration.
For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
zstdOptional
public java.lang.Object getZstd();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zstd: Zstd compression.
Value range: on: Enable. off: Disable.