com.aliyun.dds20151201.models.ModifyParametersRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dds20151201.models;
import com.aliyun.tea.*;
public class ModifyParametersRequest extends TeaModel {
/**
* The role of the instance. Valid values:
*
* - db: a shard node.
* - cs: a Configserver node.
* - mongos: a mongos node.
*
*
* example:
* db
*/
@NameInMap("CharacterType")
public String characterType;
/**
* The instance ID.
*
* If you set this parameter to the ID of a sharded cluster instance, you must also specify the NodeId parameter.
*
* This parameter is required.
*
* example:
* dds-bp19f409d75****
*/
@NameInMap("DBInstanceId")
public String DBInstanceId;
/**
* The ID of the mongos or shard node in the specified sharded cluster instance.
*
* This parameter is valid only when DBInstanceId is set to the ID of a sharded cluster instance.
*
*
* example:
* d-bp1b7bb3bbe****
*/
@NameInMap("NodeId")
public String nodeId;
@NameInMap("OwnerAccount")
public String ownerAccount;
@NameInMap("OwnerId")
public Long ownerId;
/**
* The instance parameters that you want to modify and their values. Specify this parameter in a JSON string. Sample format: {"ParameterName1":"ParameterValue1","ParameterName2":"ParameterValue2"}.
*
* You can call the DescribeParameterTemplates operation to query a list of default parameter templates.
*
* This parameter is required.
*
* example:
* {"operationProfiling.mode":"all","operationProfiling.slowOpThresholdMs":"200"}
*/
@NameInMap("Parameters")
public String parameters;
/**
* The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.
*
* example:
* cn-hangzhou
*/
@NameInMap("RegionId")
public String regionId;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
public static ModifyParametersRequest build(java.util.Map map) throws Exception {
ModifyParametersRequest self = new ModifyParametersRequest();
return TeaModel.build(map, self);
}
public ModifyParametersRequest setCharacterType(String characterType) {
this.characterType = characterType;
return this;
}
public String getCharacterType() {
return this.characterType;
}
public ModifyParametersRequest setDBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public String getDBInstanceId() {
return this.DBInstanceId;
}
public ModifyParametersRequest setNodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
public String getNodeId() {
return this.nodeId;
}
public ModifyParametersRequest setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
return this;
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public ModifyParametersRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public ModifyParametersRequest setParameters(String parameters) {
this.parameters = parameters;
return this;
}
public String getParameters() {
return this.parameters;
}
public ModifyParametersRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public ModifyParametersRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public ModifyParametersRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
}