public static final class ModifyStrategyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyStrategyRequest |
build() |
ModifyStrategyRequest.Builder |
customType(String customType)
The type of the baseline check policy.
|
ModifyStrategyRequest.Builder |
cycleDays(String cycleDays)
The new interval of the baseline check.
|
ModifyStrategyRequest.Builder |
cycleStartTime(String cycleStartTime)
The new time range during which the baseline check starts.
|
ModifyStrategyRequest.Builder |
endTime(String endTime)
The time when the baseline check based on the baseline check policy ends.
|
ModifyStrategyRequest.Builder |
id(String id)
The ID of the baseline check policy.
|
ModifyStrategyRequest.Builder |
name(String name)
The new name of the baseline check policy.
|
ModifyStrategyRequest.Builder |
riskCustomParams(String riskCustomParams)
The custom configurations of the baseline.
|
ModifyStrategyRequest.Builder |
riskSubTypeName(String riskSubTypeName)
The subtype of the baselines.
|
ModifyStrategyRequest.Builder |
sourceIp(String sourceIp)
The source IP address of the request.
|
ModifyStrategyRequest.Builder |
startTime(String startTime)
The time when the baseline check based on the baseline check policy starts.
|
ModifyStrategyRequest.Builder |
targetType(String targetType)
The method that is used to apply the baseline check policy.
|
public ModifyStrategyRequest.Builder customType(String customType)
The type of the baseline check policy. Valid values:
This parameter is required.
example:common
public ModifyStrategyRequest.Builder cycleDays(String cycleDays)
The new interval of the baseline check. Valid values:
This parameter is required.
example:1
public ModifyStrategyRequest.Builder cycleStartTime(String cycleStartTime)
The new time range during which the baseline check starts. Valid values:
example:This parameter is deprecated.
18
public ModifyStrategyRequest.Builder endTime(String endTime)
The time when the baseline check based on the baseline check policy ends. Specify the time in the hh:mm:ss format.
This parameter is required.
example:05:00:00
public ModifyStrategyRequest.Builder id(String id)
The ID of the baseline check policy.
example:245
public ModifyStrategyRequest.Builder name(String name)
The new name of the baseline check policy.
This parameter is required.
example:testStrategy
public ModifyStrategyRequest.Builder riskCustomParams(String riskCustomParams)
The custom configurations of the baseline. The value of this parameter is in the JSON format and contains the following fields:
typeName: the name of the baseline.
checkDetails: the details of the baseline. The value is in the JSON format.
checkId: the ID of the check item.
rules: the rule configurations. The value is in the JSON format.
ruleId: the ID of the rule.
paramList: the list of parameters in the rule. The value is in the JSON format.
[{"typeName":"hc_centos_6_custom","checkDetails":[{"checkId":4,"rules":[{"ruleId":"pass_min_days_login_defs.must.cus","paramList":[{"paramName":"range_val","value":"7"}]}]}]}]
public ModifyStrategyRequest.Builder riskSubTypeName(String riskSubTypeName)
The subtype of the baselines. You can call the DescribeRiskType operation to query the subtypes of baselines.
This parameter is required.
example:hc_exploit_redis
public ModifyStrategyRequest.Builder sourceIp(String sourceIp)
The source IP address of the request.
example:192.168.X.X
public ModifyStrategyRequest.Builder startTime(String startTime)
The time when the baseline check based on the baseline check policy starts. Specify the time in the hh:mm:ss format.
This parameter is required.
example:00:01:00
public ModifyStrategyRequest.Builder targetType(String targetType)
The method that is used to apply the baseline check policy. Valid values:
This parameter is required.
example:groupId
public ModifyStrategyRequest build()
Copyright © 2026. All rights reserved.