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

com.ksyun.api.sdk.kec.model.StopInstancesRequest 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.StopInstancesRequestMarshaller;

import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 

* Contains the parameters for StopInstances. *

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

* One or more instance IDs. *

*

* Default: Describes all your instances. *

*/ 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. *

*

* Default: Describes all your instances. *

*

* 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.

*

* Default: Describes all your instances. * @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 StopInstancesRequestMarshaller() .marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy