public static final class CreateIpControlRequest.IpControlPolicys.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
CreateIpControlRequest.IpControlPolicys.Builder |
appId(String appId)
The ID of the application that is restricted by the policy.
|
CreateIpControlRequest.IpControlPolicys |
build() |
CreateIpControlRequest.IpControlPolicys.Builder |
cidrIp(String cidrIp)
The IP address or CIDR block involved in a policy.
|
public CreateIpControlRequest.IpControlPolicys.Builder appId(String appId)
* You can add only one application ID at a time. * If this parameter is empty, no applications are restricted. * If this parameter is not empty, not only IP addresses but also applications are restricted. * If this parameter is not empty and no security authentication method is specified for the API, all API calls are restricted. * If the value of the IpControlType parameter is REFUSE and the AppId parameter is not empty, API Gateway automatically ignores the AppId parameter and restricts only the IP addresses. * Valid values of N in IpControlPolicys.N: `[1,100]`.
public CreateIpControlRequest.IpControlPolicys.Builder cidrIp(String cidrIp)
* If you want to specify a policy when you create an ACL, this parameter is required. * The IP address or CIDR block that is defined in each policy. Separate multiple IP addresses or CIDR blocks with semicolons (;). You can add a maximum of 10 IP addresses or CIDR blocks. * Valid values of N in IpControlPolicys.N: `[1,100]`.
public CreateIpControlRequest.IpControlPolicys build()
Copyright © 2024. All rights reserved.