NetworkOptimizationProps
Properties for defining a NetworkOptimization.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-networkoptimization
Initializer
import com.aliyun.ros.cdk.esa.NetworkOptimizationProps;
NetworkOptimizationProps.builder()
.siteId(java.lang.Number)
.siteId(IResolvable)
// .grpc(java.lang.String)
// .grpc(IResolvable)
// .http2Origin(java.lang.String)
// .http2Origin(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)
// .smartRouting(java.lang.String)
// .smartRouting(IResolvable)
// .uploadMaxFilesize(java.lang.Number)
// .uploadMaxFilesize(IResolvable)
// .websocket(java.lang.String)
// .websocket(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
siteId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteId: Site ID. |
grpc | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property grpc: Whether to enable GRPC, default is disabled. |
http2Origin | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property http2Origin: Whether to enable HTTP2 origin, default is disabled. |
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. |
smartRouting | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property smartRouting: Whether to enable smart routing service, default is disabled. |
uploadMaxFilesize | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property uploadMaxFilesize: Maximum upload file size, in MB, value range: 100ï½500. |
websocket | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property websocket: Whether to enable Websocket, default is enabled. |
siteIdRequired
public java.lang.Object getSiteId();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteId: Site ID.
grpcOptional
public java.lang.Object getGrpc();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property grpc: Whether to enable GRPC, default is disabled.
Value range:
on: Enabledoff: Disabled.
http2OriginOptional
public java.lang.Object getHttp2Origin();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property http2Origin: Whether to enable HTTP2 origin, default is disabled.
Value range:
on: Enabledoff: Disabled.
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: open.off: close.
ruleNameOptional
public java.lang.Object getRuleName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleName: Rule name.
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.
smartRoutingOptional
public java.lang.Object getSmartRouting();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property smartRouting: Whether to enable smart routing service, default is disabled.
Value range:
on: Enabledoff: Disabled.
uploadMaxFilesizeOptional
public java.lang.Object getUploadMaxFilesize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property uploadMaxFilesize: Maximum upload file size, in MB, value range: 100ï½500.
websocketOptional
public java.lang.Object getWebsocket();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property websocket: Whether to enable Websocket, default is enabled.
Value range:
on: Enabledoff: Disabled.