com.aliyun.sdk.service.cloudapi20160714.models.AddIpControlPolicyItemRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Alibaba Cloud CloudAPI (20160714) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link AddIpControlPolicyItemRequest} extends {@link RequestModel}
*
* AddIpControlPolicyItemRequest
*/
public class AddIpControlPolicyItemRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppId")
private String appId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CidrIp")
@com.aliyun.core.annotation.Validation(required = true)
private String cidrIp;
@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;
private AddIpControlPolicyItemRequest(Builder builder) {
super(builder);
this.appId = builder.appId;
this.cidrIp = builder.cidrIp;
this.ipControlId = builder.ipControlId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static AddIpControlPolicyItemRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appId
*/
public String getAppId() {
return this.appId;
}
/**
* @return cidrIp
*/
public String getCidrIp() {
return this.cidrIp;
}
/**
* @return ipControlId
*/
public String getIpControlId() {
return this.ipControlId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
public static final class Builder extends Request.Builder {
private String appId;
private String cidrIp;
private String ipControlId;
private String securityToken;
private Builder() {
super();
}
private Builder(AddIpControlPolicyItemRequest request) {
super(request);
this.appId = request.appId;
this.cidrIp = request.cidrIp;
this.ipControlId = request.ipControlId;
this.securityToken = request.securityToken;
}
/**
* The restriction policy on app IDs for a specific policy. You can restrict app IDs only for whitelists. The IpControlType values of whitelists are ALLOW.
*
* - You can add only one app ID restriction policy at a time.
* - If this parameter is empty, no restriction is imposed on the app IDs.
* - If this parameter is not empty, there is restriction not only on IP addresses, but also on apps.
* - Please note that if this parameter is not empty and the security authentication method of the API is No Authentication, all API calls are restricted.
* - If this parameter is not empty for a blacklist, API Gateway automatically skips this parameter and sets only restriction on IP addresses. The IpControlType value of a blacklist is REFUSE.
*
*
* example:
* 1111111
*/
public Builder appId(String appId) {
this.putQueryParameter("AppId", appId);
this.appId = appId;
return this;
}
/**
* The IP addresses or CIDR blocks involved in the policy. Separate multiple IP addresses or CIDR blocks with semicolons (;). You can specify a maximum of 10 IP addresses or CIDR blocks.
* This parameter is required.
*
* example:
* 113.125.1.101;101.11.1.1
*/
public Builder cidrIp(String cidrIp) {
this.putQueryParameter("CidrIp", cidrIp);
this.cidrIp = cidrIp;
return this;
}
/**
* The ID of the ACL. The ID is unique.
* This parameter is required.
*
* example:
* 7ea91319a34d48a09b5c9c871d9768b1
*/
public Builder ipControlId(String ipControlId) {
this.putQueryParameter("IpControlId", ipControlId);
this.ipControlId = ipControlId;
return this;
}
/**
* The security token included in the WebSocket request header. The system uses this token to authenticate the request.
*
* example:
* 4223a10e-eed3-46a6-8b7c-23003f488153
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
@Override
public AddIpControlPolicyItemRequest build() {
return new AddIpControlPolicyItemRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy