com.aliyun.sdk.service.waf_openapi20211001.models.ModifyApisecApiResourceRequest 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 ModifyApisecApiResourceRequest} extends {@link RequestModel}
*
* ModifyApisecApiResourceRequest
*/
public class ModifyApisecApiResourceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ApiId")
@com.aliyun.core.annotation.Validation(required = true)
private String apiId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Follow")
private Long follow;
@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("Note")
private String note;
@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;
private ModifyApisecApiResourceRequest(Builder builder) {
super(builder);
this.apiId = builder.apiId;
this.clusterId = builder.clusterId;
this.follow = builder.follow;
this.instanceId = builder.instanceId;
this.note = builder.note;
this.regionId = builder.regionId;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static ModifyApisecApiResourceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiId
*/
public String getApiId() {
return this.apiId;
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return follow
*/
public Long getFollow() {
return this.follow;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return note
*/
public String getNote() {
return this.note;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceManagerResourceGroupId
*/
public String getResourceManagerResourceGroupId() {
return this.resourceManagerResourceGroupId;
}
public static final class Builder extends Request.Builder {
private String apiId;
private String clusterId;
private Long follow;
private String instanceId;
private String note;
private String regionId;
private String resourceManagerResourceGroupId;
private Builder() {
super();
}
private Builder(ModifyApisecApiResourceRequest request) {
super(request);
this.apiId = request.apiId;
this.clusterId = request.clusterId;
this.follow = request.follow;
this.instanceId = request.instanceId;
this.note = request.note;
this.regionId = request.regionId;
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
}
/**
* The ID of the API.
* This parameter is required.
*
* example:
* c68995b89069595c5c0399676f3ca64f
*/
public Builder apiId(String apiId) {
this.putQueryParameter("ApiId", apiId);
this.apiId = apiId;
return this;
}
/**
* The ID of the hybrid cloud cluster.
*
* For hybrid cloud scenarios only, you can call the DescribeHybridCloudClusters operation to query the hybrid cloud clusters.
*
*
* example:
* 428
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* Specifies whether to follow the API. Valid values:
*
* - 1: yes
* - 0 (default): no
*
*
* example:
* 0
*/
public Builder follow(Long follow) {
this.putQueryParameter("Follow", follow);
this.follow = follow;
return this;
}
/**
* The ID of the Web Application Firewall (WAF) instance.
*
* You can call the DescribeInstance operation to query the ID of the WAF instance.
*
* This parameter is required.
*
* example:
* waf_elasticity-cn-0xldbqt****
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The remarks.
*
* example:
* know
*/
public Builder note(String note) {
this.putQueryParameter("Note", note);
this.note = note;
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;
}
@Override
public ModifyApisecApiResourceRequest build() {
return new ModifyApisecApiResourceRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy