
com.jdcloud.sdk.service.rds.model.ModifyInstanceSpecRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rds Show documentation
Show all versions of rds Show documentation
JDCLOUD Open API SDK for Java
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* 实例管理
* 实例管理相关接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.rds.model;
import com.jdcloud.sdk.annotation.Required;
import com.jdcloud.sdk.service.JdcloudRequest;
/**
* 实例扩容,支持升级实例的CPU,内存及磁盘。目前暂不支持实例降配<br>- 仅支持MySQL
*/
public class ModifyInstanceSpecRequest extends JdcloudRequest implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 扩容后实例规格
* Required:true
*/
@Required
private String newInstanceClass;
/**
* 扩容后实例磁盘大小
* Required:true
*/
@Required
private Integer newInstanceStorageGB;
/**
* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
* Required:true
*/
@Required
private String regionId;
/**
* RDS 实例ID,唯一标识一个RDS实例
* Required:true
*/
@Required
private String instanceId;
/**
* get 扩容后实例规格
*
* @return
*/
public String getNewInstanceClass() {
return newInstanceClass;
}
/**
* set 扩容后实例规格
*
* @param newInstanceClass
*/
public void setNewInstanceClass(String newInstanceClass) {
this.newInstanceClass = newInstanceClass;
}
/**
* get 扩容后实例磁盘大小
*
* @return
*/
public Integer getNewInstanceStorageGB() {
return newInstanceStorageGB;
}
/**
* set 扩容后实例磁盘大小
*
* @param newInstanceStorageGB
*/
public void setNewInstanceStorageGB(Integer newInstanceStorageGB) {
this.newInstanceStorageGB = newInstanceStorageGB;
}
/**
* get 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
*
* @return
*/
public String getRegionId() {
return regionId;
}
/**
* set 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
*
* @param regionId
*/
public void setRegionId(String regionId) {
this.regionId = regionId;
}
/**
* get RDS 实例ID,唯一标识一个RDS实例
*
* @return
*/
public String getInstanceId() {
return instanceId;
}
/**
* set RDS 实例ID,唯一标识一个RDS实例
*
* @param instanceId
*/
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
/**
* set 扩容后实例规格
*
* @param newInstanceClass
*/
public ModifyInstanceSpecRequest newInstanceClass(String newInstanceClass) {
this.newInstanceClass = newInstanceClass;
return this;
}
/**
* set 扩容后实例磁盘大小
*
* @param newInstanceStorageGB
*/
public ModifyInstanceSpecRequest newInstanceStorageGB(Integer newInstanceStorageGB) {
this.newInstanceStorageGB = newInstanceStorageGB;
return this;
}
/**
* set 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
*
* @param regionId
*/
public ModifyInstanceSpecRequest regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* set RDS 实例ID,唯一标识一个RDS实例
*
* @param instanceId
*/
public ModifyInstanceSpecRequest instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy