com.aliyun.sdk.service.waf_openapi20211001.models.DescribeHybridCloudClusterRuleRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-waf_openapi20211001 Show documentation
Show all versions of alibabacloud-waf_openapi20211001 Show documentation
Alibaba Cloud waf-openapi (20211001) Async SDK for Java
// 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 DescribeHybridCloudClusterRuleRequest} extends {@link RequestModel}
*
* DescribeHybridCloudClusterRuleRequest
*/
public class DescribeHybridCloudClusterRuleRequest 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("RuleType")
@com.aliyun.core.annotation.Validation(required = true)
private String ruleType;
private DescribeHybridCloudClusterRuleRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
this.ruleType = builder.ruleType;
}
public static Builder builder() {
return new Builder();
}
public static DescribeHybridCloudClusterRuleRequest 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 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 ruleType;
private Builder() {
super();
}
private Builder(DescribeHybridCloudClusterRuleRequest request) {
super(request);
this.clusterId = request.clusterId;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
this.ruleType = request.ruleType;
}
/**
* The ID of the hybrid cloud cluster.
* This parameter is required.
*
* example:
* 1
*/
public Builder clusterId(Long clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* The ID of the WAF instance.
*
* You can call the DescribeInstance operation to query the ID of the WAF instance.
*
* This parameter is required.
*
* example:
* waf-cn-uqm33n***02
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The region in which the WAF instance is deployed. Valid value:
*
* - 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 type of the rule. Valid values:
*
* - pullin: The traffic redirection rule of the hybrid cloud cluster.
*
* This parameter is required.
*
* example:
* pullin
*/
public Builder ruleType(String ruleType) {
this.putQueryParameter("RuleType", ruleType);
this.ruleType = ruleType;
return this;
}
@Override
public DescribeHybridCloudClusterRuleRequest build() {
return new DescribeHybridCloudClusterRuleRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy