All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.waf_openapi20211001.models.ModifyHybridCloudClusterRuleRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.waf_openapi20211001.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link ModifyHybridCloudClusterRuleRequest} extends {@link RequestModel}
 *
 * 

ModifyHybridCloudClusterRuleRequest

*/ public class ModifyHybridCloudClusterRuleRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClusterId") @com.aliyun.core.annotation.Validation(required = true) private Long clusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") private String resourceManagerResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleConfig") private String ruleConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleStatus") @com.aliyun.core.annotation.Validation(required = true) private String ruleStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleType") @com.aliyun.core.annotation.Validation(required = true) private String ruleType; private ModifyHybridCloudClusterRuleRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; this.ruleConfig = builder.ruleConfig; this.ruleStatus = builder.ruleStatus; this.ruleType = builder.ruleType; } public static Builder builder() { return new Builder(); } public static ModifyHybridCloudClusterRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public Long getClusterId() { return this.clusterId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceManagerResourceGroupId */ public String getResourceManagerResourceGroupId() { return this.resourceManagerResourceGroupId; } /** * @return ruleConfig */ public String getRuleConfig() { return this.ruleConfig; } /** * @return ruleStatus */ public String getRuleStatus() { return this.ruleStatus; } /** * @return ruleType */ public String getRuleType() { return this.ruleType; } public static final class Builder extends Request.Builder { private Long clusterId; private String instanceId; private String regionId; private String resourceManagerResourceGroupId; private String ruleConfig; private String ruleStatus; private String ruleType; private Builder() { super(); } private Builder(ModifyHybridCloudClusterRuleRequest request) { super(request); this.clusterId = request.clusterId; this.instanceId = request.instanceId; this.regionId = request.regionId; this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; this.ruleConfig = request.ruleConfig; this.ruleStatus = request.ruleStatus; this.ruleType = request.ruleType; } /** *

The ID of the hybrid cloud cluster.

*

This parameter is required.

* * example: *

1018

*/ public Builder clusterId(Long clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** *

The ID of the WAF instance.

*
*

You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.

*
*

This parameter is required.

* * example: *

waf-cn-n6w***x52m

*/ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** *

The region in which the WAF instance is deployed. Valid values:

*
    *
  • cn-hangzhou: Chinese mainland.
  • *
  • ap-southeast-1: outside the Chinese mainland.
  • *
* * example: *

cn-hangzhou

*/ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** *

The ID of the Alibaba Cloud resource group.

* * example: *

rg-acfm***q

*/ public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; return this; } /** *

The configuration of the rule.

* * example: *

{"check_mode":"part","include":{"exact":[],"regex":[]}}

*/ public Builder ruleConfig(String ruleConfig) { this.putQueryParameter("RuleConfig", ruleConfig); this.ruleConfig = ruleConfig; return this; } /** *

The status of the rule. Valid values:

*
    *
  • on: enables the rule.
  • *
  • off: disables the rule.
  • *
*

This parameter is required.

* * example: *

on

*/ public Builder ruleStatus(String ruleStatus) { this.putQueryParameter("RuleStatus", ruleStatus); this.ruleStatus = ruleStatus; return this; } /** *

The type of the rule. Valid values:

*
    *
  • pullin: The traffic redirection rule.
  • *
*

This parameter is required.

* * example: *

pullin

*/ public Builder ruleType(String ruleType) { this.putQueryParameter("RuleType", ruleType); this.ruleType = ruleType; return this; } @Override public ModifyHybridCloudClusterRuleRequest build() { return new ModifyHybridCloudClusterRuleRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy