All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.cloudapi20160714.models.ModifyIpControlPolicyItemRequest Maven / Gradle / Ivy

There is a newer version: 3.0.23
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;

import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ModifyIpControlPolicyItemRequest} extends {@link RequestModel}
 *
 * 

ModifyIpControlPolicyItemRequest

*/ public class ModifyIpControlPolicyItemRequest extends Request { @Query @NameInMap("AppId") private String appId; @Query @NameInMap("CidrIp") @Validation(required = true) private String cidrIp; @Query @NameInMap("IpControlId") @Validation(required = true) private String ipControlId; @Query @NameInMap("PolicyItemId") @Validation(required = true) private String policyItemId; @Query @NameInMap("SecurityToken") private String securityToken; private ModifyIpControlPolicyItemRequest(Builder builder) { super(builder); this.appId = builder.appId; this.cidrIp = builder.cidrIp; this.ipControlId = builder.ipControlId; this.policyItemId = builder.policyItemId; this.securityToken = builder.securityToken; } public static Builder builder() { return new Builder(); } public static ModifyIpControlPolicyItemRequest 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 policyItemId */ public String getPolicyItemId() { return this.policyItemId; } /** * @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 policyItemId; private String securityToken; private Builder() { super(); } private Builder(ModifyIpControlPolicyItemRequest request) { super(request); this.appId = request.appId; this.cidrIp = request.cidrIp; this.ipControlId = request.ipControlId; this.policyItemId = request.policyItemId; this.securityToken = request.securityToken; } /** * The ID of the request. */ public Builder appId(String appId) { this.putQueryParameter("AppId", appId); this.appId = appId; return this; } /** * * This operation is intended for API providers. *

* * The modification immediately takes effect on all the APIs that are bound to the policy. * * This operation causes a full modification of the content of a policy. */ public Builder cidrIp(String cidrIp) { this.putQueryParameter("CidrIp", cidrIp); this.cidrIp = cidrIp; return this; } /** * The ID of the application that is restricted by the policy. You can configure the AppId parameter only when the value of the IpControlType parameter is ALLOW. *

* * * 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. */ public Builder ipControlId(String ipControlId) { this.putQueryParameter("IpControlId", ipControlId); this.ipControlId = ipControlId; return this; } /** * The IP address or CIDR block that is defined in a policy. Separate multiple IP addresses or CIDR blocks with semicolons (;). You can add a maximum of 10 IP addresses or CIDR blocks. */ public Builder policyItemId(String policyItemId) { this.putQueryParameter("PolicyItemId", policyItemId); this.policyItemId = policyItemId; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } @Override public ModifyIpControlPolicyItemRequest build() { return new ModifyIpControlPolicyItemRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy