com.aliyun.rds20140815.models.ModifyDBInstanceEndpointRequest Maven / Gradle / Ivy
Show all versions of rds20140815 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.rds20140815.models;
import com.aliyun.tea.*;
public class ModifyDBInstanceEndpointRequest extends TeaModel {
/**
* The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.
* The token can contain only ASCII characters and cannot exceed 64 characters in length.
*
* example:
* 6000170000591aed949d0f****
*/
@NameInMap("ClientToken")
public String clientToken;
/**
* The user-defined description of the endpoint.
*
* example:
* for readonly business
*/
@NameInMap("DBInstanceEndpointDescription")
public String DBInstanceEndpointDescription;
/**
* The endpoint ID of the instance. You can call the DescribeDBInstanceEndpoints operation to query the endpoint ID.
* This parameter is required.
*
* example:
* ep-****
*/
@NameInMap("DBInstanceEndpointId")
public String DBInstanceEndpointId;
/**
* The instance ID. You can call the DescribeDBInstances operation to query the instance ID.
* This parameter is required.
*
* example:
* rm-****
*/
@NameInMap("DBInstanceId")
public String DBInstanceId;
/**
* The information about the endpoint.
*
* if can be null:
* true
*/
@NameInMap("NodeItems")
public java.util.List nodeItems;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
public static ModifyDBInstanceEndpointRequest build(java.util.Map map) throws Exception {
ModifyDBInstanceEndpointRequest self = new ModifyDBInstanceEndpointRequest();
return TeaModel.build(map, self);
}
public ModifyDBInstanceEndpointRequest setClientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
public String getClientToken() {
return this.clientToken;
}
public ModifyDBInstanceEndpointRequest setDBInstanceEndpointDescription(String DBInstanceEndpointDescription) {
this.DBInstanceEndpointDescription = DBInstanceEndpointDescription;
return this;
}
public String getDBInstanceEndpointDescription() {
return this.DBInstanceEndpointDescription;
}
public ModifyDBInstanceEndpointRequest setDBInstanceEndpointId(String DBInstanceEndpointId) {
this.DBInstanceEndpointId = DBInstanceEndpointId;
return this;
}
public String getDBInstanceEndpointId() {
return this.DBInstanceEndpointId;
}
public ModifyDBInstanceEndpointRequest setDBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public String getDBInstanceId() {
return this.DBInstanceId;
}
public ModifyDBInstanceEndpointRequest setNodeItems(java.util.List nodeItems) {
this.nodeItems = nodeItems;
return this;
}
public java.util.List getNodeItems() {
return this.nodeItems;
}
public ModifyDBInstanceEndpointRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static class ModifyDBInstanceEndpointRequestNodeItems extends TeaModel {
/**
* The instance ID. You can call the DescribeDBInstances operation to query the instance ID.
*
* example:
* rm-****
*/
@NameInMap("DBInstanceId")
public String DBInstanceId;
/**
* The node ID.
* You can query the node ID by using the following methods:
*
* - Log on the ApsaraDB RDS console, go to the instance details page, and then view the ID of the node in the instance topology in the lower part of the instance details page.
* - Call the DescribeDBInstanceAttribute operation to query the node ID.
*
*
* example:
* rn-xxxx-****
*/
@NameInMap("NodeId")
public String nodeId;
/**
* The weight of the node. Read requests are distributed based on the weight.
* Valid values: 0 to 100.
*
* example:
* 50
*/
@NameInMap("Weight")
public Long weight;
public static ModifyDBInstanceEndpointRequestNodeItems build(java.util.Map map) throws Exception {
ModifyDBInstanceEndpointRequestNodeItems self = new ModifyDBInstanceEndpointRequestNodeItems();
return TeaModel.build(map, self);
}
public ModifyDBInstanceEndpointRequestNodeItems setDBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public String getDBInstanceId() {
return this.DBInstanceId;
}
public ModifyDBInstanceEndpointRequestNodeItems setNodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
public String getNodeId() {
return this.nodeId;
}
public ModifyDBInstanceEndpointRequestNodeItems setWeight(Long weight) {
this.weight = weight;
return this;
}
public Long getWeight() {
return this.weight;
}
}
}