com.ksyun.api.sdk.kec.model.ModifyInstanceAttributeRequest Maven / Gradle / Ivy
package com.ksyun.api.sdk.kec.model;
import java.io.Serializable;
import com.ksc.KscWebServiceRequest;
import com.ksc.Request;
import com.ksc.model.DryRunSupportedRequest;
import com.ksyun.api.sdk.kec.transform.ModifyInstanceAttributeRequestMarshaller;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
* Contains the parameters for ModifyInstanceAttribute.
*
*/
@ToString
@EqualsAndHashCode(callSuper = false)
public class ModifyInstanceAttributeRequest extends KscWebServiceRequest
implements Serializable, Cloneable, DryRunSupportedRequest {
public ModifyInstanceAttributeRequest() {
initParam("com.ksyun.api.sdk.kec.KSC%sClient", "modifyInstanceAttribute", "kec", "2016-03-04",this.getClass());
}
private static final long serialVersionUID = 2968305292239661504L;
/**
*
* 待修改属性的实例ID
* 是否可缺省: 否
*
*/
private String InstanceId;
/**
*
* 实例名称,修改实例名称不需要关闭实例
* 是否可缺省: 是
*
*/
private String InstanceName;
/**
*
* 实例开机密码,修改实例开机密码需要关闭实例
* 是否可缺省: 是
*
*/
private String InstancePassword;
public String getInstanceId() {
return InstanceId;
}
public void setInstanceId(String instanceId) {
InstanceId = instanceId;
}
public String getInstancePassword() {
return InstancePassword;
}
public void setInstancePassword(String instancePassword) {
InstancePassword = instancePassword;
}
public String getInstanceName() {
return InstanceName;
}
public void setInstanceName(String instanceName) {
InstanceName = instanceName;
}
@Override
public Request getDryRunRequest() {
Request request = new ModifyInstanceAttributeRequestMarshaller()
.marshall(this);
request.addParameter("DryRun", Boolean.toString(true));
return request;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy