com.aliyun.sdk.service.polardb20170801.models.DescribeDBClusterAccessWhitelistResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-polardb20170801 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.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 DescribeDBClusterAccessWhitelistResponseBody} extends {@link TeaModel}
*
* DescribeDBClusterAccessWhitelistResponseBody
*/
public class DescribeDBClusterAccessWhitelistResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBClusterSecurityGroups")
private DBClusterSecurityGroups DBClusterSecurityGroups;
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBClusterAccessWhitelistResponseBody(Builder builder) {
this.DBClusterSecurityGroups = builder.DBClusterSecurityGroups;
this.items = builder.items;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBClusterAccessWhitelistResponseBody create() {
return builder().build();
}
/**
* @return DBClusterSecurityGroups
*/
public DBClusterSecurityGroups getDBClusterSecurityGroups() {
return this.DBClusterSecurityGroups;
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private DBClusterSecurityGroups DBClusterSecurityGroups;
private Items items;
private String requestId;
/**
* The Elastic Compute Service (ECS) security groups that are associated with the cluster.
*/
public Builder DBClusterSecurityGroups(DBClusterSecurityGroups DBClusterSecurityGroups) {
this.DBClusterSecurityGroups = DBClusterSecurityGroups;
return this;
}
/**
* The details about the cluster.
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* The request ID.
*
* example:
* 559E91A2-CDA3-4E9F-808B-29D738******
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBClusterAccessWhitelistResponseBody build() {
return new DescribeDBClusterAccessWhitelistResponseBody(this);
}
}
/**
*
* {@link DescribeDBClusterAccessWhitelistResponseBody} extends {@link TeaModel}
*
* DescribeDBClusterAccessWhitelistResponseBody
*/
public static class DBClusterSecurityGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.NameInMap("SecurityGroupName")
private String securityGroupName;
private DBClusterSecurityGroup(Builder builder) {
this.securityGroupId = builder.securityGroupId;
this.securityGroupName = builder.securityGroupName;
}
public static Builder builder() {
return new Builder();
}
public static DBClusterSecurityGroup create() {
return builder().build();
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return securityGroupName
*/
public String getSecurityGroupName() {
return this.securityGroupName;
}
public static final class Builder {
private String securityGroupId;
private String securityGroupName;
/**
* The ID of the ECS security group.
*
* example:
* sg-bp**************
*/
public Builder securityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* The name of the ECS security group.
*
* example:
* vpc-********************
*/
public Builder securityGroupName(String securityGroupName) {
this.securityGroupName = securityGroupName;
return this;
}
public DBClusterSecurityGroup build() {
return new DBClusterSecurityGroup(this);
}
}
}
/**
*
* {@link DescribeDBClusterAccessWhitelistResponseBody} extends {@link TeaModel}
*
* DescribeDBClusterAccessWhitelistResponseBody
*/
public static class DBClusterSecurityGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBClusterSecurityGroup")
private java.util.List DBClusterSecurityGroup;
private DBClusterSecurityGroups(Builder builder) {
this.DBClusterSecurityGroup = builder.DBClusterSecurityGroup;
}
public static Builder builder() {
return new Builder();
}
public static DBClusterSecurityGroups create() {
return builder().build();
}
/**
* @return DBClusterSecurityGroup
*/
public java.util.List getDBClusterSecurityGroup() {
return this.DBClusterSecurityGroup;
}
public static final class Builder {
private java.util.List DBClusterSecurityGroup;
/**
* DBClusterSecurityGroup.
*/
public Builder DBClusterSecurityGroup(java.util.List DBClusterSecurityGroup) {
this.DBClusterSecurityGroup = DBClusterSecurityGroup;
return this;
}
public DBClusterSecurityGroups build() {
return new DBClusterSecurityGroups(this);
}
}
}
/**
*
* {@link DescribeDBClusterAccessWhitelistResponseBody} extends {@link TeaModel}
*
* DescribeDBClusterAccessWhitelistResponseBody
*/
public static class DBClusterIPArray extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBClusterIPArrayAttribute")
private String DBClusterIPArrayAttribute;
@com.aliyun.core.annotation.NameInMap("DBClusterIPArrayName")
private String DBClusterIPArrayName;
@com.aliyun.core.annotation.NameInMap("SecurityIps")
private String securityIps;
private DBClusterIPArray(Builder builder) {
this.DBClusterIPArrayAttribute = builder.DBClusterIPArrayAttribute;
this.DBClusterIPArrayName = builder.DBClusterIPArrayName;
this.securityIps = builder.securityIps;
}
public static Builder builder() {
return new Builder();
}
public static DBClusterIPArray create() {
return builder().build();
}
/**
* @return DBClusterIPArrayAttribute
*/
public String getDBClusterIPArrayAttribute() {
return this.DBClusterIPArrayAttribute;
}
/**
* @return DBClusterIPArrayName
*/
public String getDBClusterIPArrayName() {
return this.DBClusterIPArrayName;
}
/**
* @return securityIps
*/
public String getSecurityIps() {
return this.securityIps;
}
public static final class Builder {
private String DBClusterIPArrayAttribute;
private String DBClusterIPArrayName;
private String securityIps;
/**
* 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
*/
public Builder DBClusterIPArrayAttribute(String 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.
*
*
*
* example:
* default
*/
public Builder DBClusterIPArrayName(String DBClusterIPArrayName) {
this.DBClusterIPArrayName = DBClusterIPArrayName;
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.
*
*
* example:
* 11...,11...
*/
public Builder securityIps(String securityIps) {
this.securityIps = securityIps;
return this;
}
public DBClusterIPArray build() {
return new DBClusterIPArray(this);
}
}
}
/**
*
* {@link DescribeDBClusterAccessWhitelistResponseBody} extends {@link TeaModel}
*
* DescribeDBClusterAccessWhitelistResponseBody
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBClusterIPArray")
private java.util.List DBClusterIPArray;
private Items(Builder builder) {
this.DBClusterIPArray = builder.DBClusterIPArray;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return DBClusterIPArray
*/
public java.util.List getDBClusterIPArray() {
return this.DBClusterIPArray;
}
public static final class Builder {
private java.util.List DBClusterIPArray;
/**
* DBClusterIPArray.
*/
public Builder DBClusterIPArray(java.util.List DBClusterIPArray) {
this.DBClusterIPArray = DBClusterIPArray;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}