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

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

import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 

* Contains the parameters for RebootInstances. *

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

* 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 RebootInstancesRequestMarshaller() .marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy