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

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

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

import com.aliyun.tea.*;

public class ModifyDBClusterAccessWhitelistRequest extends TeaModel {
    /**
     * 

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.
  • *
*
* * example: *

hidden

*/ @NameInMap("DBClusterIPArrayAttribute") public String DBClusterIPArrayAttribute; /** *

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.

    *
  • *
* * example: *

default

*/ @NameInMap("DBClusterIPArrayName") public String DBClusterIPArrayName; /** *

The cluster ID.

*

This parameter is required.

* * example: *

pc-*************

*/ @NameInMap("DBClusterId") public String DBClusterId; /** *

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.

*
* * example: *

Cover

*/ @NameInMap("ModifyMode") public String modifyMode; @NameInMap("OwnerAccount") public String ownerAccount; @NameInMap("OwnerId") public Long ownerId; @NameInMap("ResourceOwnerAccount") public String resourceOwnerAccount; @NameInMap("ResourceOwnerId") public Long resourceOwnerId; /** *

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.
  • *
*
* * example: *

sg-*********

*/ @NameInMap("SecurityGroupIds") public String securityGroupIds; /** *

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.

*
* * example: *

10.23.12.24

*/ @NameInMap("SecurityIps") public String securityIps; /** *

The type of the whitelist. Valid values:

*
    *
  • IP: IP whitelist group.
  • *
  • SecurityGroup: security group.
  • *
*

Default value: IP.

* * example: *

IP

*/ @NameInMap("WhiteListType") public String whiteListType; public static ModifyDBClusterAccessWhitelistRequest build(java.util.Map map) throws Exception { ModifyDBClusterAccessWhitelistRequest self = new ModifyDBClusterAccessWhitelistRequest(); return TeaModel.build(map, self); } public ModifyDBClusterAccessWhitelistRequest setDBClusterIPArrayAttribute(String DBClusterIPArrayAttribute) { this.DBClusterIPArrayAttribute = DBClusterIPArrayAttribute; return this; } public String getDBClusterIPArrayAttribute() { return this.DBClusterIPArrayAttribute; } public ModifyDBClusterAccessWhitelistRequest setDBClusterIPArrayName(String DBClusterIPArrayName) { this.DBClusterIPArrayName = DBClusterIPArrayName; return this; } public String getDBClusterIPArrayName() { return this.DBClusterIPArrayName; } public ModifyDBClusterAccessWhitelistRequest setDBClusterId(String DBClusterId) { this.DBClusterId = DBClusterId; return this; } public String getDBClusterId() { return this.DBClusterId; } public ModifyDBClusterAccessWhitelistRequest setModifyMode(String modifyMode) { this.modifyMode = modifyMode; return this; } public String getModifyMode() { return this.modifyMode; } public ModifyDBClusterAccessWhitelistRequest setOwnerAccount(String ownerAccount) { this.ownerAccount = ownerAccount; return this; } public String getOwnerAccount() { return this.ownerAccount; } public ModifyDBClusterAccessWhitelistRequest setOwnerId(Long ownerId) { this.ownerId = ownerId; return this; } public Long getOwnerId() { return this.ownerId; } public ModifyDBClusterAccessWhitelistRequest setResourceOwnerAccount(String resourceOwnerAccount) { this.resourceOwnerAccount = resourceOwnerAccount; return this; } public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public ModifyDBClusterAccessWhitelistRequest setResourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } public Long getResourceOwnerId() { return this.resourceOwnerId; } public ModifyDBClusterAccessWhitelistRequest setSecurityGroupIds(String securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; } public String getSecurityGroupIds() { return this.securityGroupIds; } public ModifyDBClusterAccessWhitelistRequest setSecurityIps(String securityIps) { this.securityIps = securityIps; return this; } public String getSecurityIps() { return this.securityIps; } public ModifyDBClusterAccessWhitelistRequest setWhiteListType(String whiteListType) { this.whiteListType = whiteListType; return this; } public String getWhiteListType() { return this.whiteListType; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy