类 RebuildInstanceRequest


  • public class RebuildInstanceRequest
    extends AbstractBceRequest
    The request for rebuilding the instance, you adminPass is needed.
    • 构造器详细资料

      • RebuildInstanceRequest

        public RebuildInstanceRequest()
    • 方法详细资料

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