类 RebuildInstanceRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bcc.model.instance.RebuildInstanceRequest
-
public class RebuildInstanceRequest extends AbstractBceRequest
The request for rebuilding the instance, you adminPass is needed.
-
-
构造器概要
构造器 构造器 说明 RebuildInstanceRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAdminPass()StringgetImageId()StringgetInstanceId()StringgetKeypairId()voidsetAdminPass(String adminPass)voidsetImageId(String imageId)voidsetInstanceId(String instanceId)voidsetKeypairId(String keypairId)RebuildInstanceRequestwithAdminPass(String adminPass)Configure adminPass for the request.RebuildInstanceRequestwithImageId(String imageId)Configure imageId for the request.RebuildInstanceRequestwithInstanceId(String instanceId)Configure instanceId for the request.RebuildInstanceRequestwithKeypairId(String keypairId)Configure keypairId for the request.RebuildInstanceRequestwithRequestCredentials(BceCredentials credentials)Configure request credential for the request.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
getInstanceId
public String getInstanceId()
-
setInstanceId
public void setInstanceId(String instanceId)
-
withInstanceId
public RebuildInstanceRequest withInstanceId(String instanceId)
Configure instanceId for the request.- 参数:
instanceId- The id of the instance which will be rebuild.- 返回:
- RebuildInstanceRequest with instanceId.
-
getImageId
public String getImageId()
-
setImageId
public void setImageId(String imageId)
-
getAdminPass
public String getAdminPass()
-
setAdminPass
public void setAdminPass(String adminPass)
-
withAdminPass
public RebuildInstanceRequest withAdminPass(String adminPass)
Configure adminPass for the request.- 参数:
adminPass- The admin password to login the instance.It must be encrypt in AES-128 algorithm with the substring of the former 16 characters of user SecretKey.See more detail on BCE API doc- 返回:
- RebuildInstanceRequest with adminPass.
-
withImageId
public RebuildInstanceRequest withImageId(String imageId)
Configure imageId for the request.- 参数:
imageId- The id of the image which will be used to rebuild the instance.- 返回:
- RebuildInstanceRequest with imageId.
-
getKeypairId
public String getKeypairId()
-
setKeypairId
public void setKeypairId(String keypairId)
-
withKeypairId
public RebuildInstanceRequest withKeypairId(String keypairId)
Configure keypairId for the request.- 参数:
keypairId- The id of the keypair which will be used to rebuild the instance.- 返回:
- RebuildInstanceRequest with keypairId.
-
withRequestCredentials
public RebuildInstanceRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- RebuildInstanceRequest with credentials.
-
-