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

com.aliyun.sdk.service.polardb20170801.models.ModifyDBClusterAccessWhitelistRequest Maven / Gradle / Ivy

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

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

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

ModifyDBClusterAccessWhitelistRequest

*/ public class ModifyDBClusterAccessWhitelistRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBClusterIPArrayAttribute") private String DBClusterIPArrayAttribute; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBClusterIPArrayName") private String DBClusterIPArrayName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBClusterId") @com.aliyun.core.annotation.Validation(required = true) private String DBClusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ModifyMode") private String modifyMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityGroupIds") private String securityGroupIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityIps") private String securityIps; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("WhiteListType") private String whiteListType; private ModifyDBClusterAccessWhitelistRequest(Builder builder) { super(builder); this.DBClusterIPArrayAttribute = builder.DBClusterIPArrayAttribute; this.DBClusterIPArrayName = builder.DBClusterIPArrayName; this.DBClusterId = builder.DBClusterId; this.modifyMode = builder.modifyMode; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.securityGroupIds = builder.securityGroupIds; this.securityIps = builder.securityIps; this.whiteListType = builder.whiteListType; } public static Builder builder() { return new Builder(); } public static ModifyDBClusterAccessWhitelistRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return DBClusterIPArrayAttribute */ public String getDBClusterIPArrayAttribute() { return this.DBClusterIPArrayAttribute; } /** * @return DBClusterIPArrayName */ public String getDBClusterIPArrayName() { return this.DBClusterIPArrayName; } /** * @return DBClusterId */ public String getDBClusterId() { return this.DBClusterId; } /** * @return modifyMode */ public String getModifyMode() { return this.modifyMode; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return securityGroupIds */ public String getSecurityGroupIds() { return this.securityGroupIds; } /** * @return securityIps */ public String getSecurityIps() { return this.securityIps; } /** * @return whiteListType */ public String getWhiteListType() { return this.whiteListType; } public static final class Builder extends Request.Builder { private String DBClusterIPArrayAttribute; private String DBClusterIPArrayName; private String DBClusterId; private String modifyMode; private String ownerAccount; private Long ownerId; private String resourceOwnerAccount; private Long resourceOwnerId; private String securityGroupIds; private String securityIps; private String whiteListType; private Builder() { super(); } private Builder(ModifyDBClusterAccessWhitelistRequest request) { super(request); this.DBClusterIPArrayAttribute = request.DBClusterIPArrayAttribute; this.DBClusterIPArrayName = request.DBClusterIPArrayName; this.DBClusterId = request.DBClusterId; this.modifyMode = request.modifyMode; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.securityGroupIds = request.securityGroupIds; this.securityIps = request.securityIps; this.whiteListType = request.whiteListType; } /** * The attributes of the IP whitelist group. Set this parameter to **hidden** to hide the IP whitelist group in the console. *

* * > * The IP whitelist group that has appeared in the console cannot be hidden. * > * This parameter can be specified only when the **WhiteListType** parameter is set to **IP**. */ public Builder DBClusterIPArrayAttribute(String DBClusterIPArrayAttribute) { this.putQueryParameter("DBClusterIPArrayAttribute", DBClusterIPArrayAttribute); this.DBClusterIPArrayAttribute = DBClusterIPArrayAttribute; return this; } /** * The name of the IP whitelist group. The group name must be 2 to 120 characters in length and consists of lowercase letters and digits. It must start with a letter, and end with a letter or a digit. *

* * * If the specified whitelist group name does not exist, the whitelist group is created. * * If the specified whitelist group name exists, the whitelist group is modified. * * If you do not specify this parameter, the default group is modified. * * > * * * You can create a maximum of 50 IP whitelist groups for a cluster. * * * This parameter can be specified only when the **WhiteListType** parameter is set to **IP**. */ public Builder DBClusterIPArrayName(String DBClusterIPArrayName) { this.putQueryParameter("DBClusterIPArrayName", DBClusterIPArrayName); this.DBClusterIPArrayName = DBClusterIPArrayName; return this; } /** * The cluster ID. */ public Builder DBClusterId(String DBClusterId) { this.putQueryParameter("DBClusterId", DBClusterId); this.DBClusterId = DBClusterId; return this; } /** * The method used to modify the IP whitelist. Valid values: *

* * * **Cover** (default): overwrites the original IP whitelist. * * **Append**: appends IP addresses to the original whitelist. * * **Delete**: deletes IP addresses. * * > This parameter can be specified only when the **WhiteListType** parameter is set to **IP**. */ public Builder modifyMode(String modifyMode) { this.putQueryParameter("ModifyMode", modifyMode); this.modifyMode = modifyMode; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * The ID of the security group. Separate multiple security groups with commas (,). *

* * > * You can add a maximum of three security groups to a cluster. * > * This parameter can be specified only when the **WhiteListType** parameter is set to **SecurityGroup**. */ public Builder securityGroupIds(String securityGroupIds) { this.putQueryParameter("SecurityGroupIds", securityGroupIds); this.securityGroupIds = securityGroupIds; return this; } /** * The IP addresses or Classless Inter-Domain Routing (CIDR) blocks in the IP whitelist group. You can add 1,000 IP addresses or CIDR blocks to all the IP whitelist groups. Separate multiple IP addresses with commas (,). The following two formats are supported: *

* * * IP addresses. Example: 10.23.12.24. * * CIDR blocks. Example: 10.23.12.24/24. 24 indicates the length of the prefix of the CIDR block. The length is the range of 1 to 32. * * > This parameter can be specified only when the **WhiteListType** parameter is set to **IP**. */ public Builder securityIps(String securityIps) { this.putQueryParameter("SecurityIps", securityIps); this.securityIps = securityIps; return this; } /** * The type of the whitelist. Valid values: *

* * * **IP**: IP whitelist group. * * **SecurityGroup**: security group. * * Default value: **IP**. */ public Builder whiteListType(String whiteListType) { this.putQueryParameter("WhiteListType", whiteListType); this.whiteListType = whiteListType; return this; } @Override public ModifyDBClusterAccessWhitelistRequest build() { return new ModifyDBClusterAccessWhitelistRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy