com.aliyun.sdk.service.cloudapi20160714.models.RemoveIpControlApisRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link RemoveIpControlApisRequest} extends {@link RequestModel}
*
* RemoveIpControlApisRequest
*/
public class RemoveIpControlApisRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ApiIds")
private String apiIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpControlId")
@com.aliyun.core.annotation.Validation(required = true)
private String ipControlId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StageName")
@com.aliyun.core.annotation.Validation(required = true)
private String stageName;
private RemoveIpControlApisRequest(Builder builder) {
super(builder);
this.apiIds = builder.apiIds;
this.groupId = builder.groupId;
this.ipControlId = builder.ipControlId;
this.securityToken = builder.securityToken;
this.stageName = builder.stageName;
}
public static Builder builder() {
return new Builder();
}
public static RemoveIpControlApisRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiIds
*/
public String getApiIds() {
return this.apiIds;
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return ipControlId
*/
public String getIpControlId() {
return this.ipControlId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return stageName
*/
public String getStageName() {
return this.stageName;
}
public static final class Builder extends Request.Builder {
private String apiIds;
private String groupId;
private String ipControlId;
private String securityToken;
private String stageName;
private Builder() {
super();
}
private Builder(RemoveIpControlApisRequest request) {
super(request);
this.apiIds = request.apiIds;
this.groupId = request.groupId;
this.ipControlId = request.ipControlId;
this.securityToken = request.securityToken;
this.stageName = request.stageName;
}
/**
* The IDs of the APIs from which you want to unbind the ACL.
*
*
* * If this parameter is not specified, the ACL is unbound from all the APIs in the specified environment of the API group.
* * The IDs of APIs that you want to query. Separate multiple API IDs with commas (,). A maximum of 100 API IDs can be entered.
*/
public Builder apiIds(String apiIds) {
this.putQueryParameter("ApiIds", apiIds);
this.apiIds = apiIds;
return this;
}
/**
* The ID of the API group.
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* The ID of the ACL.
*/
public Builder ipControlId(String ipControlId) {
this.putQueryParameter("IpControlId", ipControlId);
this.ipControlId = ipControlId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* The name of the runtime environment. Valid values:
*
*
* * **RELEASE**
* * **TEST**
*/
public Builder stageName(String stageName) {
this.putQueryParameter("StageName", stageName);
this.stageName = stageName;
return this;
}
@Override
public RemoveIpControlApisRequest build() {
return new RemoveIpControlApisRequest(this);
}
}
}