public static class UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions
extends com.aliyun.tea.TeaModel
| 构造器和说明 |
|---|
UpdateRuleAttributeRequestRuleActions() |
@NameInMap(value="CorsConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig corsConfig
The origins allowed.
@NameInMap(value="FixedResponseConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsFixedResponseConfig fixedResponseConfig
The configuration of the custom response.
@NameInMap(value="ForwardGroupConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsForwardGroupConfig forwardGroupConfig
The configurations of the server groups.
@NameInMap(value="InsertHeaderConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsInsertHeaderConfig insertHeaderConfig
The configuration of the header to be inserted.
@NameInMap(value="Order") public Integer order
The priority of the action. Valid values: **1 to 50000**. A lower value indicates a higher priority. The actions of a forwarding rule are applied in descending order of priority. This parameter is required. The priority of each action within a forwarding rule must be unique. You can specify priorities for at most 20 actions.
@NameInMap(value="RedirectConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig redirectConfig
The configuration of the redirection. You can specify at most 20 rewrites.
@NameInMap(value="RemoveHeaderConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRemoveHeaderConfig removeHeaderConfig
@NameInMap(value="RewriteConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRewriteConfig rewriteConfig
The configuration of the rewrite action.
@NameInMap(value="TrafficLimitConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsTrafficLimitConfig trafficLimitConfig
The action to throttle traffic.
@NameInMap(value="TrafficMirrorConfig") public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfig trafficMirrorConfig
The action to mirror traffic.
@NameInMap(value="Type") public String type
The action type. You can specify at most 11 types of actions. Valid values:
* **ForwardGroup**: forwards a request to multiple vServer groups.
* **Redirect**: redirects a request.
* **FixedResponse**: returns a custom response.
* **Rewrite**: rewrites a request.
* **InsertHeader**: inserts a header.
* **RemoveHeaderConfig**: deletes a header.
* **TrafficLimitConfig**: throttles network traffic.
* **TrafficMirrorConfig**: mirrors traffic.
* **CorsConfig**: forwards requests based on CORS.
The following action types are supported:
* **FinalType**: the last action to be performed in a forwarding rule. Each forwarding rule can contain only one FinalType action. You can specify a **ForwardGroup**, **Redirect**, or **FixedResponse** action as the FinalType action.
* **ExtType**: the action or the actions to be performed before the **FinalType** action. A forwarding rule can contain one or more **ExtType** actions. To specify this parameter, you must also specify **FinalType**. You can specify multiple **InsertHeader** actions or one **Rewrite** action.
public static UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions build(Map<String,?> map) throws Exception
Exceptionpublic UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setCorsConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig corsConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig getCorsConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setFixedResponseConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsFixedResponseConfig fixedResponseConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsFixedResponseConfig getFixedResponseConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setForwardGroupConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsForwardGroupConfig forwardGroupConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsForwardGroupConfig getForwardGroupConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setInsertHeaderConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsInsertHeaderConfig insertHeaderConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsInsertHeaderConfig getInsertHeaderConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setOrder(Integer order)
public Integer getOrder()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setRedirectConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig redirectConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig getRedirectConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setRemoveHeaderConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRemoveHeaderConfig removeHeaderConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRemoveHeaderConfig getRemoveHeaderConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setRewriteConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRewriteConfig rewriteConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRewriteConfig getRewriteConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setTrafficLimitConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsTrafficLimitConfig trafficLimitConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsTrafficLimitConfig getTrafficLimitConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setTrafficMirrorConfig(UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfig trafficMirrorConfig)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfig getTrafficMirrorConfig()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActions setType(String type)
public String getType()
Copyright © 2024. All rights reserved.