All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksyun.api.sdk.kec.model.TerminateInstancesRequest Maven / Gradle / Ivy

There is a newer version: 2.1.8
Show newest version
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.TerminateInstancesRequestMarshaller;

import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 

* Contains the parameters for TerminateInstances. *

*/ @ToString @EqualsAndHashCode(callSuper = false) public class TerminateInstancesRequest extends KscWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest { private static final long serialVersionUID = -1184140854587989261L; public TerminateInstancesRequest() { initParam("com.ksyun.api.sdk.kec.KSC%sClient", "terminateInstances", "kec", "2016-03-04",this.getClass()); } /** *

* One or more instance IDs. *

* 待销毁实例ID列表 * 是否可缺省: 否 */ private com.ksc.internal.SdkInternalList instanceIds; public com.ksc.internal.SdkInternalList getInstanceIds() { return instanceIds; } public void setInstanceIds(com.ksc.internal.SdkInternalList instanceIds) { this.instanceIds = instanceIds; } /** *

* One or more instance IDs. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setInstanceIds(java.util.Collection)} if you want to override * the existing values. *

* @param instanceIds * One or more instance IDs.

* @return Returns a reference to this object so that method calls can be * chained together. */ public void withInstanceIds(String... instanceIds) { if (this.instanceIds == null) { setInstanceIds(new com.ksc.internal.SdkInternalList()); } for (String ele : instanceIds) { this.instanceIds.add(ele); } } @Override public Request getDryRunRequest() { Request request = new TerminateInstancesRequestMarshaller() .marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy